I have a Raspberry Pi 3 Model B I have been connecting to with VNC Viewer for over a month.

I use a virtual desktop. Connect to the Pi with PuTTY and run the vncserver command in the terminal. I usually get

I open VNC Viewer 6.0.1 on my Windows 10 PC, connec to the above IP address and get "The connection was refused during establishment"

Connected the Pi with a monitor. SSH is running. VNC is running. Don't see any issues.

I am lost on how to troubleshoot. Any help would be great! Thx.

  • Are you sure that you are connecting to the right port? Jan 24, 2017 at 2:03
  • A reboot of the PI and a restart of the Windows 10 machine always "resets" everything. Not sure why it becomes unresponsive, but this fixes it. Thanks for the reply. Feb 19, 2017 at 22:24
  • So can i write an answer you'll mark as correct for a few points? Feb 19, 2017 at 22:25
  • I did try the steps you recommended in route to solving my problem. I'll click the "check" on your answer. Thx. Feb 21, 2017 at 0:16

2 Answers 2



  1. Make sure you've got the right device (run a port scanner)
  2. Ssh into it and make sure your vnc server is up to date (if using tightvnc or something else from apt-get, run sudo apt-get update and sudo apt-get upgrade
  3. Short all gpio pins, break raspberry pi in half See if your vnc viewer has received any updates and attempt to downgrade if it has. Otherwise, see if it has any updates and install them.
  4. Check if that's the right port

I didn't understand the thing about the virtual desktop. Is it running on the Windows 10 PC? If so, make sure your firewall (on the computer) isn't allowing outgoing connections.

  • thanks for the rep! Also, I'm interested in why the restart of the windows 10 machine helped -- did you just install software and not restart the computer -- leading to the issue?
    Feb 21, 2017 at 1:58

I had a similar issue, and had to install the desktop for my lite instance:

sudo apt install raspberrypi-ui-mods

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.