Sharing WiFi Internet connection with Raspberry Pi through LAN/Ethernet (Headless Mode)

Update 25th August, 2017: I haven’t tried this method yet on the recently released Raspbian Stretch version. However, one user has confirmed that the first method works on it. If it works for you, please let us know through the comments. Thanks.

Update 29th Dec, 2016: If you’re using the latest PIXEL Image, please make sure you enable the SSH Server by placing a a file named as ssh in the boot directory before trying any of the following methods. The SSH Server on boot has been disabled in the latest Raspbian image as a security measure. Read more about it here:

Update 9th July, 2016: I’m inspired by this method of SSHing into a Pi through the USB only and gonna tinker and see if we can get to also share Internet over to the Pi using only the USB. (No more messy LAN Cable 🙂 ). If you get it working, please share.

Update 10th July, 2016: I’m afraid, I won’t be able to get the above method running on a Pi 2/3 as it’s only supposed to work on a Pi Zero. If you have a Pi Zero and are interested in Sharing WiFi over USB, please check out

Updated 5th April, 2016 with Striner’s method


If this Tutorial helps you, please consider PayPaling me any positive integer at

This post will allow you to share WiFi Internet connection of the PC/Laptop with the Raspberry Pi which are connected to each other through a simple LAN/Ethernet cable connection at each end.

What you want to do:

  1. Share PC/Laptop’s WiFi Internet connection with Raspberry Pi through LAN/Ethernet connected to Raspberry Pi

What you have:

  1. Raspberry Pi B/B+/Pi 2/Pi 3 (If you’ve a Pi Zero, please try and let us know if this works on a Zero. I haven’t got a Pi Zero yet) running the latest Raspbian Wheezy. (I’ve not yet tried it with recently released Raspbian Jessie based off Debian 8. If you’ve been successful with this latest release, please post in the comment and I’ll update it here. Thanks.)
  2. PC/Laptop with WiFi Internet connection and a Ethernet Jack (LAN Connector / RJ45)
  3. A working SSH connection with Raspberry Pi (direct access, explained here) Not required if using Striner’s or Bridge.

What you don’t have:

  1. Display Device for the Raspberry Pi (HDMI enabled display unit / Old TV)
  2. Direct Internet connection for the Raspberry Pi (LAN or WiFi)

Extra Stuff you need:

  1. Standard Network Cable (Cat 5, Standard or Crossover)
  2. PutTTY Software (will be used to SSH into the Pi)
  3. SD Card Writer

The easiest way to go around Sharing WiFi with Raspberry Pi is to follow Striner’s method of Sharing WiFi with the Raspberry Pi.

I’ve tested it with Raspberry Pi 3 and Windows 10 and he’s tested it on Win 8.1 and an earlier Pi and should work will Raspberry Pi B/B+/Pi 2/Pi 3. This hasn’t been tested with Win 7, though it mostly should work. Please give a shoutout and let us know if you’ve tried on Win 7 and it works.

Method 1: Striner’s Method

Tested On: Windows 10 & Raspberry Pi 3 & Pi B (the Yellowish RCA model 😉 )
Known to work on: Windows 8/8.1 & Raspberry Pi B/B+/Pi 2
Not tested (yet) on: Windows 7 & Raspberry Pi B/B+/Pi 2/Pi 3

1.1 Open up the Network and Sharing Center settings and navigate to Change Adapter Setting

Raspberry_Pi_WiFi_Sharing1.2 Right click on the Wireless Adapter and hit Properties

Raspberry_Pi_WiFi_Sharing1.3 Navigate to the Sharing Tab and select the Allow other network users to connect through this computer’s Internet connection checkbox

Raspberry_Pi_WiFi_Sharing1.4 Now right click the Lan Adapter and hit Properties. Double click the IPV4 option and verify that some dynamic IP is populated ( in my example)




