gatorback
Posts: 23
Joined: Wed Jan 16, 2013 2:53 pm

Sharing Laptop's Wifi (internet) to rPi (ethernet)

Thu Mar 03, 2016 4:22 pm

BACKGROUND \ CONTEXT
======================
I am frequently in public wifi environments (hotels, coffee shops, etc.): SSH network access to the Pi via Public wifi would be impractical because the SSID has to be known before and added to the configuration file before arriving. Windows 10 and windows 7 laptops.

OBJECTIVES
===========
I believe that there are examples of how to bridge the Ethernet port to wifi (and look forward to good examples from the community). The goal is to connect the DHCP configured rPi to the Ethernet port and receive a LAN IP etc. from the public wifi. The ability to access the internet and the rPi at the same time is required. Hopefully, the gateway does not isolate traffic between the laptop (wifi adapter) and the pi (Ethernet adapter).

QUESTIONS
==========
1) Has anyone out there successfully implemented sharing as described?
2) If you have had success, are there any lessons learned \ pitfalls to avoid?
3) Is there a FAQ for sharing wifi to Ethernet? Ideally specific to this use-case
4) Is there a better solution?

Thank you: I look forward to links to good web resources, suggestions and clarification questions.


URLS (will be updated to reflect best articles)
===================================
Connecting to Pi from Laptop's Ethernet Port
In A Nut Shell…Direct Network Connection
Last edited by gatorback on Sun Mar 27, 2016 3:58 am, edited 1 time in total.

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Sharing Laptop's Wifi (internet) to rPi (ethernet)

Thu Mar 03, 2016 6:03 pm

gatorback wrote:I believe that there are examples of how to bridge the Ethernet port to wifi (and look forward to good examples from the community). The goal is to connect the DHCP configured rPi to the Ethernet port and receive a LAN IP etc. from the public wifi. The ability to access the internet and the rPi at the same time is required.
You should be able to connect to your other device directly if it is either connected directly via ethernet or has a second wifi transceiver. Going through the public host router should not be possible, see below:
Hopefully, the gateway does not isolate traffic between the laptop (wifi adapter) and the pi (Ethernet adapter).
I was at a library and I connected two devices wifi to their network and then set up a server and watched a video clip from the one device to the other, worked really good actually. This should not be possible because their network should isolate such things to make hacking harder. When I attempted to reach the other device while at a Starbucks, it did not allow it. So Starbucks was configured more robustly although you'd have it easier at the library.

I was on the public wifi network at a hospital and I ran fing on it on my phone. Unbelievably, It found literally hundreds of machines, I think it was over 300, which given the context, most were not mobile phones and the like, were pretty obviously computers used by the staff. I think this has been corrected recently but the fact that it existed at all is pretty scary.

gatorback
Posts: 23
Joined: Wed Jan 16, 2013 2:53 pm

Re: Sharing Laptop's Wifi (internet) to rPi (ethernet)

Sun Mar 27, 2016 4:01 am

I was hoping to find a configuration procedure where I could connect the Win10 laptop's wireless adapter to Starbucks wifi and bridge the wired LAN adapter to the wireless adapter so that when the rPi is plugged in, the Starbucks wifi would assign the rPi a LAN IP address.

User avatar
Cancelor
Posts: 776
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: Sharing Laptop's Wifi (internet) to rPi (ethernet)

Sun Mar 27, 2016 9:02 am

I dunno if this is any help but I think this is the sort of thing you are after. >>> http://windows.microsoft.com/en-gb/wind ... =windows-7
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Sharing Laptop's Wifi (internet) to rPi (ethernet)

Sun Mar 27, 2016 9:47 am

gatorback wrote:I was hoping to find a configuration procedure where I could connect the Win10 laptop's wireless adapter to Starbucks wifi and bridge the wired LAN adapter to the wireless adapter so that when the rPi is plugged in, the Starbucks wifi would assign the rPi a LAN IP address.
The IP is assigned by Windows Internet Connection Sharing :D
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Return to “Networking and servers”