How to Connect Raspberry Pi to Laptop Display

220,163

115

27

About: I am an enthusiastic person who does not follow reality, instead who creates reality. I am sharing some projects with amazing people across the Globe (Of course you people) and I hope you will like them.

The reason why I came up with this intractable is because: one day, me along with my friends were struggling to work on the raspberry pi, since we did not have any HDMI/AV displays. Hence, I came up with this tutorial so that others who are also in the same situation as ours would be able to use the display of their laptops as a monitor to the Raspberry Pi.As we know Raspberry Pi is known as the “Pocket Size PC”, but for debugging & project purposes its cumbersome to carry an additional display just for that. Also, many of us wont have access to a HDMI display too. So, we figured out a way to easily connect raspberry pi to laptop display. So sit back and enjoy this simple tutorial :)These are the stuffs we need:

  • Raspberry Pi.
  • Ethernet Cable.
  • Laptop.
  • SD Card with Raspbian.
  • Micro USB Cable.(Optional)

Components required for setting it up the first time:

  • HDMI/ AV Display.
  • Keyboard and Mouse

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Setting Up Your Raspberry Pi

How does it work?

To connect raspberry pi to laptop display, you can simply use an ethernet cable. The desktop GUI (Graphical User Interface) of the raspberry pi can be viewed through the laptop display using a 100Mbps ethernet connection between the two. There are many softwares available that could establish connection between the raspberry pi and your laptop. We would be using the VNC server software to connect the pi to your laptop. Installing the VNC server on your pi allows you to see the raspberry pi’s desktop remotely, using the mouse and keyboard as if you were sitting right in front of your pi. It also means that you can put your pi anywhere else in your home, but still control it. Also, internet can be shared from laptop’s WiFi over Ethernet. This also lets you access internet on the pi and connect raspberry pi to laptop display.

Before moving to connect raspberry pi to laptop display, you need an SD card having the OS preinstalled. You will find lots of blogs and tutorials about preparing an SD card for the Raspberry Pi. But if you are a beginner, you can simply download this free beginner’s guide eBook on pi: Raspberry Pi guide. This will show how to install the OS for the raspberry pi.
After setting up your SD Card, insert it into the raspberry pi. Next, for powering the pi connect your micro USB cable to it. Also connect your raspberry pi to the laptop via an ethernet cable. And connect the keyboard & mouse to it. Now, connect the HDMI display (the HDMI is only required for running the pi for the first time). Now power on your Pi. And follow the next steps to connect raspberry pi to laptop display.

Step 2: Sharing Internet Over Ethernet

This step explains how you can share your laptop internet with the raspberry pi via Ethernet cable.In Windows : For sharing internet to multiple users over Ethernet, go to Network and Sharing Center. Then click on the WiFi network:

Click on Properties (shown below), then go to Sharing and click on “Allow other network users to connect”. Make sure that networking connection is changed to “Local Area Connection”:

Note : Doing this will provide a dynamic IP to the Ethernet port of your laptop and other Devices connected to your laptop. Now, for checking the IP assigned to your laptop, Click on the new local area connection link created:

As shown above, the IP assigned to my laptop is 192.168.137.1. For checking the IP assigned to the connected ethernet device, do the following. Considering that IP assigned to your Laptop is 192.168.137.1 and subnet mask is 255.255.255.0 :
Open command prompt.

Ping on broadcast address of your IP. (Type) Eg: ping 192.168.137.255.

Stop the ping after 5 seconds.

Check the reply from device: arp –a

Step 3: Setting Up the VNC Server to Connect Raspberry Pi to Laptop Display

If you have an HDMI display: Using the connected HDMI display on your pi, you should install VNC server in raspberry pi. Open the LX-Terminal and type the following commands to install VNC:

$ sudo apt-get update

$ sudo apt-get install tightvncserver

If you don’t have an HDMI display: If you do not have a display even for one time setup, then no need to worry. Install Putty as per your windows configuration and via SSH you can connect with your raspberry pi. And, as you get access of your pi terminal, run the same commands as above to install VNC. Starting VNC Server on Pi : For starting VNC, enter the following command in SSH terminal:

$ vncserver :1

You will be prompted to enter and confirm a password. This will be asked only once, during first time setup. Enter an 8 digit password. Note that this is the password you will need to use, to connect to the Raspberry Pi remotely. You will also be asked if you want to create a separate “read-only” password – say no (n). Yippeee :)….The VNC server is now running on your Pi and so we can attempt to connect to it. But first we must switch to the laptop, from which we want to control the pi. Then setup a VNC client to connect to the pi.

