{"action":"created","issue":{"url":"https://api.github.com/repos/kanaka/noVNC/issues/528","labels_url":"https://api.github.com/repos/kanaka/noVNC/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/kanaka/noVNC/issues/528/comments","events_url":"https://api.github.com/repos/kanaka/noVNC/issues/528/events","html_url":"https://github.com/kanaka/noVNC/issues/528","id":105301112,"number":528,"title":"UltraVNC 1.0.9.6.1 Support?","user":{"login":"baligavinod","id":9650593,"avatar_url":"https://avatars.githubusercontent.com/u/9650593?v=3","gravatar_id":"","url":"https://api.github.com/users/baligavinod","html_url":"https://github.com/baligavinod","followers_url":"https://api.github.com/users/baligavinod/followers","following_url":"https://api.github.com/users/baligavinod/following{/other_user}","gists_url":"https://api.github.com/users/baligavinod/gists{/gist_id}","starred_url":"https://api.github.com/users/baligavinod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baligavinod/subscriptions","organizations_url":"https://api.github.com/users/baligavinod/orgs","repos_url":"https://api.github.com/users/baligavinod/repos","events_url":"https://api.github.com/users/baligavinod/events{/privacy}","received_events_url":"https://api.github.com/users/baligavinod/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kanaka/noVNC/labels/bug","name":"bug","color":"e62929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-08T04:56:03Z","updated_at":"2015-09-10T03:07:59Z","closed_at":null,"body":"Hello,\r\n\r\nI have been trying to get noVNC (along with websockfy) to work with an older version of UltraVNC (1.0.9.6.1). Using this version is a requirement for me. However, I am unable make noVNC work with this UltraVNC version. It seems like the VNC handshake itself is failing (refer to browser logs at end of the post)\r\n\r\nHowever, with UltraVNC 1.2.0.6 everything works smooth as silk. So I just wanted to ask if older versions of Ultra VNC (and 1.0.9.6.1 in particular) are supported by noVNC/websockify?\r\n\r\nThanks!\r\nVinod\r\n\r\n**Logs:**\r\n```\r\nMsg: noVNC ready: native WebSockets, canvas rendering\r\nutil.js:214 << RFB.constructor\r\nutil.js:214 >> Keyboard.allKeysUp\r\nutil.js:214 << Keyboard.allKeysUp\r\nutil.js:218 \r\nutil.js:214 >> RFB.connect\r\nutil.js:216 connecting to ws://localhost:27016/websockify\r\nutil.js:216 Detected binaryType support in WebSockets\r\nutil.js:214 << RFB.connect\r\nutil.js:214 >> WebSock.onopen\r\nutil.js:216 Server choose sub-protocol: binary\r\nutil.js:218  Msg: Starting VNC handshake\r\nutil.js:214 << WebSock.onopen\r\nutil.js:214 >> WebSock.onclose\r\nutil.js:218 WebSocket on-close event\r\nutil.js:214 >> Keyboard.allKeysUp\r\nutil.js:214 << Keyboard.allKeysUp\r\nutil.js:220  Msg: Failed to connect to server (code: 1000)\r\n```"},"comment":{"url":"https://api.github.com/repos/kanaka/noVNC/issues/comments/139103138","html_url":"https://github.com/kanaka/noVNC/issues/528#issuecomment-139103138","issue_url":"https://api.github.com/repos/kanaka/noVNC/issues/528","id":139103138,"user":{"login":"baligavinod","id":9650593,"avatar_url":"https://avatars.githubusercontent.com/u/9650593?v=3","gravatar_id":"","url":"https://api.github.com/users/baligavinod","html_url":"https://github.com/baligavinod","followers_url":"https://api.github.com/users/baligavinod/followers","following_url":"https://api.github.com/users/baligavinod/following{/other_user}","gists_url":"https://api.github.com/users/baligavinod/gists{/gist_id}","starred_url":"https://api.github.com/users/baligavinod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baligavinod/subscriptions","organizations_url":"https://api.github.com/users/baligavinod/orgs","repos_url":"https://api.github.com/users/baligavinod/repos","events_url":"https://api.github.com/users/baligavinod/events{/privacy}","received_events_url":"https://api.github.com/users/baligavinod/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T03:07:59Z","updated_at":"2015-09-10T03:07:59Z","body":"Sorry my bad. Port was changed to 8900 by me during experiments and apparently it was blocked by the Windows firewall. I switched back to default 5900 port and I am able to connect to the machine (UltraVNC 1.0.9.6.1) without any trouble. noVNC works fine as well.\r\n\r\nHowever, when I use a custom implementation of UltraVNC 1.0.9.6.1, I get the below error:\r\n\r\n**noVNC Log on Google Chrome**\r\n```\r\n>> RFB.connect\r\nutil.js:216 connecting to ws://localhost:27016/websockify\r\nutil.js:216 Detected binaryType support in WebSockets\r\nutil.js:214 << RFB.connect\r\nutil.js:214 >> WebSock.onopen\r\nutil.js:216 Server choose sub-protocol: binary\r\nutil.js:218  Msg: Starting VNC handshake\r\nutil.js:214 << WebSock.onopen\r\nutil.js:216 Server ProtocolVersion: 003.010\r\nrfb.js:635 CUSTOM INFO:003.010\r\nutil.js:214 >> Keyboard.allKeysUp\r\nutil.js:214 << Keyboard.allKeysUp\r\nutil.js:216 Closing WebSocket connection\r\nutil.js:220  Msg: Invalid server version 003.010Util.Error @ util.js:220\r\nutil.js:214 >> WebSock.onclose\r\nutil.js:218 WebSocket on-close event\r\n```\r\n**websockify log:**\r\n\r\n```\r\n   - proxying from localhost:27016 to 172.17.21.69:5900\r\n   - Running in unencrypted HTTP (ws://) mode\r\n/websockify\r\n ::1: WebSocket connection\r\n ::1: Version 13, subprotocol: binary\r\n ::1: connected to target\r\n ::1: WebSocket client disconnected: 1000 []\r\n ::1: target disconnected\r\n```\r\n\r\nSo I went ahead and changed *noVNC\\include\\rfb.js* partially as below:\r\n\r\n```\r\n            switch (sversion) {\r\n                case \"000.000\":  // UltraVNC repeater\r\n                    is_repeater = 1;\r\n                    break;\r\n                case \"003.010\":  // Modified for custom UltraVNC 1.0.9.6.1\r\n                case \"003.003\":\r\n                case \"003.006\":  // UltraVNC\r\n                case \"003.889\":  // Apple Remote Desktop\r\n                    this._rfb_version = 3.3;\r\n                    break;\r\n```\r\nAfter the change, although it seems to successfully establish the connection, it disconnects abruptly with the below log:\r\n\r\n```\r\n>> RFB.connect\r\nutil.js:216 connecting to ws://localhost:27016/websockify\r\nutil.js:216 Detected binaryType support in WebSockets\r\nutil.js:214 << RFB.connect\r\nutil.js:214 >> WebSock.onopen\r\nutil.js:216 Server choose sub-protocol: binary\r\nutil.js:218  Msg: Starting VNC handshake\r\nutil.js:214 << WebSock.onopen\r\nutil.js:216 Server ProtocolVersion: 003.010\r\nrfb.js:635 CUSTOM INFO:003.010\r\nutil.js:218  Msg: Sent ProtocolVersion: 003.003\r\nutil.js:218  Msg: Authenticating using scheme: 2\r\nutil.js:218 \r\n2util.js:218  Msg: Authentication OK\r\nutil.js:216 Screen: 1680x1050, bpp: 32, depth: 32, big_endian: 0, true_color: 1, red_max: 255, green_max: 255, blue_max: 255, red_shift: 16, green_shift: 8, blue_shift: 0\r\nutil.js:214 Setting viewport to full display region\r\nutil.js:218  Msg: Connected (unencrypted) to: medpc ( 172.17.21.69 )\r\nutil.js:216 First FBU latency: 928\r\nutil.js:214 >> Keyboard.allKeysUp\r\nutil.js:214 << Keyboard.allKeysUp\r\nutil.js:216 Closing WebSocket connection\r\nutil.js:220  Msg: Disconnected: unsupported encoding -232\r\n```\r\n\r\n```\r\nWebSocket settings:\r\n    - proxying from localhost:27016 to 172.17.21.69:5900\r\n    - Running in unencrypted HTTP (ws://) mode\r\n/websockify\r\n ::1: WebSocket connection\r\n ::1: Version 13, subprotocol: binary\r\n ::1: connected to target\r\n ::1: WebSocket client disconnected: 1000 []\r\n ::1: Client closed, cleaning up target\r\n ::1: Client closed, cleaning up target\r\n ::1: Client closed, cleaning up target\r\n ::1: Client closed, cleaning up target\r\n ::1: Client closed, cleaning up target\r\n```\r\n\r\nWhat could be the issue in this case?"}}