4 ms·
One downside of using wifi if that devices like phones really don't like network connections that don't route to the internet. You sometimes have to fight them
by sam_bristow 6y ago
One downside of using wifi if that devices like phones really don't like network connections that don't route to the internet. You sometimes have to fight them to stop the phone "helpfully" falling back to 4G or popping up all sorts of warnings about degraded networking to the user.
[edit]: This is assuming you are connecting directly to the device of course. Connecting the ESP32 to your existing wifi is well supported and much more reliable.
- pfyra 6y agoI have tried fighting this a couple of times but lost every time. Do you know a solution to make my Android phone keep the connection to a wifi without internet connection?
- sekh60 6y agoI lack a solution but would like to commiserate. We had some config errors on one of our VLANs, where DNS want reachable. The phones helpfully would just say no internet access and then bounce to 4g without any other sorry of error. What I would give to be able to just SSH into all these consumer services and just grep through the logs.
- g_p 6y agoSee https://github.com/leoleozhu/android-captive-portal https://github.com/leoleozhu/android-captive-portal and https://success.tanaza.com/s/article/How-Automatic-Detection-of-Captive-Portal-works https://success.tanaza.com/s/article/How-Automatic-Detection... If you could return valid internal DNS entries for these domains, and serve up a 204 to the right requests, you should be able to stay online. You need to ensure you don't do it for every possible domain - I believe Chrome also tests random non-existent domains too, to ensure it gets back the expected error.
- pfyra 6y agoI have a "captive" or "promiscuous" dns server (it responds with its own IP for all requests) for my esp projects so this info is exactly what I need. Thanks a lot!
- meltedcapacitor 6y agoWhat about setting up some honeypot open-with-no-IP wifi hotspots near google HQ and near places where googlers are known to congregate (or in residential areas with high density of googlers working from home). Once it's their problem, they'll fix it pronto.
- Leherenn 6y agoIn my experience, I had no network until I answered "no internet connection, disconnect?" dialog that pops up in that case. Maybe you could also say "don't ask again". Then it was working fine. What is not working fine though, is that I cannot access the internet through the mobile network at the same time. But this seems to really depend on the phone: it works on iPhones and on my previous Android phone, but not on a Pixel 5. I would like to download updates for the esp32 firmware through the mobile network, but this prevents it.
- AgentME 6y agoChromecasts get initially configured by connecting your phone to a wifi network hosted by the device, so I wonder how Google makes that work.
- lostlogin 6y agoAny idea how this works? Are they trying to connect to a particular address?
- g_p 6y agoYes, phones request a particular (plain http) URL from Google or Apple, which returns a 204 response. If they don't get a response, the network is assumed to have a connectivity issue. If they get redirected due to captive portal, they detect that and can prompt the user to log in. https://github.com/leoleozhu/android-captive-portal https://github.com/leoleozhu/android-captive-portal
- numpad0 6y agoSometimes as straightforward as pinging a server, sometimes elaborate as trying lists of random domains that some must respond and some must not resolve.