Step 4: Setting Up the Client Side (Laptop)

  • Download VNC client from here and install it. When you first run VNC viewer.

  • Enter IP address of your raspberry pi given dynamically by your laptop (you got the address from the earlier step). And append with :1 (denoting port number) and press connect. You will get a warning message, press ‘Continue’

  • Enter the 8 digit password which was entered in VNC server installation on raspberry pi

Finally, the raspberry pi desktop itself should appear as a VNC window. You will be able to access the GUI and do everything, as if you were using the pi’s keyboard, mouse and monitor directly. As with SSH, since this is working over your network, your pi could be situated anywhere as long as it is connected to your network.

So, whenever you want to do something with your pi, just connect it with ethernet cable to your laptop and power it. Then open VNCViewer, mention the IP address of your pi. And you can use the display of your laptop as the raspberry pi’s monitor.

Don't forget to like.

Share

    Recommendations

    • Indoor Lighting Contest

      Indoor Lighting Contest
    • Make It Fly Challenge

      Make It Fly Challenge
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    27 Discussions

    0
    None
    gokul2210krishnan

    Question 2 months ago on Step 1

    Is it necessary to have a HDMI display for first time ? Or Is there any other way to get started without any display..?

    0
    None
    AshishG16

    Tip 3 months ago

    should include steps when you do not get any reply from device.OR message recieved destination host unreachable.

    0
    None
    TheBruh

    Question 5 months ago

    Hi, I follow your instructions and everything works. Problem starts, when I unplug HDMI from monitor and want to star Raspberry by VNC without connection to monitor. It cant find connection and I must still use monitor with HDMI to start VNC on laptop. Any ideas how fix that?

    0
    None
    ssshellimatti97

    Question 5 months ago on Step 2

    sir,after the second step I m not getting the undefined network term in my Laptop...Tell me the problem why not I m getting the that..

    0
    None
    RajP95

    Question 6 months ago on Step 4

    Will thia work with UBUNTU MATE in place of raspbian

    0
    None
    VishnuP60

    Question 10 months ago on Step 2

    How to change the networking connection to 'local area connection' in windows 10?Kindly respond as soon as possible...

    0
    None
    sonalis23

    Question 1 year ago on Step 1

    If I'm not having the ethernet cable.....!is there another way...? To do this

    1 answer
    0
    None
    Jigneshk5sonalis23

    Answer 1 year ago

    Use a vga to hdmi adapter and connect it to your lcd monitor

    0
    None
    Spicoli21

    Question 1 year ago

    I followed the instructions to set up my Raspberry Pi 3 mode B. It works with the separate keyboard, mouse, hdmi to the tv, and hooked up to my router. I uploaded VNC to both the Pi and my laptop. With the Pi still hooked up to the router it worked once. I shut it off and restarted it and could not bring the Pi up on my laptop. I tried hooking the Pi up to my laptop with the ethernet cable and could not get it to work through VNC. It kept saying "timed out waiting for a response from the computer". I am wondering if there is some step I would need to do with my laptop ethernet connection. Advanced IP scanner shows the Raspberry Pi, but the status is shown as "dead". Also, I would like to work on projects at school with my laptop and Raspberry Pi. If I am logged on to the school's wifi and have the Pi hooked up to the laptop through the ethernet connection (provided I am able to get it to work), would I be able to get it to work?

    0
    None
    Bhabeshr

    1 year ago

    Hey, I had my pi3 connected to my laptop via ethernet and working properly when both devices were connected to the same wifi network. I switched off the wifi in the raspberry pi by mistake and now cannot access the pi using SSH. Please help.

    0
    None
    BartjeS2

    3 years ago

    Great tutorial, today i got my new Raspberry Pi 3. This works out of the box :)

    Only point i found is that this only works as long the RP is powered. After reboot you have to start VNC server manualy before it can work (not a great thing if there is no monitor or keyboard connected). I made a simple script to start VNC at boot.

    Maybe it's worth adding one more page with those instructions for the ones who like it?

    2 replies
    0
    None
    JacekP

    2 years ago

    made it with xrdp on Windows. No need of any startup script.

    0
    None
    Min JieL

    3 years ago

    always failed :) fatal error coming out from PuTTy

    0
    None
    navael

    3 years ago

    This doesn't work for me - "Make sure that networking connection is changed to “Local Area Connection”. It stays on Ethernet. What do I do? Any help is appreciated, thanks!

    0
    None
    hydranix

    3 years ago

    Instead of a VNC server, use SSH and forward X11. For Windows, use MobaXTerm (free)

    For Linux just use native X11

    For Mac just.... rofl apple