[GH-ISSUE #54] Connecting to VNC error: value does not fall within expected range #42

Closed
opened 2026-02-26 11:56:30 +03:00 by kerem · 6 comments
Owner

Originally created by @arcana261 on GitHub (Jan 8, 2021).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/54

Originally assigned to: @VShawn on GitHub.

Describe the bug
When I try to connect to remote VNC server, I get this error.

To Reproduce

  1. Start a virtual VNC server in Linux using command x11vnc -create -listen 0.0.0.0 -env PATH="$PATH" -env FD_PROG=/usr/bin/fluxbox -env X11VNC_FINDDISPLAY_ALWAYS_FAILS=1 -env X11VNC_CREATE_GEOM=${1:-1920x1080x16} -gone 'killall Xvfb' -bg -nopw done in Ubuntu 20.04
  2. Connect to VNC server

Expected behavior
Connect to remote VNC server

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. Win10 Home]
  • PRemoteM Version [e.g. 0.5.7.2101041110]

Additional context

Originally created by @arcana261 on GitHub (Jan 8, 2021). Original GitHub issue: https://github.com/1Remote/1Remote/issues/54 Originally assigned to: @VShawn on GitHub. **Describe the bug** When I try to connect to remote VNC server, I get this error. **To Reproduce** 1. Start a virtual VNC server in Linux using command `x11vnc -create -listen 0.0.0.0 -env PATH="$PATH" -env FD_PROG=/usr/bin/fluxbox -env X11VNC_FINDDISPLAY_ALWAYS_FAILS=1 -env X11VNC_CREATE_GEOM=${1:-1920x1080x16} -gone 'killall Xvfb' -bg -nopw` done in Ubuntu 20.04 2. Connect to VNC server **Expected behavior** Connect to remote VNC server **Screenshots** **Desktop (please complete the following information):** - OS: [e.g. Win10 Home] - PRemoteM Version [e.g. 0.5.7.2101041110] **Additional context**
Author
Owner

@VShawn commented on GitHub (Jan 9, 2021):

sorry, I tested VNC via TightVNC on windows when I developeded, and it work properly for me.

image

No much test was run on Linux because I don't have a Linux OS with desktop to test it. But I prefer xrdp butter Xthen VNC if I need a desktop environment one day. In fact I add VNC protocol just in case.
😕

Note that PRemoteM was based on VNCSharp, it is archived and not support VNC4 or higher(RFB protocol over 3.8 are proprietary).

some discussions about this:
https://github.com/mRemoteNG/mRemoteNG/issues/494

<!-- gh-comment-id:757080547 --> @VShawn commented on GitHub (Jan 9, 2021): sorry, I tested VNC via TightVNC on windows when I developeded, and it work properly for me. ![image](https://user-images.githubusercontent.com/10143738/104080422-bdd41e80-5262-11eb-9a65-8cfc5869d9ad.png) No much test was run on Linux because I don't have a Linux OS with desktop to test it. But I prefer **[xrdp](http://xrdp.org/)** butter Xthen VNC if I need a desktop environment one day. In fact I add VNC protocol just in case. 😕 ## Note that PRemoteM was based on VNCSharp, it is archived and not support VNC4 or higher(RFB protocol over 3.8 are proprietary). some discussions about this: https://github.com/mRemoteNG/mRemoteNG/issues/494
Author
Owner

@VShawn commented on GitHub (Jan 9, 2021):

update

Tested on Ubuntu18 LTS via x11vnc by
x11vnc -auth guess -rfbauth /etc/x11vnc.pass -rfbport 5900 -forever -display :1

image

image

I need more information to locate this issue, can you give your screen-shot of this bug?

<!-- gh-comment-id:757081120 --> @VShawn commented on GitHub (Jan 9, 2021): # update Tested on Ubuntu18 LTS via x11vnc by ` x11vnc -auth guess -rfbauth /etc/x11vnc.pass -rfbport 5900 -forever -display :1 ` ![image](https://user-images.githubusercontent.com/10143738/104080849-7ef39800-5265-11eb-851c-e30f1e9d3ceb.png) ![image](https://user-images.githubusercontent.com/10143738/104080951-5ae48680-5266-11eb-885c-937cf111d349.png) I need more information to locate this issue, can you give your screen-shot of this bug?
Author
Owner

@arcana261 commented on GitHub (Jan 9, 2021):

Thank you for your reply!
Here is the screenshot:

image

<!-- gh-comment-id:757085967 --> @arcana261 commented on GitHub (Jan 9, 2021): Thank you for your reply! Here is the screenshot: ![image](https://user-images.githubusercontent.com/10746709/104081738-792b9180-5228-11eb-861d-1c5459eb4c89.png)
Author
Owner

@arcana261 commented on GitHub (Jan 9, 2021):

It might also help that I've run x11vnc under WSL.. But I don't expect VNC to fail because of this.. other tools work just fine..

<!-- gh-comment-id:757086355 --> @arcana261 commented on GitHub (Jan 9, 2021): It might also help that I've run x11vnc under WSL.. But I don't expect VNC to fail because of this.. other tools work just fine..
Author
Owner

@VShawn commented on GitHub (Jan 9, 2021):

it is not a VNC protocol fault, but a value verification fault, can you show me your address info?

or it is best for me to send me your config file to my email if it can be shown to me.
image

<!-- gh-comment-id:757103954 --> @VShawn commented on GitHub (Jan 9, 2021): it is not a VNC protocol fault, but a value verification fault, can you show me your address info? or it is best for me to send me your config file to my email if it can be shown to me. ![image](https://user-images.githubusercontent.com/10143738/104084761-e836d380-5284-11eb-94fb-9afeee5a5895.png)
Author
Owner

@VShawn commented on GitHub (Feb 18, 2021):

close: no further report for long and can't reproduce this bug.

<!-- gh-comment-id:781281990 --> @VShawn commented on GitHub (Feb 18, 2021): close: no further report for long and can't reproduce this bug.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#42
No description provided.