My Raspberry Pi starts a VNC server on port 5901 on boot, but currently I do not have a display to access the GUI. I do however have an Ethernet cable and a PC with the VNC client software, how do I access the GUI from my PC?

  • First of all you have to login to the Pi from your PC. Search for headless Pi and login. Then you need to set up VNC on the Pi. Again search. – joan Aug 23 '15 at 11:51
  • You can start VNC on boot, but it won't show you anything. As @joan says, you should log on to the Pi (headless or not) the start VNC as a user. – Milliways Aug 24 '15 at 0:26
  • I just wanted to point out that I had access to the GUI on the vnc client but on rebooting the pi the connection using the vnc client gets rejected by the remote device. – Kevin Joseph Aug 24 '15 at 3:30

Since your Pi already starts a VNC server on boot, just use a VNC viewer on your PC as follows:

Make sure your Pi is correctly on the network and that you can SSH into it. There is plenty of information out there for this so I'll skip that.

Connect to that server with some VNC viewer.

This is very easy on Mac OSX: Open a new Finder -> Go -> Connect To Server -> Enter the IP address and port (e.g.

Alternatively, download software such as VNC Viewer and follow the instructions there.

| improve this answer | |
  • I'm on windows. In cmd when I hit ipconfig and check the IP dynamically allotted to the Ethernet port, its of the form 168.***.***.*.* . But when I use this IP in putty to access the ssh it says that the remote device rejected the connection. (I'm using port 22 for ssh) – Kevin Joseph Aug 24 '15 at 3:25

I got access to the pi by running a scan using Find My Pi (https://github.com/adafruit/Adafruit-Pi-Finder/releases/tag/v2.0.1-beta), all I had to do was note down the IP of the pi after the detection by this tool. I used this IP to get access of the SSH terminal. The next thing I did was set up a static IP as in http://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address. Thanks for the quick response!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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