1.5 Now Power ON the Raspberry Pi (ignore if already powered ON :P) and connect one end of the LAN Cable to the Raspberry Pi and the other end to the PC. You should be able to see status messages Identifying… and eventually Unidentified network


1.6 Open up cmd prompt and type in:


You should be able to ping the Raspberry Pi:


1.7 Open up Putty and set the Host Name as: and hit connect. (You can also use the IP address of the Pi revealed in the above ping prompt:


1.8 You should be able to see the login prompt. Hit pi and raspberry and Enter


1.9 You can now


(or any other website) from within the Shell and you’ll have response messages. Congratulations! Your Pi now is connected to the World Wiiiiiiide Web 😉


Testing apt-get


Big Thanks to Danny Striner, who shared this method in a comment and tested it out. Full credit goes out to Striner. I’ve named this method as the “Striner’s Method” to honor him 🙂

P.S: If you run into issues trying out this method, please disable windows firewall and try again (as pointed out by some users in the comments).

Method 2: Using Network Bridging

Edit: [12:58AM IST, 1 Feb, 2016]: I just stumbled upon a super simple process of Bridging the connections and directly ping and access Internet on the Raspberry Pi without having to edit anything on the SD Card’s cmdline.txt file.

Tested On: Windows 7 & Raspberry Pi 2
Known to work on: Windows 7/8/8.1 & Raspberry Pi B/B+/Pi 2/Pi 3
Not tested (yet) on: Windows 10 & Raspberry Pi B/B+/Pi 2/Pi 3

This process worked flawlessly for me and I’ve wrote a detailed tutorial here:

If this doesn’t work, please follow Method 3 below.

Method 3: Editing cmdline.txt file of Raspberry Pi SD Card

Tested On: Windows 7 & Raspberry Pi B/B+/Pi 2/Pi 3
Known to work on: Windows 8/8.1 & Raspberry Pi B/B+/Pi 2/Pi 3
Not tested (yet) on: Windows 10 & Raspberry Pi B/B+/Pi 2/Pi 3

Edit: 2nd Jan, 2015. Added Video Tutorial:

A large part of this post assumes you’ve read the earlier post on directly accessing the shell on Raspberry Pi through a Ethernet/LAN connection. In this post, we’ll go about setting up the Raspberry Pi to access internet through the RasPi’s Ethernet/LAN port from a Laptop/PC’s shared WiFi connection.

Method 3 Steps:

  1. Firstly, enable the WiFi adapter of the PC/Laptop and make sure it’s connected to a WiFi hotpspot. Open any Internet Browser and confirm internet access by opening any website.


Note: I’m using my Android device (Nexus One) configured as a WiFi hotspot J

  1. Now, go to Network and Sharing Center (Network Settings in Win XP) and then head to the Change Adapter Settings page. As shown below, we’re connected to ‘Wireless Network Connection’ on ‘Android 4’. Do remember the ‘Local Area Connection’ to which we’ll eventually share this connection


  1. Now, right click the above Network → Properties and then select the Sharing tab


  1. From the drop down list, choose ‘Local Area Connection’ and enable both the checkboxes and hit OK. Once done, head back to the Adapter Settings page and you should now see the Shared info message on the Wireless Network Connection



  1. Now, right click ‘Local Area Connection’ → Properties and then select Internet Protocol Version 4 and then click the Properties Button


Once the properties tab pops up, make sure that the ‘Obtain IP address automatically’ checkbox is selected. If not, check it and hit OK


  1. Now, power up the Raspberry Pi (making sure that the Ras-Pi and the Laptop/PC are connected to each other through the LAN/Ethernet cable) and wait a minute or two while the Ras-Pi boots. Now, repeat step 5 (previous one) to make sure ‘Obtain IP Address Automatically’ is still checked.
  2. Open up command prompt using the hotkey Windows Key + R and then typing in cmd or simply keying in cmd in the start menu (Win 7)
  3. In the command prompt, key in ipconfig and scroll to the top of the info shown


Note the IPv4 address which is in this example. Please make a note of what you see as this will be required further.

  1. Now, power off the Raspberry Pi and plug the Ras-Pi’s SD card into a card reader and connect it to the PC. Once the disk opens up, open the cmdline.txt file in any editor



You’d probably have an entry as ip= which we set up in our previous post

  1. Now, to this entry, append the IPv4 which we got earlier preceded by two colons as shown below:


where the first half is the static IP for Raspberry Pi ( and the other half is the IP of the IPV4 or Ethernet Adapter ( which we obtained earlier.

  1. Save this file and plug the SD card back into the Raspberry Pi. Power up the Raspberry Pi and wait for a min or two. Establishg a direct SSH connection with the Raspberry Pi as explained in the previous post.
  2. Now, to verify if our Ras-Pi is Internet-Connected, type in this command in the Shell (PuTTY terminal connected to the Ras-Pi)


and you should see response from the servers as shown below:


Voila!!! Your Raspberry Pi is now connected to the World Wide Web 🙂

  1. Going one step further, lets direct access the Raspberry Pi’s desktop and open up the midori browser. Verify Internet connectivity on the Ras-Pi by opening any website.


 Note (Edited: 5th Feb, 2015): Midori browser is no longer coming pre-installed with the latest Raspbian version and has been replaced with Epiphany Browser. Please use that instead to verify internet connectivity.

Method 4:

Check out the comments. Many users have shared their own techniques which work on Win 8/10 flawlessly.

Please let me know your feedback or questions through comments.

Thanks 🙂



P.S: Did this post help you? Please leave your feedback. If you’ve tried some additional steps that helped you in getting this working, please share so we all can benefit from.

If you’ve benefited from this post, please consider donating and help me buy new development stuff and create new tutorials/resources. Thanks!


Author: Anwaarullah

Designer, Developer, Maker, Speaker, Educator and Dreamer. ♥ Tinkering with Embedded, Android, Open Soft/Hard/Firm ware, Robotics and 3D Printer. Talk to me at syed {Shift+2} anwaarullah dash com

214 thoughts on “Sharing WiFi Internet connection with Raspberry Pi through LAN/Ethernet (Headless Mode)”

  1. am stuck here now…doesnt seem to connect. Please help me out ..followed all the steps.. any suggestions? thank you

    1. Sorry, I was in office so didn’t get time to reply. Have you had any success with it? This is a little tricky and requires lot of trial and error. If you’re still facing issues, lemme know and I’ll call or email you.

  2. Hey there,
    I’m having trouble with the wireless as well. My laptop is connected to my wireless router and when I go into wireless network connection properties -> sharing tab, there is no drop down.
    I’m using window 7.
    Hope I’ve given enough details… just message back if you need more info 🙂
    Thanks in advance.

    1. Hi Stephenie,

      You first need to configure your WiFi adapter to share it’s Internet. Right click the WiFi adapter and on opening the properties, you should be able to enable sharing. Once done, plug in the Raspberry Pi to the LAN jack of your PC and you’ll get this LAN as a sharing option in the dropdown.

      Lemme know if that works or not.

        1. Interesting, I don’t see the Dropdown in your image. Is that option locked down by your Admin if that’s an office workstation? Can you see that dropdown for other Networks?

  3. Thanks for the post,

    Unfortunately I am still unable to access the internet. I am using Windows 8 and the only difference in direction was there was no dropdown from Step 4 but after reading elsewhere I don’t believe that is the problem. And from Step 8 “Ethernet adapter Local Area Connection” is “Ethernet adapter Ethernet” instead.

    I’m connecting via SSH which I just got working by editing cmdline.txt. I appended the ip address from Step 8 to the end following directions. However, I still can’t access the internet. When I ping I get “ping: unknown host” Any ideas?

    Thanks in advance!

    1. I have the same issue. I can ping each other, pc with windows 8 and pi – earlier I can’t ping from pi to pc but I disable windows built in firewall and than start working. But I still can not get access to Internet through my pc. I was googling for bot I can’t get answer.

    1. Internet connection didn’t work for me. When I have the network sharing enabled the Pi connection via Putty closes – am I missing something?

      1. Are you able to reconnect back to the Pi using Putty? Have you given a static IP to the Pi? Can you also try hard rebooting the Pi whilst it’s connected to PC thru Ethernet?

  4. I am having a little problem with connecting to the internet. I followed all the instructions exactly but when I try to ping a website i.e. google i get the error ping: unknown host I am using windows 8 with putty. What does this mean?

    1. I was similar problem. I connected PI with PC (Win8) directly via Ethernet cable, and my PC was connected to router via WiFi. I could ping PC and Pi but I couldn’t connect to Internet in my Pi. I decide moved my Pi and connect it to router using ethernet cable. My PI have static IP. I spent a lot of time on it before I could understand everything. If you have posibility to connect your Pi with router, this is the best solution for me. In Windows 8 I achieved only connection between Pi and PC.

  5. for windows 8 users after allowing other computers, u should see ipv4 properties of ethernet network and DONT check”obtain ip automatically”.. instead copy the ip(say and edit cmdline.txt and add ip…it works.

      1. I did not understand the method Harsh mentioned to work in windows 8. Could you please explain the last line ?
        FYI, I followed all the instruction you mentioned in this guide. But unfortunately it did not connect to the internet. I am using windows 8.1 While using automatically detect ip I got the address as: then in the cmdline.txt I added ip
        Can you please tell me how to resolve this by not choosing “obtain ip automatically” as Harsh told above? Thank you!

    1. When I don’t check ‘obtain ip automatically’ I get the default-set ip address as In the cmdline.txt file, where should I be adding to? should it be, following your example, ip= or be ip= Thanks for helping out!

    2. Hi, could you please elaborate a bit? I can’t seem to connect through Putty.
      I left the “Obtain address automatically” unchecked, and indeed it addressed a value of to my RPi. You said to copy that address, but where do I fill it in?
      My network is on the range of 192.168.178.x, and my laptop has (dynamic).
      Now what do I fill in in cmdline.txt and what do I fill in in Putty?
      I’ve tried several combinations but I get either “connection refused” or “connection timed out”.

  6. hi,

    after fiddling around and watching LOTS of other webpages, I have found a infinitely easier way to get internet working through headless mode (even without editing cmdline.txt)!
    Indeed, go to your wifi settings, check “share connection”. Connect RPi through ethernet, and when you check those ipv4 properties, you will see Windows has probably given it some address like Do not change this, as it will disable the DHCP settings for this connection!
    Now, if you open a terminal and type “ping” you will see it automatically resolves to an IP address.
    You can also use this in Putty to connect! Just type into the test field and voila! It worked on first try and I could even immediately ping from the pi!

      1. I’m using Windows 8.1, but I guess it will be the same for 8 and 7 (though I haven’t tested that).
        Other forums I read said it should be possible to connect to “raspberrypi” but I could never find that address. Then when someone said it should be “” it magically worked.

    1. I’ve been trying this in win 7. hasn’t worked for me.

      what do you mean by test field in putty? did you mean host name?

      1. test field should be text field, small typo, sorry 🙂
        yes, the host name field.
        Did you follow the rest of the steps before trying to ping this address? (share internet connection and not editing the IP settings)

      1. Of course, before I declared some address for Pi, but it seems that it doesn’t matter. What I noticed is that you should do everything in correct order, I mean unplug ethernet cable, set sharing in Inthernet connection properties and than plug Pi again. If you firstly enable sharing and then unplug/restart your Pi, hostname won’t be recognized…

    2. This method also worked for me on a Raspbery Pi Model B+, working on Windows 8.1. Thank you both Anwaarullah and Striner for your combined help on this! You are awesome!

    3. Hi,STRINER I am also using windows 8.1 and i tried your method.The address gets assigned to ipv4 properties but when i ping it says “could not find host please check the name and try again.” Please help.

  7. Hi Having same problem that seems consistent to the above posts
    no drop down box/list with LAN option in wireless sharing check box
    I am able to connect to putty and connect to PI and get vncserver up and running but no internet connection (have windows 7)
    Any help from anyone appreciated have spent quite a bit of time tryib=ng to resolve but with no luck

  8. Is there any way to use the laptop as a router or switch? I don’t want RPi to have different IP address (169…) than my home network (10.0.0.X). Is it possible?

  9. Hi,
    Firstly, I want to thank for the post. It is useful, indeed. But I have an issue. I’ve done all the things , I can connect my Raspberry Pi through SSH, ping Google successfuly but I can not open internet sites in Midori. It is failing all the time.
    What do you think causes this problem? Am I missing something? I’m using Windows 7. Can you help me? Thanks.

      1. Once I was able to connect and several other sites. That was approximately one or two weeks ago. I haven’t formatted my SD Card or changed any settings as far as I remember.

  10. 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. please for answered 🙂

    1. My /etc/network/interfaces file would be the default one without any changes 🙂

      Getting this setup running sometimes takes a dozen tries. Were you able to first get the Direct Access as described in my previous post working?

    1. Hi,

      Thanks for your article. I used to have this working perfectly. Then I set up wifi on the RPi and was connecting using that. Now I’m trying to get headless with shared internet working again…
      The RPi is running Raspian
      My laptop is running Windows 7 Pro 64
      I’ve got the headless part working fine. I can ssh into the RPi and control it from the laptop
      …but I can’t get the shared internet working
      I can ping the RPi from the laptop
      I can ping the laptop from the RPi, but only if I disable Windows Firewall for the public network (which is how the RPi appears). If Windows Firewall is monitoring public network I can’t ping the laptop from the RPi, even though I have enabled ICS and Port 22 in Windows Firewall.
      Even with Windows Firewall disabled, the RPi doesn’t have an internet connection.
      The end of cmdline.txt reads ip: I tried changing the last number of the first part to 222 and headless still works, but ICS does not.
      I suspect the problem is either in Windows Firewall, or that there is something hanging around in the RPi from when I had wifi working (though I have tried to put /network/interfaces back by #commenting out the wlan lines)- do you have any ideas?

      Thanks for your help

  11. Hello everyone,
    I’m trying to connect a R-Pi B+ to the internet through SSH on my Windows 8.1 laptop. I am able to connect it to the R-Pi (I’ve used both the method described in Syed’s earlier tutorial as well DHCP enabled with MRemote-NG). In both cases, I’m able to connect my laptop to the R-Pi. However I cannot connect the R-Pi to the internet using the method listed here as well as the one suggested by STRINER. Any ideas?

    1. I believe Win 8.1 has some firewall blocking rules that’s preventing the sharing from happening. I’m not sure, but I remember I read someone’s comment mentioning this about Win 8.1.

    1. Thanks a lot Rasbee for confirming that those scripts are working as well. It’ll help others here attempting to do that.

      Can anyone please confirm if the scripts are working on Win 7 as well?

      1. Windows 8 is a pain sometimes 🙂 I’ve myself never tested it on Win 8. Have you enabled Network Sharing on your WiFi adapter inside the network settings? Have you done that while the LAN to Pi was connected?

  12. Hello,
    It worked! Thank you very much!
    I have an extra idea:
    Access the raspberry pi via ssh on the localhost via the laptop.
    The ip address of my raspberry pi works on my laptop to communicate via ssh, but if i type that ip address on putty on another pc on my home network it won’t work.
    Can this done via another ip address or is this not possible?
    Sorry for my bad English.

      1. Hello,
        My raspberry pi has now a IP address with something like 10.0.42 . For ssh to my laptop with shared connection running lubuntu has a IP address something like 192.168 As I want to access it on another computer on my network.
        How can I change the IP address of the raspberry pi on my laptop?
        Thanks for your reply

  13. Hello,
    I followed all your steps and was able to connect to internet three months ago.
    But now I could not.Dont know why!
    I could ping my laptop with pi using ssh and the other way also.I am using my android phone as wifi hotspot.I could connect to internet in my laptop using that.But not from pi. 😦
    Could You Please help me as soon as possible.I need to install softwares.Please help me.

    1. Make sure the IPV4 properties of the LAN Adapter are set as “Obtain IP Automatically”. Usually, these change and hence the fixed IP doesn’t work. Let me know if that helps/not. Thanks.

  14. i have a problem in step 8. when i give ipconfig in the command prompt, the next statement i get is that it is not a recognized command. what should i do for this?
    thanx in advance.

  15. Sir I tried to access cmdline.txt using hdmi capture device but I am not able to overwrite it.?what would be the problem

    1. If you already have logged into shell as a Pi user, you may simply precede your commands with sudo to have super user root privs. Since I understand that you’re trying to edit the cmdline.txt file, you may use this command:

      sudo nano /boot/cmdline.txt

  16. sir when i am writing leafpad in the putty terminal the leafpad opens but when i pinged
    it is showing as unknown host

  17. Hi,
    thanks for this tutorial. It’s really synoptic. But I have the same problem as mentioned at the beginning and I think, that nobody solved it yet. There is no drop down in sharing and although I followed all of these steps, I’m not able to ping any website. (I have win7).

    Thanks in advance.

  18. Hi,
    I hv succesfully obtained the ip address, however i didnt get response when i ping the google, I also noticed that when I go into wireless network connection properties -> sharing tab, there is no drop down. I’m using window 7 n raspberry pi b+. Do you know what is my prob, thank in advance !

  19. I have done everything up to step 9.My Raspi’s SD card has completely different files in it. Mine has the folders ‘os’ and ‘defaults’, and the files ‘bootcode.bin’, ‘BUILD-DATA’, ‘INSTRUCTIONS-README’, ‘recovery.cmdline’, ‘recovery.elf’, ‘recovery'(Disk Image), ‘recovery.rfs’, ‘RECOVERY-FILES-DO-NOT-EDIT’ and ‘riscos-boot.bin’. Here’s a pic: Email:

    1. Yes, you have those files because you are using NOOBS image file. This method doesn’t work with NOOBS image. I’m sorry for not having mentioned that in the article. You may need to reflash the SD Card with the Raspbian only image. Thanks.

  20. Hay,,
    I followed all your steps, I can access my rpi via putty. but I can’t get the shared internet working! Why?
    My rpi have ip static

    1. Have you made sure that that Obtain IP Automatically settings are still enabled after turning on the Internet sharing settings? What Windows version are you on?

  21. How do you open command line text file. For some reason when I insert the sd card to my laptop, it prompts me to format the sd card to use therefore am not able to edit the command line text file. Could you please suggest an alternative to this please?

    1. Do you have access to a Linux machine? Or a Linux live CD? You could use use that to edit the file since windows now shows your SD card as corrupt and asks you to format it. Can you otherwise try reflashing the OS onto the SD card and then editing the cmdline.txt file?

  22. seriously friends, if you don’t configure this thing than please look at it one more time, because this guy is awesome. what he says is how its done. i did it as per he says, thanks sayd.

  23. Able to ping but not
    I just started working with raspberry pi. I followed the entire above step. At the end I am able to ping IP which means I got internet access to my raspberry module. But not able to ping DNS –, getting error “unknown host”. And also not able to perform and updates, getting error “Failed to fetch __”
    I am not getting whether I got internet access to raspberry board or not. And if yes, then why not able to access DNS and updates.
    I searched I lot this problem. But not getting any proper answer. Please somebody help.

  24. Hi..
    I am using windows 8.1 and I try all method, but still not get success for get internet connection in my rasbperry pi..

    I also used method mention by STRINER, and other members but can’t get internet access in pi..
    help me for get internet access in pi with help of wifi in windows 8.1..

    I also try bridge connection, it not working..

  25. In point 5, you say “Obtain IP address automatically” has to be checked. For me, it worked the other way around.
    I already had “Obtain IP address automatically” checked for Ethernet connection. But when I enabled Internet sharing on my Wifi connection (sharing with Ethernet connection), the “Obtain IP address automatically” checkbox automatically got unchecked for my Ethernet connection. I noted down the static IP allocated to it (, allocated an IP to my pi accordingly ( and it worked! I can connect to Internet on Pi now.

  26. i am using raspberry pi 2 model b(2015-05-05-raspbian-wheezy.img) and window 7.i got the gui for raspberry pi with startlxde command..why ‘startx’,’lxsession’ command is not working.’sudo apt-get update’ command is also showing error.

  27. really a nice video. Thanks ANWAARULLAH I got my pi working..i followed so many other videos but this one is the best 🙂

  28. I also had the same problem of unable to share the net connection from Windows 8.1 to Raspberry Pi. After many trials I could manage to get the connection.

    Added the public dns servers into /etc/resolv.conf as below (sudo nano /etc/resolv.conf)


    After performing ICS related suggestions explained in the earlier threads, I could get the default PC IP

    Added a static IP to Raspberry Pi in /etc/network/interfaces (sudo nano /etc/network/interfaces) as below:

    auto eth0
    iface eth0 inet static

    Added the below change at the end of /boot/cmdline.txt (sudo nano /boot/cmdline.txt)


    Even with these changes I was not lucky enough to get the connectivity several times.

    Did one last try as below:

    The Raspberry Pi was connected and the Ethernet card was intact. Then once again pressed the OK button on the ICS (Sharing the internet connection) and then performed a disconnect and connect on the dial up. Now when I checked the ping it worked. Thank God.

    So it looks to be something to do with the sequence matters. Thought it might help someone.

    1. Thanks Ebith for sharing your process. If you don’t mind, can I edit my post and include your process (with full credits to you) as one of the alternative techniques that work?

  29. hai anwaarullah,
    i’m using win 7 with ip address router HUAWEI E5372, ip address ISP, and ip address raspi2 i’m also using subnetmask
    i have to follow all instruction from this post, but i can’t ping

    please help me because i have to finishing my exam. T_T (crying).

  30. Hey guys,
    I fixed the issue with my network connection on the raspberry pi. My issue was that I could ssh into the pi but when I pinged google, the dns would resolve (I could see the ip address of the destination) but all packets would be lost. I couldn’t even connect to

    I used STRINER’s method to access my pi, but, it wasn’t working, I then turned off my antivirus and windows firewall and it started working. I realized that most antivirus firewalls do not allow port scans and Internet Connection Sharing (ICS).

    So make sure that your PC’s antivirus is turned off when using raspberry pi.
    I hope this helps someone.
    Tested on windows 8.1, raspberry pi 2 model b, raspbian jessie.

    Striner’s method:

    after fiddling around and watching LOTS of other webpages, I have found a infinitely easier way to get internet working through headless mode (even without editing cmdline.txt)!
    Indeed, go to your wifi settings, check ‘share connection’. Connect RPi through ethernet, and when you check those ipv4 properties, you will see Windows has probably given it some address like Do not change this, as it will disable the DHCP settings for this connection!
    Now, if you open a terminal and type ‘ping’ you will see it automatically resolves to an IP address.
    You can also use this in Putty to connect! Just type into the test field and voila! It worked on first try and I could even immediately ping from the pi! “

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: