When I connect my Android device to wifi that needs login via web page Device has notification that says "Sign into Wi-Fi network".

Clicking on this notification automatically opens default browser (in my case Chrome) and redirects to www.google.com.

However increasingly more login pages do not meet Google's increasingly more stringent security requirements eg no https or certificate not matching domain etc and I can't login to page.

Instead I have to manually redirect browser to another page for example www.cnn.com to get redirected to wifi access point login page.

Is this a browser default that I can change? Is it possible to change default redirect page from www.google.com to say for example www.cnn.com?

up vote 1 down vote accepted

As I answered here, if you're rooted,

Just execute su then settings put global captive_portal_server SERVER_YOU_WANT_TO_USE in a terminal emulator app or ADB shell.

However, not all servers respond properly to HTTP 204 requests, so CNN might not be feasible for example. A possible list of usable ones can be seen in this answer.

  • I am getting put: not found was using captive.apple.com which does generate success with http://captive.apple.com/generate_204 – curtisp Sep 10 '16 at 2:22
  • @curtisp Mistyped? Or it should go just fine. What's your Android version? – Andy Yan Sep 10 '16 at 3:21
  • Thanks got it. Sort of mistyped. Was putting su inline with rest of command. – curtisp Sep 10 '16 at 4:02
  • "Is this a browser default"? or does it come from the wifi sign-in? – Mark W Dec 7 '16 at 17:22
  • @MarkW Unrelated to what browser you use - Captive Portal Detection is a built-in feature. – Andy Yan Dec 8 '16 at 0:23

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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