question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Captive portal detection may not be working

See original GitHub issue

Edward reported having problems logging into an airplane’s captive portal on Slack: https://bravesoftware.slack.com/archives/C2FQMN4AD/p1582408566001200

Chrome and Firefox both have code to detect these portals and are using these test endpoints:

  • http://clients3.google.com/generate_204
  • http://detectportal.firefox.com/canonical.html

Testing is going to be challenging, but I found a potentially-useful node app on the Firefox meta-bug and there is a BadSSL test page for Chrome which triggers the UI in Brave too.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
antonok-edmcommented, Oct 13, 2022

If anyone urgently needs to connect to the internet in the meantime, and is willing to make the tradeoff of using Google’s generate_204 endpoint, this should suffice as a workaround:

  1. Make sure Brave is not currently running
  2. Find your browser’s profile directory, e.g. ~/.config/BraveSoftware/Brave-Browser/ on Linux
  3. Find your profile’s Preferences file within the profile directory, e.g. ./Default/Preferences
  4. Modify it such that the alternate_error_pages.enabled key is present and set to true, e.g.:
{"alternate_error_pages":{"backup":false,"enabled":true},...
  1. Start Brave and connect to the captive portal
  2. (optional) Close Brave and modify the file again to remove the key-value pair added in step 3
1reaction
wknapikcommented, Jul 22, 2022

I’m using a network now where Firefox and Chromium on Linux have no issue detecting the captive portal and show me an option to go through it, but Brave doesn’t appear to be aware of it at all and attempts to visit any website simply fail.

For people who travel a lot, that seems like a must-have feature.

cc @rebron

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Blocked by Captive Portal? See How to Fix the Issue
When the captive portal sign in page doesn't display, you are not able to access the Internet. See how to fix the blocked...
Read more >
Troubleshooting Captive Portal | pfSense Documentation
Apple devices are unable to load the portal page or login​​ In some cases, Apple devices will not automatically prompt for a Captive...
Read more >
Resolve captive portal issue on ChromeOS - Google Support
To resolve the captive portal issue with ChromeOS 62, try allowlisting "alt*.gstatic.com". If your firewall doesn't support wildcards, allowlist ...
Read more >
Captive portal doesn't pop up - Hotspot System Help Center
There can be cases when your hotspot is working (users are getting the right IP address), but for some users the splash page...
Read more >
Troubleshooting Captive Portal Redirect Page Issues
Verify Captive Portal is enabled. Go to Device > User Identification > Captive Portal Settings. ... Verify that User ID is enabled on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found