0

I want to share my wlan from my laptop (win10) with my Raspberry Pi, that is connected with the laptop through a ethernet cable.

The Pi has a static IPv4 address. I am able to connect through SSH with it over the ethernet cable. For this I have to make a static IP at the laptop for the ethernet connection. Then I can connect over putty via SSH.

In my opinion I have to make a static IP at the laptop for the ethernet connection with the Pi. But then I am not anymore able to share the wlan.

I also followed this video but it wasn't that helpful because I have a static IP on my Pi that I want to keep.

https://www.youtube.com/watch?v=U64YMItC5jc

Can someone also explain the difference between the right click on wlan -> properties -> sharing -> enable "allow the network user to connect through this internet connection"

and:

click on wlan and on ethernet, then right click -> Bridge Connection

1

Here is what I found from testing the different options myself;

> 'Sharing' the connections means that the attached device will send packets to your computer using it's static IP. Then your laptop proceeds to do the same thing a NAT router would do: translate the Pi's static IP to whatever your laptop's IP is.

> 'Bridging' the connections means that your laptop will act as a network switch and therefore requires the Pi to either get an IP from your router's dhcp server, or be statically assigned one. Therefore your Pi can be seen by other devices on the network.

To summarise, 'Bridging' makes your Pi visible to other devices on your network and it has it's own IP. Whilst in 'Sharing' The Pi shares your laptop's IP and is therefore not visible to the rest of the network.

when connecting the devices with bridging you should not have to set a static IP for the laptop, only for the Pi.

  • Thank you for this! That gave me alot more understanding. But the problem is not solved i guess ;/. If i want to ssh via putty over the ethernet i need a static ip for the ethernet connection on my laptop otherwise i am not able to connect to the pi. – janbauer Mar 31 '16 at 18:30
0

Basically you can EITHER connect to the Pi using ssh etc OR share the laptop internet connection not BOTH. (Technically this is not strictly correct, but it is very complex.)

You can use the Pi (through ICS on the laptop) at times, then turn ICS off to to use the laptop to connect to the Pi at other times.

  • I found a Solution Last Weekend but afterwards my new installed win10 fucked up and I am not able to remember the right settings. My idear now is to delete the static ip on the pi and then make the bridge over the Ethernet cable with the Internet. Then I can maybe ssh over the router to the public if I find the IP address in the network – janbauer Apr 1 '16 at 4:59
  • You don't need static IP address. ssh pi@hostname.local default hostname rasbperrypi ) should let you connect (on a direct connection or local network) – Milliways Apr 1 '16 at 5:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.