I'm receiving the error "Connection closed unexpectedly. Do you wish to reconnect?".

This is one of the more common error messages reported in VNC, and the error itself does not give an adequate description of the actual problem. However, it is most often caused by one of the following:

- Your "Hosts" filter has been deleted, or mis-configured. The "Hosts" parameter tells VNC Server which IP addresses are allowed to connect to it, and by default it is configured to allow all IP addresses. If you've re-configured it, or deleted it, VNC will refuse all connections.

Open up the VNC Server status, and enter the Configuration. Under the "Expert" tab, find the "Hosts" parameter. By default, it should simply contain a plus symbol "+", which denotes that connections will be accepted from all IP addresses.

- Your RSA private key is missing. This is a rarer issue, but it does happen. The RSA private key is essentially a "hand-shake" between the VNC Server and VNC Viewer computer. The computers will know each other by RSA private key, and IP address, so that if a malicious user attempts a "man in the middle" attack, you'll have some warning.

If the RSA private key has been deleted at either end of the connection, it can cause this problem. The RSA private key is stored in the registry of your computer. The easiest workaround, would be to force the generation of a new key. You can do this by running the folllowing command on the VNC Server computer:

vncconfig -service -generatekeys

If you are using Windows Authentication to log on to the RealVNC server, please also check that the Windows Event log is not full:

http://kb.realvnc.com/questions/4/

If none of the above work, please double check the Application Event Log to see if a more detailed error log has been stored, then submit a support request.





Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
22nd of November, 2011

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue

© RealVNC Limited