Raspberry – Direct network connection and internet sharing

Just installed Raspbian on my Pi but I have no router, no screen and no keyboard : Just a laptop connected to a WiFi network and one network cable.

We can use ICS (Internet Connection Sharing) to connect our Pi to our Laptop. We’ll be able to use SSH and the raspberry Pi will have an internet access.


1 – Edit the sharing properties of my Wireless interface (this has to be the interface that is used to access to internet). Enable sharing :
sharing-connection

2 – Edit the LAN interface (interface used to connect our Pi), and make sure that all the IP configuration is in automatic :
ip-auto

3 – Plug the Pi to the laptop with a cross or straight cable.

4 – On the LAN interface, you laptop IP is 192.168.137.1. The Pi address is given by the DHCP server (managed by Windows). So far the easiest way is just to scan the range 192.168.137.1 – 192.168.137.255 to find you Raspberry :
scan-ip

5 – Use this IP to connect to your Pi. If you’re using Raspbian, the default login is “pi” and password is “raspberry”. Once connected, you have internet access :
ping-OK

All done !

Leave a Reply

Your email address will not be published. Required fields are marked *