can't connect noVNC to UltraVNC server: failed to connect to server(code:1006)

1,388 views
Skip to first unread message

vng gui

unread,
Oct 30, 2014, 5:12:41 PM10/30/14
to no...@googlegroups.com
Start UltraVNC server with http port 5555, verify with in browser http://localhost:5555 start launch Java view client ask for username(don't know what's should be?), password; it seems the port valid. 

Now goes to Windows admin command line 

[1]
C:\Users\atim\Downloads\websockify>websockify 7770 localhost:5555
WARNING: no 'resource' module, daemonizing support disabled
WebSocket server settings:
  - Listen on :7770
  - Flash security policy server
  - No SSL/TLS support (no cert file)
  - proxying from :7770 to localhost:5555

  1: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
  1: 127.0.0.1: Version hybi-13, base64: 'False'
  1: connecting to: localhost:5555

[2]launch file:///C:/noVNC/vnc.html in browser
input
HOST:127.0.0.1
PORT:7770
PASSWORD:(same as VNC passowrd set in 'UltraVNC Server property page')

[3] click 'Connect', now browser show 'Start VNC handshake'

[4]after a few seconds the browser change status to 'Failed to connect to server(code:1006)

[5]Windows common line window show:


C:\Users\zhen\Downloads\websockify>websockify 7770 localhost:5555
WARNING: no 'resource' module, daemonizing support disabled
WebSocket server settings:
  - Listen on :7770
  - Flash security policy server
  - No SSL/TLS support (no cert file)
  - proxying from :7770 to localhost:5555

  1: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
  1: 127.0.0.1: Version hybi-13, base64: 'False'
  1: connecting to: localhost:5555
  1: 127.0.0.1: Target closed
  2: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
  2: 127.0.0.1: Version hybi-13, base64: 'False'
  2: connecting to: localhost:5555
  2: 127.0.0.1: Target closed
  3: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
  3: 127.0.0.1: Version hybi-13, base64: 'False'
  3: connecting to: localhost:5555
  3: 127.0.0.1: Target closed

Any idea about what 's wrong here?

thanks ahead.

vng
ReadyToConnectUltrVNC.PNG
StartToConnectUltrVNC.PNG
FailToConnectUltrVNC.PNG

vng gui

unread,
Oct 30, 2014, 9:15:50 PM10/30/14
to no...@googlegroups.com
debug in Chrome found error:
WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
but not sure whether this is root cause.

Reboot system start UltraVNC  from scratch,
[1]set Main port:5901, Http port:5800,

[2]my machine is in different segment.

C:\Downloads\websockify>websockify 7770 localhost:5800

WARNING: no 'resource' module, daemonizing support disabled
WebSocket server settings:
  - Listen on :7770
  - Flash security policy server
  - No SSL/TLS support (no cert file)
  - proxying from :7770 to localhost:5800

  1: 150.158.28.85: Plain non-SSL (ws://) WebSocket connection
  1: 150.158.28.85: Version hybi-13, base64: 'False'
  1: connecting to: localhost:5800
  1: 150.158.28.85: Client closed abruptly
  2: 150.158.28.52: Plain non-SSL (ws://) WebSocket connection
  2: 150.158.28.52: Version hybi-13, base64: 'False'
  2: connecting to: localhost:5800
  2: 150.158.28.52: Client closed, reason: None - None
  3: 150.158.28.52: Plain non-SSL (ws://) WebSocket connection
  3: 150.158.28.52: Version hybi-13, base64: 'False'
  3: connecting to: localhost:5800

[3]launch from another web server http://10.51.51.73/clients/vnc/kanaka-noVNC-ec31f82/vnc.html

Browser(Firefox, Chrome) always stay at "Starting VNC handshake" status.

Any idea?



Reply all
Reply to author
Forward
0 new messages