Direct Network Connection Between Windows PC and Raspberry Pi




About: Engineer. Educator. Entrepreneur.

Here's a simple method to connect to your Raspberry Pi through SSH from a Microsoft Windows based PC or Laptop.

All you need is :

1. A Windows based machine with an Ethernet adapter
2. An Ethernet cable (a normal patch cord or a crossover cable - both work)
3. A Raspberry Pi Model B

Unlike most of the other methods described online, you do not need to :

1. Use an Ethernet or WiFi router
2. Have a monitor or any display connected to the Raspberry Pi
3. Have a keyboard connected to the Raspberry Pi
4. Edit any files on the Raspberry Pi's SD Card

Here's how to proceed.

1. Download DHCP Server for Windows. It is a 100kB download available here.
2. Go to the IPv4 properties page of the Ethernet adapter and set a fixed IP address, say
3. Run the DHCP Server Wizard (downloaded above)
4. Select the Ethernet adapter from the list shown
5. Save the configuration file and start up the DHCP Server
6. Click the 'Continue as tray app' button in the server control panel.
7. Boot up the Raspberry Pi
8. A popup notification shows the IP address assigned by the DHCP server to the Raspberry Pi.
9. Use a SSH client, like PuTTy, to connect to the IP address shown

Voila ! You are connected to your Raspberry Pi.

Teacher Notes

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

Raspberry Pi Contest

Participated in the
Raspberry Pi Contest

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    49 Discussions


    Question 1 year ago

    In the Instructable above (Direct network connection between windows pc and RPi), I could not understand how can I get Raspberry pi out put shown in video (at the right corner) on my PC Screen. I have done all the steps for DHCP server and SSH (upto step 9) but I did not get any output of RPi on my windows screen.

    Another problem: Bash error received: rtmpdump command not found


    2 years ago


    After a lot of trials, this way of connecting raspberry pi and my laptop works for me. I do not know the details of dhcp, or how to do it manually on windows 7 , but it works. Thank you for sharing the info.

    Thank you very much for the info.


    4 years ago on Introduction

    Is there some limitation causing that I'm not able to connect my RPiB+ over patchcord (directly connected to laptop) USING FIXED IP ADDRESS?

    I wanted RPiB+ to use fixed IP address instead of DHCP, so I set it; now it works when RPiB+ is connected to my local LAN over switch (and router), but when I connect it directly to my laptop (with accordingly changed IP address of laptop), it does not work!? I have already tried a lot of possibilities, but still no ping...

    Does RPiB+ remember previous MAC address of router, so after connecting laptop with other MAC address it refuses to connect? Or something else? Thanks for any idea... #J

    1 reply

    Reply 3 years ago

    An older thread, but I'm posting some info for those who are reading this.

    "Does RPiB+ remember previous MAC address of router,"

    Simple home-type switches and routers do NOT use MAC or IP addresses.


    3 years ago

    Needed to disable firewall for ethernet connections and only then my B+ connected.


    3 years ago

    can i also share pc internet on my pi via this method


    4 years ago

    what if my rasberrypi runs a windows 10 IOT??

    I have followed your instructions but get the following error:

    "Network error: Connection refused", when I try to run PuTTy.

    Please help.



    Tried this but DHCP server still disabled & unable to obtain status from DHCP server.

    Any ideas ?



    4 years ago

    Thanks for the help :)


    4 years ago on Introduction

    yay, thanks for the tutorial, after some attempts I got it running

    Fantastic start! Some extra info:

    You can connect the R.Pi to the internet by adding some routing info like this:

  • sudo ip route delete default dev eth0
  • sudo ip route add default via <windows box ip address>
  • None

    5 years ago on Introduction

    Its fine till step 7, but I did not get any pop-up notification. I've tried it twice and checked everything.How do I get it to work?

    4 replies

    Reply 5 years ago on Introduction

    hi h3manth, i'm not sure why the pop-up notification is not coming up. when selecting the ethernet adapter while installing the dhcp server, ensure that it shows the IP address you configured previously. If it is showing next to the ethernet adapter, it may cause a problem.


    Reply 5 years ago on Introduction

    The IP address is showing in the dhcp server, and you're right, it's causing a problem. I don't ever get a pop up. As far as I can tell I have my local area connection ipv4 set up correctly according to your video. I've tried several different IPs but it just keeps showing How do I fix this?


    Reply 4 years ago on Introduction

    Hello bhulsey1,

    Did you get your problem solved. I am having the same problem. If you did get this fixed, could you tell me what you did?


    Reply 4 years ago on Introduction


    i experienced the same issue too. However, once i tried booting up the Rpi and connecting it to the laptop via the ethernet cable, then followed by setting up of DHPC wiz, the problem is gone.

    Hope that helps the rest who are experiencing the issue.


    4 years ago on Introduction

    thank you!! worked for me ... as my raspberry pi address was in different network and my laptop was connected to different network, I had to set the gateway address equal to the ip assigned by dhcp to my laptop .


    4 years ago on Introduction

    sir if i connect my raspberry pi to router of my pc with ethernet cable and use the steps of this in my pc will this post help me?