If you've ever encountered a CaptivePortalLogin message on a Xiaomi device -- a smartphone, a router, a TV -- you know how annoying it is. Instead of accessing the Internet, you're redirected to a strange page asking you to log in even though you're already connected to your home network. What's the point? Why does the system insist on login even though you've never set it up?
In fact, CaptivePortalLogin is not a bug, but a security mechanism that checks the authenticity of your network connection. It works when your device suspects you are in a public hotspot (such as a cafe or airport) that requires authorization through a portal. The problem is that sometimes this mechanism falsely works on home networks, especially if the router is not configured correctly or there are problems with DHCP.
- π What is CaptivePortalLogin and how does it work on Xiaomi devices?
- π± Why the bug appears on smartphones, TVs and routers brand
- βοΈ Step-by-step instructions for troubleshooting the problem for different devices
- π‘οΈ How to prevent the recurrence of a message
What is Captive PortalLogin and Why You Need It
CaptivePortalLogin is a technology that is used to force users to log into public networks, so imagine you connect to Wi-Fi at a hotel, open your browser, and instead of a normal page, you see a form to enter a room number or password, and that's the captive portal.
On Xiaomi devices (and others), this mechanism is built into the operating system, and when a smartphone or TV connects to the network, it sends a test request to a special server (usually a server). http://connectivitycheck.gstatic.com/generate_204 If the response is not as expected (e.g. instead of a code) 204 comes HTML-page with the authorization form), the system decides that you are on a public network and shows a notification CaptivePortalLogin.
In most cases, this is useful, but sometimes the mechanism fails:
- π False positives on home network if router blocks test requests
- π Infinite redirection if the captive portal is configured incorrectly
- π΅ No Internet until you βpass authorizationβ on a non-existent portal
The reasons for the appearance of CaptivePortalLogin on Xiaomi
Mistakes can occur for various reasons, but most often the fault is:
| Reason. | Xiaomi device | How it manifests |
|---|---|---|
| Incorrect DHCP settings on the router | Smartphones, TVs, laptops | Continuously redirect to the authorization page, even if the internet is working |
| Blocking test requests (generate_204) | All devices with MIUI/MI TV | Message "Continuing login required" at each connection |
| Failure to work DNS-server | Mi Router routers, devices with manual DNS | The Internet is working, but the captive portal is not lost. |
| Problems with MIUI/MI TV firmware | Smartphones, TVs | The error appears after the system update |
This is especially true for devices with MIUI 12-14, where network verification has become more aggressive, such as after upgrading to MIUI 13, many users complained about constant notifications about the captive portal, even if nothing changed on the network.
Another common situation is the Xiaomi Mi Router routers, which by default block some test queries. If you are using the Mi Router 4A, Mi Router AX6000 or another model with MiWiFi firmware, check the firewall settings.
π‘
If CaptivePortalLogin appears only on one Xiaomi device, and the rest of the gadgets work normally β the problem is most likely in the settings of the device itself, not the router.
How to remove CaptivePortalLogin on a Xiaomi smartphone
If an error occurs on a phone with MIUI, try the following steps:
- Reboot the device. Sometimes the failure is temporary, and a simple reboot helps.
- Forget Wi-Fi and connect again: Go to Settings β Wi-Fi Click on Your Network β Delete (or βForgetβ) Connect again by entering the password
Turn off the captive portal check:
- Activate Developer Mode (7 times click on the MIUI version in Settings β About Phone)
- Go to Settings β Additional β For Developers
- Find the option Captive portal detection (or "Detect the authorization portal") and turn it off.
- Reset network settings: Settings β Data transfer and SIM-map β Resetting network settings β οΈ Warning: This will delete all stored Wi-Fi networks and Bluetooth passwords.
- Disable IPv6 (if used): Some providers misconfigure IPv6, which causes failures. In the same network settings, disable IPv6.
- Reset network settings: Settings β System β Reset β Network settings reset
- Turn off Network Check: Some Mi Router firmware has an option that blocks test queries. Find it in Additional β Security and disable it.
- Update your router firmware: Go to the firmware update and install the latest version. On some models (for example, Mi Router 4C), bugs with the captive portal were fixed in the updates.
If you use a third-party firmware (like Padavan or OpenWRT), the problem may be its settings. Check the firewall and routing rules.
π‘
On routers, Xiaomi captive portal can be activated due to the function of "Parent Control" or "Brandwise Control".
Additional ways to solve the problem
If standard methods donβt help, try these options:
- π Change Wi-Fi: In router settings (192.168.31.1), change the channel from Auto to fixed (for example, 6 or 11 for 2.4 GHz.
- π‘οΈ Turn it off. VPN Proxy: If Xiaomi is enabled on your device VPN (Like Mi. VPN), It may conflict with network verification. Turn it off in Settings. β VPN.
- π‘ Try connecting via cable: If the error only occurs over Wi-Fi, check if it appears when connecting over Ethernet (for TVs or routers from Wi-Fi). LAN-port).
- π§ Use an alternative. DNS: Manually write it. DNS AdGuard (94.140.14.14) or Yandex (77.88.8).
On some devices, factory resets help, but only as a last resort. Make a backup before reset!
β οΈ Note: If you use Mi Account for sync, you may need to re-authorize after reset.Be sure to remember the password from your Xiaomi account, otherwise you risk losing access to the device.
How to Prevent Captive PortalLogin in the Future
To avoid recurring problems, follow these guidelines:
- π Regularly update the firmware on all Xiaomi devices (smartphones, TVs, routers).
- πΆ Don't use public. DNS (For example, from a provider, if they cause failures, it is better to prescribe 8.8.8.8 or 1.1.1.1.
- π οΈ Disable unnecessary router features such as βSmart Routingβ or βTraffic Optimization".
- π± On smartphones, disable automatic connection to open networks in Settings β Wi-Fi β Additionally.
On Xiaomi routers with MiWiFi R3G firmware and the newer captive portal, you can activate because of the Safe Access feature. Disable it in the router's web interface if you don't need it.
If you frequently connect to public networks (in cafes, airports), you can leave the captive portal check on, but for a home network it is better to turn it off, as described above.