3 ms·
Any idea how this works? Are they trying to connect to a particular address?
by lostlogin 6y ago
Any 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.