loading
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 192.168.2.1
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.
<p>Hello,</p><p>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. </p><p>Thank you very much for the info.</p>
<p>Is there some limitation causing that I'm not able to connect my RPiB+ over patchcord (directly connected to laptop) USING FIXED IP ADDRESS?</p><p>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... </p><p>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</p>
<p>An older thread, but I'm posting some info for those who are reading this.</p><p>&quot;Does RPiB+ remember previous MAC address of router,&quot;</p><p>Simple home-type switches and routers do NOT use MAC or IP addresses.</p>
<p>Needed to disable firewall for ethernet connections and only then my B+ connected.</p>
<p>Thanks a ton </p>
<p>can i also share pc internet on my pi via this method</p>
what if my rasberrypi runs a windows 10 IOT??
<p>I have followed your instructions but get the following error: </p><p>&quot;Network error: Connection refused&quot;, when I try to run PuTTy.</p><p>Please help.</p><p>Thanks</p><p>Alan</p>
<p>Tried this but DHCP server still disabled &amp; unable to obtain status from DHCP server.</p><p>Any ideas ?</p><p>Alan</p>
Thanks for the help :)
<p>yay, thanks for the tutorial, after some attempts I got it running</p>
<p>Fantastic start! Some extra info:</p><p>You can connect the R.Pi to the internet by adding some routing info like this:</p><li>sudo ip route delete default dev eth0<li>sudo ip route add default via &lt;windows box ip address&gt;
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?
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 0.0.0.0 next to the ethernet adapter, it may cause a problem.
<p>The IP address is showing 0.0.0.0 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 0.0.0.0. How do I fix this?</p>
<p>Hello bhulsey1,</p><p>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?</p>
<p>Hi</p><p>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. </p><p>Hope that helps the rest who are experiencing the 0.0.0.0 issue.</p>
<p>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 .</p>
<p>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? </p>
<p>Thanks! It works perfect.</p>
<p>This is a fantastic article. Thanks! By the way, I also had a problem getting the pop-up. I had to disable the Windows firewall by going to firewall properties, and under the public profile, there is a button for 'protected network connections'. I unchecked the local ethernet connection, and it worked. Also, when you run the DHCP Server wizard, you can check the 'HTTP Protocol' in the configuration. This allows you to see what connections the DHCP Server has assigned by going to 127.0.0.1 in your browser.</p>
<p>please help me!!!..I'm getting a afatal error saying connection timed out. Tried it several times and even checked my firewall, still no improvement,</p>
<p>hello</p><p>ive got a fatal error...&quot;conection timed out&quot;. Tried it 50 times, but no improvement Please help me out. </p>
can i use b+ model
<p>yes.</p>
<p><strong>Worked With B+<em>....... Thanks</em></strong></p>
<p>Thanks for helpfull explanation</p>
<p>Thank you LukaszS !</p>
<p>Hey, Nice Instructable.</p><p>My Problem only comes in the end. After running PuTTY and entering the IP address assinged,the terminal is opened. but after about 20s, I get a &quot;Network error: Connection timed out&quot;<br>Please help asap!<br>thank you</p>
<p>Hey, thanks !</p><p>The issue you are facing could possibly be due to a faulty ethernet cable or an improper configuration of either the Pi or the PC's firewall. First, ensure that your network cable is working (It should preferably be a straight patch cable and not a crossover cable). If the cable is fine, try checking the PC's firewall settings. Good luck!</p>
<p>hi i really need helping to connect my raspberry to internet conection. i use ssh for display rpi. i want sharing internet conection from the laptop to rpi with utp cable. my laptop conect to internet with wifi tethering form my handphone. internet was successfull to access lan adapter from sharing conection. but why if i want to update in my raspberry always failed. thanks for read my question. sorry if my english not over good. please for answered :)</p>
<p>Everything work fine until the end, Putty give me a fatal error: Network error: Connection Refused. What does that mean?</p>
The error means that it is able to reach the Pi over the network but the Pi is refusing the incoming connection. Either the ssh service is not running on the Pi or it is not properly configured. Ensure that the ssh service is up and running on the Pi.
<p>How do I know if the ssh service is up and running on the Pi? Do I have to do anything with my raspberry pi other than boot it up?</p>
<p>Works Ok..</p><p>But I have a question...I am running a solution in c++ over Raspberry that requires to send data to the Host computer through Sockets...I am passing the address 192.168.2.1..but it gets stuck on Connect() call...any body got any ideas what i am doing wrong...</p>
Hi Hassan,<br><br>Try disabling the Windows Firewall. Windows classifies the network connection as a Public Network by default and the firewall may be blocking your Sockets request.<br><br>Good luck !<br><br>-nprasan
<p>It works perfect! I do have a question that how to connect to internet via the internet connection of the PC through this Ethernet? Thank you</p>
<p>Hi vishal,</p><p>It should be possible to share an internet connection using a proxy server program on your PC/Laptop. The full version of Connectify is capable of doing this, but unfortunately it is paid. But, there should be free equivalents that will do the trick.</p>
<p>Works perfectly!!!! </p><p> Thank you :)</p>
You are welcome !
<p>Hi, i have a notebook with wireless internet connection. It all works, but i don't have internet connection anymore. The gateway is 192.168.1.1. Can you help me, please?</p>
Hi,<br>If you use the same IP address range for your wired and wireless connection, it may result in your internet getting screwed up. If your wireless internet is using an IP address in the 192.168.1.x range, use an IP address in another range, say 192.168.5.x or something for the wired connection. That might help.<br>Good luck!
This sounds great. <br>I'm new to the Raspberry Pi and often don't have access to the TV! <br>Can I just confirm that with this arrangement I can then develop and run code on the RaspPi directly from my laptop, i.e. use the laptop display, key board and mouse?
Hi Treth, With this arrangement you can develop and run code on the RaspPi using your laptop display and keyboard. Do note that this is limited to editing and running code from a terminal. You cannot actually view the video output of the Pi, say like a video playing. You can program as well as run code in a terminal - thats it. I hope I was clear.
Is there any possibility of building a &quot; TV tuner cord&quot; with this &quot; Raspberry Pi &quot;. <br>We are having Digital TV signals and a Monitor. How to build that ? you can try &amp; inform me. kkrao22@gmail.com
Hi raokk, It should be possible to view Digital TV signals using Raspberry Pi. You can use a USB TV Tuner or a USB DVB-T receiver with the Raspberry Pi to do this. A list of compatible devices are available at http://elinux.org/RPi_VerifiedPeripherals#USB_TV_Tuners_and_DVB_devices
Thanks for fast reply. <br>I shall investigate further, with your nicely detailed project. <br>You just received my vote.
Thanks Treth ! Good luck for your RaspPi projects.

About This Instructable

132,926views

113favorites

License:

Bio: Engineer. Educator. Entrepreneur.
More by nprasan:Generating Lissajous Figures using a PC/Laptop Sound Card Use your Windows Phone device as a Wireless Microphone Use your smartphone mic with your PC 
Add instructable to: