My Pi3 running Stretch Lite joins my iPhone personal hotspot or other WiFi network. When I use the app with my friends on-the-go, they must join my iPhone personal hotspot, which devours my phone data and battery.
Thanks to SurferTim I set up hostapd, dhcpcd, dnsmasq etc on Stretch Lite but never worked out the networking details I want, so I've been running the Pi3 in client mode with my iPhone personal hotspot and just charging it more.
I need a way to have the Pi create a WiFi LAN for us to join, but have web requests go via our individual cellular network interfaces. I am a web developer, so I don't have great networking knowledge and I sense that I have a blind spot here with knowing the name of the problem I am trying to solve. Here's the behavior I want:
1. if ethernet: do traditional hostapd access point things to bridge eth0 to wlan0
2. if wifi network: join that and just be on that network and wait for other hosts on the LAN
3. if no ethernet, no wifi: do hostapd and the networking magic to let us use our individual cellular interfaces
I've seen some people posting about something that sounds like the same thing, so I think it may have to do with gateways and DNS.
https://raspberrypi.stackexchange.com/q ... smartphone
https://apple.stackexchange.com/questio ... 060#207060
Is it possible to make web requests go via cellular, while still allowing LAN access via the avahi hostname? Please help a networking noob.