2

Every time I try to join an unencrypted wifi network that is protected by a web login (e.g. in a hotel), I get a popup message saying "Android System: Sign in to a Wi-Fi network ", I click on this message, and the result is:

CaptivePortalLogin has stopped
Open app again

I have tried also using Firefox or Chrome to find the portal by accessing a random HTTP page or the exact URL that my laptop is directed to to log in. Firefox returns "Server not found"; Chrome says "You are offline", DNS_PROBE_FINISHED_NO_INTERNET. My phone is set to not use mobile networks for data.

Is there any way to fix this or is there a workaround?

System information:

  • Android 8.1.0 (security patch level 1 June 2018)
  • Nokia 6.1, model TA-1050
  • Kernel 4.4.78-perf+ (1/6/2018)

EDIT: I've tried a few apps as a workaround, such as Wifi Web Auth in case CaptivePortalLogin is the problem. This app errors with "Web page not available", ERR_INTERNET_DISCONNECTED, which seems like an odd complaint for an app designed to establish a connection. Wifi Quick Login fails as well.

  • I'm not sure how to solve the issue but it sounds like CaptivePortalLogin may be corrupt. – Zackary Aug 13 '18 at 3:49
  • 1
    Have you tried clearing the data of the CaptivePortalLogin app? To help you out the exact reason for crash, you might need to get the crash report from the Logcat (as described here) and add it to your question. – ManSamVampire Apr 9 at 3:35
0
  1. Turn off mobile data
  2. Connect to WiFi
  3. Go to this page: http://google.com/generate_204
| improve this answer | |
  • That is the page CaptivePortalLogin calls upon, and it will show nothing (as the URL suggests, it just returns a 204 HTTP response). So why is it important to call specifically that page – what makes it better than the one Dennis suggested? To get to the captive portal, any URL will do. Further, how does this keep CaptivePortalLogin from crashing? Always having to turn off (and later on) mobile data manually is a work-around at best. – Izzy Jul 10 '19 at 6:24
  • I can confirm that this works (or rather it's <gstatic.com/generate_204> that CaptivePortalLogin calls). @Izzy simply putting any URL does not work because the browser gives a no internet access error. Somehow, magically any.domain/generate_204 just works. Also, I've seen this behaviour only in stock Android devices. (For example, in MIUI, putting any URL works - I don't know why) – ManSamVampire Apr 9 at 3:27
-2

Enter Chrome and write http://192.168.0.1 or http://192.168.0.0. The authentication page should appear.

| improve this answer | |
  • 1
    How does that keep the CaptivePortalLogin from crashing? – Izzy Jul 10 '19 at 6:19
  • 2
    This should not always work. In most modern Captive Portals, the login URL is not the same as the local network gateway's address. This URL might just open the configuration page of the local router/gateway. – ManSamVampire Apr 9 at 3:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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