I can't connect to VNC Server (connection refused : error 10061).

60,791

I was just using ip address. as soon as I used ip:port number, it worked.

Share:
60,791

Related videos on Youtube

user58859
Author by

user58859

Updated on September 18, 2022

Comments

  • user58859
    user58859 over 1 year

    I purchased a vps and configured it by using this tutorial (means installed GENOM desktop and VNC server):

    http://www.time4vps.eu/knowledgebase.php?action=displayarticle&id=41

    Then I installed tiger VNC viewer and Real VNC Viewer plus. I tried to connect to the server by using the server name and also the ip address using the two software. But I am getting :

    (connection refused : error 10061). 
    

    What I did :

    I restarted vnc server :

    logged in as root.
    On terminal : vncserver stop.
    On terminal : vncserver start.
    

    I googled and found out that, one of the reason may be entering wrong password multiple time. Password have not entered even once, so no chance of entering wrong passwords multiple time.

    I checked with netstat -a. It shows :

    0.0.0.0:5900 is listening
    

    I am behind router, so portforwarded the router to local ip and port no.

    All this do not work. Kindly tell me what mistake I am doing. Thanks in advance.

    (server is ubuntu server 12.04, client is on win 7 64 bit dektop.)

  • User5910
    User5910 over 6 years
    @endolith, check out this answer on SuperUser: VNC port numbers
  • baptx
    baptx over 4 years
    +1 I had to add the port number 5901. I think the port is not needed for most VNC clients if the VNC server is running on port 5900 (the client is guessing the port).