Category Archives: Raspberry Pi

Connect Raspberry Pi to internet, using crossover ethernet cable

I didn’t have a wifi module for Raspberry Pi (B+ Model 2), but I wanted to connect it to the internet. So i connected my RPi with my Windows 7 laptop using a simple Ethernet cable, and let the Wifi internet of connection of my laptop flow through the Eth cable to Raspberry Pi.

[Raspberry Pi] —– Ethernet Cable —– [ Laptop ] —– Wifi—- [ INet ]

Go to Control Panel -> Network and Sharing Center
Click on the Wireless Internet Connection

RPi Internet1

Click on the “Properties”

RPi Internet2

In the Properties Window go to the “Sharing” tab, and check the “Allow other users to connect to the internet using this computer’s network” box. Then from the drop down box, select “Local Area Network”.

RPi Internet3

Done !!! Your Raspberry Pi is now connected to the internet. Simple.

Troubleshooting:

Check the IP Address of your raspberry pi (using command: /sbin/ifconfig) it shoud be on the same network as your Laptop are on the same network.
The inet addr of the eth0 must have the same first three sections as that of the Laptop. For example if the RPi addr is 192.168.137.XXX, the Internet Adapter Local Area Connection IPv4 addr (use ipconfig command to get your addr) of your Laptop, should also be 192.168.137.YYY

Check if RPi is be able to ping to Laptop and vice versa.

If the network addr of the two devices differ, try to reboot the RPi (keep RPi connected to the Laptop during reboot). Upon rebooting it should get a new address from your Laptop DNS.