Control Raspberry Pi Remotely From Any PC or Phone With VNC

How to Control Raspberry Pi Remotely From Any PC or Phone With VNC

We’ve previously looked at how you can connect to your Raspberry Pi from a Windows, Mac or Linux PC using VNC, but the integration of RealVNC with Raspbian Jessie and the PIXEL desktop update means that much of the process has been streamlined.

Now the onus is on making sure you have the RealVNC server software configured on your Raspberry Pi, and a VNC viewer on your main or controller device.

Configure VNC on Raspbian Jessie

The easiest way to get started with RealVNC on your Raspberry Pi is to use the latest Raspbian Jessie with the PIXEL desktop.

 Configure VNC on Raspbian Jessie

You however need to enable the VNC server before you can connect to it. You could do this by booting up your Pi as a desktop, complete with keyboard, mouse, and display, and navigating through the preferences… but that’s not needed. To do everything headless (i.e. from another PC), you should first enable SSH.

Do this by switching off your Pi, removing the microSD card and inserting it into your computer. In the boot partition, create a blank file called SSH, with no extension. Safely eject the card and re-insert into your Pi. When booted, SSH will now be enabled. Login over a SSH connection, either by using the direct IP address or the Bonjour address raspberrypi.local:

ssh pi@raspberrypi.local

(The default password is “raspberry”.)

Finally, you’ll need to enable VNC. To do this, run:

sudo raspi-config

And browse with the arrow keys to Interfacing Options > VNC, then select Yes.

VNC is now enabled, and you’ll be able to remotely connect to a virtual desktop on your Raspberry Pi, via the RealVNC software.

Manual Installation

If you’re not using Raspbian Jessie with the PIXEL desktop, you’ll need to manually install the latest RealVNC software from the Raspbian repositories. Run:

sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

To enable, use raspi-config as described above.

VNC Server will now launch automatically each time the Pi is booted.

Remotely Control Your Raspberry Pi With VNC Connect

RealVNC can also be used to remotely control your Pi from anywhere in the world as long as you have an internet connection! VNC Connect is a free cloud service (for Home use, but Professional and Enterprise options are also available) that offers simple connection management and cloud-brokered secure connections.

This removes the need to create proxies or static IP addresses, and streamlines true remote access in a way that has not been seen before. Also, VNC Connect has improvements in desktop rendering speed and accuracy, which should make remote control even better than before.

Note: If you’re currently running TightVNC, it’ll need to be removed before using VNC Connect. They aren’t compatible. Don’t worry, though, as it will be automatically removed for you when you install RealVNC’s VNC server.

 Remotely Control Your Raspberry Pi With VNC Connect

Create a RealVNC Account

With RealVNC server running on your Pi, you should create an account on your PC. Head to to grab a copy of the VNC Viewer app from RealVNC, and follow the steps during the initial launch to create an account with their service. Once this is done, remote connect to your Raspberry Pi desktop via VNC Viewer. You’ll need to enter the credentials created earlier. To access the VNC Connect service, click on the RealVNC icon in the desktop panel, click Sign In and follow the instructions, making sure to select the Direct and Cloud connectivity option.

Create a RealVNC Account

Follow the on-screen instructions to complete setup of your account. By the end of this, you should have two computers in your “Team”: your Pi and your desktop. With five slots in the team, you’ll have space to add a mobile device or two!

As long as your Raspberry Pi is online, you’ll now be able to access it from anywhere via a RealVNC app with support for VNC Connect. That has the potential to make things a lot easier for many existing Raspberry Pi projects, and might just inspire something new!

Control Your Raspberry Pi From Mobile With RealVNC

If you’re using Android or iOS to connect to your Pi via VNC, you can do so with RealVNC Viewer (Android, iOS), which will enable you to easily connect to your Raspberry Pi across your home network.

Simply install and launch the app, click the + symbol and enter the IP address and screen number. With the password entered, you’ll be able to Connect.

Control Your Raspberry Pi From Mobile With RealVNC

RealVNC Viewer has a well-considered user interface, giving you the ability to accurately move the mouse with your fingertip and tap or double-tap on tools and icons in the PIXEL desktop environment. It’s one of the most effortless remote desktop experiences we’ve ever seen!