-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
noVNC broken with Apples Remote Desktop/Screen Sharing (RFB 3.889)? #58
Comments
Apparently Apple Remote Desktop/Screen Sharing is using a non-standard RFB (VNC) protocol version 3.889. The RFB standard only specifies 3.003, 3.007 and 3.008. noVNC also supports 3.006 which is a non-standard version reported by UltraVNC. I also see some indication that Apple may be doing other non-standard things with the protocol and that it is breaking other clients also:
I think this is solvable, however I don't have a Mac OS X system so we may need to do some back and forth debugging. First, try the following patch and let me know what happens:
That will detect the non-standard protocol version and try and force the remote desktop to use protocol version 3.003. Also, if that doesn't work, you may need to send me javascript console debug output (see the troubleshooting guide) of the failure. |
I confirm what kanaka says. But may try to activate screen sharing instead of remote control. This one should work with standard VNC protocol |
Actually, I did the above patch by myself last weekend, and it worked fine until I disconnected - which threw the Apple VNC server into a loop, effectively crashing. I had the same problem with TigerVNC on Linux, since there seems to be a need for some sort of "polite" disconnection rather than just killing the socket. Mind you, the VNC servers on Leopard and Snow Leopard are slightly different, not just in terms of bugs but also in terms of authentication and encodings supported. |
Oh, and regarding the links to other clients above, and if I recall the spec correctly, you should assume 3.x as a version, not the whole thing. The way the protocol was done ages ago was that 3.1xx clients would all comply to the 3.1 base protocol, and the extra digits were basically to denote compatibility with extensions. Sadly, loads of people never got that memo. If you patch a Linux VNC client to ignore the remaining digits, it works fine. |
@rcarmo, do you have any further info about how to do a polite shutdown? Also, it wasn't clear to me that the 3.889 was actually compatible with 3.8 (based on some of the bug reports it sounded like 3.889 messes with the security types) so I choose 3.3. That is the mostly likely version to work in a questionable situation as long as the server hasn't explicitly disabled 3.3 support. |
Making sure you close the socket cleanly after processing as many remaining updates should be enough, as the protocol is stateless. That way the server receives a disconnection event and not an error (which is what I suspect is the matter with TigerVNC - that and shared session handling). I've come across clients that work fine (Vino, for instance) and others that simply vanish as far as the server is concerned... |
@rcarmo, can you try the following change and see if this makes the Apple VNC server happy?
|
Closing since no response in 9 months. Until somebody can confirm a safe disconnect, I'm not going to pull in the 003.889 version change. I've already applied the shutdown change to websockify since it's generic. If somebody has an update on testing results please post back here and I'll re-open. |
I have just tested the 003.889 patch and it seems to work ok. I can connect and disconnect repetitively. OS X 10.6.8 Snow Leopard. Thank you! |
Pushed in: f84504b |
Thanks again! I have done some looking around and found that valence code comments state that Apple real RFB version is 'something closer to 3.7': I guess we will need more investigation here to get the best out of it. |
If you test with 3.889 mapped to 3.7 and you can verify that it works properly than I'm willing to bump it up. |
I have just tested it working with version 3.8. I.e. the following patch:
Just to clarify. To allow noVNC to connect to a OS X Screen Sharing (available since OS X 10.5), in System Preferences » Sharing, click button "Computer Settings" and enable "VNC viewers may control screen with password [..]". Configuration screenshot can be seen here: |
@opichals, can you make sure that the right behavior happens when you use the wrong password? You should get a failure message from the server in the status line (something other than "Authentication failed" which is the standard 3.7 message). That is the main difference between 3.7 and 3.8. You don't happen to have a version of OS X Leopoard to test as well? |
Related to novnc/noVNC#58 (supporting Apple Remote Desktop).
Related to novnc/noVNC#58 (supporting Apple Remote Desktop).
Hi, I am trying to run noVNC on a MacOS X box. I can get the application up and running, but when I try to connect (in the browser) I get:
"Invalid Server 003.889"
The text was updated successfully, but these errors were encountered: