VNC Viewer will not connect, "connection actively refused"

June 15, 2015 11.3k views
Networking System Tools Ubuntu

When I try to run my TightVNC viewer I get an error saying the server actively refused the connection. I also tried to add the VNCserver to my defaults on the linux server and it told me that the VNCserver script was missing LSB tags and overrides. I am using an HP Proliant DL360 G5 running Ubuntu Server 15.04. I can get into the server easily enough using Putty CLI, but I want a GUI for one particular job.

any help is appreciated

5 comments
  • are you trying to VNC into your HP Proliant, or are you trying to VNC into a droplet?

    have you installed vnc4server?

    have you initiated a vnc instance from the command line like:

    vncserver
    

    are you using ssh tunnel to connect?

  • I am trying to VNC from my Windows 7 box with TightVNC to my Server. I have run the command line "vncserver", and I am using an ssh tunnel. I am not sure about vnc4server, I don't remember installing that, is it an apt-get package?

  • correct. vnc4server can be installed on your server with:

    sudo apt-get install vnc4server
    

    then launch your vnc instance with:

    vncserver
    

    then connect to your server with this:

    your.servers.ip.address:1
    
  • Thanks, I will try that later on today and get back to you with the results.

  • Firstly, I don't see your name anywhere in the post or I would address this to you, but thanks for the help anyway.
    Secondly the apt-get for vnc4server failed. It may have to do with my initial setup of Ubuntu. When asked my location I said Canada, but I am currently in the US and won't be deploying the server to live ops until I get to Canada, next month. So the most common errors I get are:

    Err http://ca.archive.ubuntu.com vivid InRelease; and

    W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/vivid/InRelease

    But there are scores like this mostly relating to vivid, but the one that makes me think my location is the issue is the ca.archive.ubuntu.com.

    Any thoughts?

    Again, thanks for your help

    Rod

1 Answer

This question was answered by @sierracircle:

correct. vnc4server can be installed on your server with:

sudo apt-get install vnc4server

then launch your vnc instance with:

vncserver

then connect to your server with this:

your.servers.ip.address:1

View the original comment

Have another answer? Share your knowledge.