Use Your Tablet As Raspberry Pi Screen





Introduction: Use Your Tablet As Raspberry Pi Screen

You need a certain type of monitor to use Raspberry Pi. Most of people do not have a monitor specifically for his/her Raspberry Pi. By taking this method, you can make your tablet or smartphone a screen for your Raspberry Pi. This will increase your productivity when you work with Raspberry Pi since you don't have to connect it with a PC screen.

Note that this technique works only when your Raspberry Pi and tablet/smartphone are connected to a same WiFi network.

For the detailed procedure, please refer to my blog.

Step 1: Check Raspberry Pi IP Address

You will be required IP of your Raspberry Pi in the following steps. You have to connect Raspberry Pi with screen and open the command line to In order to check the IP. Enter ifconfig or hostname -I. Keep the IP!

Step 2: SSH Client Setting - 1

SSH (Secure Socket Shell) client needs to be installed on your device. For example, Serverauditor is available both for Android and iOS devices. As an example, check my blog to set up SSH client, Serverauditor.

Step 3: VNC Server Installation and Setting

You can do this either on your tablet as now your SSH is available. Of course, you can do this on your Raspberry Pi connected with a PC monitor. Open a console line and enter the command by referring my blog.

Step 4: Install & Set Up VNC Viewer App on Your Tablet

Now you need to install VNC viewer app on your device. Many similar apps are available. The most famous one is the app by Real VNC. Once you install a VNC app, you need to set it up. You will need to enter Raspberry Pi IP followed by ":1" which is a display number. Also you will required VNC server password that you create in the previous step.



    • Paper Contest 2018

      Paper Contest 2018
    • Pocket-Sized Contest

      Pocket-Sized Contest
    • Science of Cooking

      Science of Cooking

    We have a be nice policy.
    Please be positive and constructive.


    2 Questions

    this seems more like an ad for your website than an instructable geez



    I encountered the following error at step 2.

    Please advise.

    Thank you.

    Screenshot (373).png


    If you have proper network routing set up on both
    devices, this should be possible even over the Internet. It'd be too
    entailed to describe the steps here, and since I don't have an rPi to
    work with, I can't create an instructable to show you how. However,
    what you will need to do is to add a forwarding rule to your home
    Internet gateway/router, to point incoming traffic to your rPi.

    Ports to open:

    vnc-server 5900/tcp # VNC Server
    vnc-server 5900/udp # VNC Server

    ssh 22/tcp # The Secure Shell (SSH) Protocol

    1) permanently assign an IP address to your rPi, on the gateway/router.

    Create forwarding rule to allow incoming addresses asking for port 5900
    to be redirected to that permanent IP address and same ports. Note:
    This allows any monkey on the internet to poke your VNC services, so
    make sure you have passwords set up. You may have to do the same for
    port 22, or SSH. Again,if someone gets that password, they can take
    over your rPi, and try attacking everything on your home network too.
    You can tighten security by only allowing specific IPs to "come in", so
    make sure to learn how to do that once you have a working connection.

    3) From your rPi, Go to
    to see what IP address from the "outside" you'd need to use on the
    "outside computer." When you are "inside" you would use the IP from
    step 1.


    In regards to the IP
    address details in the configuration of VNC, this interface is looking
    for IP:Display# , not IP:port number. VNC is a tool to allow multiple
    people to have separate virtual "displays" to interact with the VNC
    server. Each user has a definition, which includes the display numbers,
    in the example, it's display 1. Additionally, VNC can be changed to
    unique ports per connection.

    Is it possible assign a fixed ip?
    Your mobile connected to internet by a provider, you find ip by whatsmyip if you hit that ip with any other device, do you think request will come to your mobile ? You sure ?

    No, no no... No. Do not do this. This is extremely dangerous, opening your network up to LOTS of bad things for zero gain.

    I will say again: DO NOT OPEN UP PORT 5900 TO OUTSIDE TRAFFIC.

    Because there is no need to do so, when you are connecting to SSH anyway. Just use a SSH tunnel to connect to port 5900 through the SSH connection. Then all your traffic for both SSH and VNC is encrypted (Which most VNC connections are NOT by default) and you only have to open a single port.

    Final warning: Do not open 5900 to outside traffic.

    Yes, It is the clever way to encrypt the communication using ssh tunnel !

    Thanks. Your comment is definitely a good addition for this post. It's roughly mentioned,
    But I didn't know what to do. As you advise, setting password is must for security, I think. Also thank you for pointing out wrong description. I corrected "port#" as "display#".

    Rather than opening ports (which is inherently insecure) you can set up a free VPN service using Weave. See Raspberry Pi instructions at

    Or use proper port redirection. Pick a random public side port that maps to the standard private port.

    Using a different port than standard is nearly as insecure as using standard port is. Port sniffing is so easy to do nowadays that using non-standard ports is only useful if the attacker is using IP range discovery to hunt for low hanging fruit (people with open common ports) that he might gloss over you and pick someone else. If it's your specific system he is after using non-standard port is useless.

    The onyl proper solution is to use secure/encrypted networking. Besides, NX/X2go are better for latency and speed in most cases than VNC and are inherently more secure because they're built atop of ssh -x and promote best practices (certificate based auth etc.)