Accessing the Raspberry Pi remotely is a useful feature. Depending on how you use it, it can work without the need for a keyboard, mouse and monitor, as it is not always possible to operate it directly. With remote access, you can send commands from your computer by enabling  VNC (Virtual Network Computing).

How to access Raspberry Pi remotely

How to access Raspberry Pi remotely

1. Enabling VNC

The first thing to do is to enable Virtual Network Computing ( VNC ) on your Raspberry Pi. This can be through the graphical environment, or through the Terminal.

To activate it by the graphical environment:

  1. Click MenuPreferencesRaspberry Pi Configuration, and then click Interfaces;
  2. In VNC, select the Enable option.

vnc-001

To activate it by Terminal:

  1. Open the Terminal;
  2. type “sudo apt-get update” (without the quotation marks) and hit Enter;
  3. enter “sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer” (without the quotation marks) and hit Enter;
  4. In VNC, select the Enable option.

2. Discovering the IP of Raspberry Pi

Next, you need to find out the IP address of Raspberry Pi. If you use it as a desktop, with keyboard and mouse and connected to the TV, this is quite easy to do:

learn_raspberry_pi_ifconfig

  1. Open the Terminal;
  2. Enter the command “sudo ifconfig” (without the quotation marks), and hit Enter;
  3. Next to wlan, the Terminal will display the IP of the Raspberry Pi (usually 192.168.XX ). Write it down.

Now if your Raspberry Pi works without a monitor or keyboard, you will need to use the Adafruit Pi Finder program (Windows, MacOS and Linux) to find it;

  1. Connect your Raspberry Pi to the network via cable;
  2. Download, install and open Adafruit Pi Finder on your computer;
  3. Click Find My Pi;

raspberry_pi_Screen_Shot

  1. The program will return the Raspberry Pi information, including the IP address. Write it down.

3. Accessing Raspberry Pi with VNC Viewer

Once you have done this, you will now need VNC Viewer  (Windows, MacOS, Linux, iOS, Android, etc.). It is it that will allow you to open the Raspberry Pi screen on your computer.

  1. Download, install and open VNC Viewer on your computer;
  2. On the first screen, enter the IP address of Raspberry Pi and click Sign In;
  3. If the VNC Viewer prompts for username and password, enter the Raspberry Pi defaults.
    User: pi;
    Password: raspberry;
  4. Click OK.

vnc-viewer

After that, VNC Viewer will display the screen of your Raspberry Pi on your computer, and you can operate it without the need for additional peripherals such as keyboard, mouse and monitor.



LEAVE A REPLY

Please enter your comment!
Please enter your name here