CaptivePortalLogin on Xiaomi: causes and ways to solve the problem

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
πŸ“Š What Xiaomi device did you encounter with CaptivePortalLogin?
Smartphone (MIUI)
Television (MI TV)
Router (Mi Router)
Laptop/PC with MIUI+
Other

The reasons for the appearance of CaptivePortalLogin on Xiaomi

Mistakes can occur for various reasons, but most often the fault is:

Reason.Xiaomi deviceHow it manifests
Incorrect DHCP settings on the routerSmartphones, TVs, laptopsContinuously redirect to the authorization page, even if the internet is working
Blocking test requests (generate_204)All devices with MIUI/MI TVMessage "Continuing login required" at each connection
Failure to work DNS-serverMi Router routers, devices with manual DNSThe Internet is working, but the captive portal is not lost.
Problems with MIUI/MI TV firmwareSmartphones, TVsThe 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:

  1. Reboot the device. Sometimes the failure is temporary, and a simple reboot helps.
  2. 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.

Frequent questions about CaptivePortalLogin on Xiaomi

Why does CaptivePortalLogin only appear on my Xiaomi smartphone, and everything is fine on other devices?
The problem is most likely the device-specific settings. Check: Is Captive portal detection disabled in developer mode Does antivirus or VPN block test requests Relevant Is the MIUI version (update system) Also try to delete the Wi-Fi network and connect again.
Can I permanently disable captive portal check on Xiaomi?
Yes, but this is not recommended if you use public networks frequently. To disable: Activate Developer Mode (7 taps on MIUI version) Go to Settings β†’ Additional β†’ For developers Find Captive portal detection and disable On some versions of MIUI, this option may be called something else, such as Network certification.
After resetting the network settings on the Xiaomi TV, the error remained.
If the reset didn't help, the problem could be in: Incorrect router settings (check out) DHCP and DNS) TV firmware (update to the latest version) Hardware failure (try connecting to another network) Also try manually prescribing static IP-TV address in network settings.
The Xiaomi Mi Router AX1800 captive portal only appears at night. What's the matter?
It's probably at night that the provider changes the network settings or activates some restrictions. DNS-servers (write them manually) Are there any problems with IP-Address (try to fix static) IP Also contact the provider - he may have technical work at night.
Can a virus cause a Captive PortalLogin error?
Theoretically, yes, if a virus redirects traffic to a fake authorization portal, you can check this: Install an antivirus (like Dr.Web or Kaspersky) and scan the device Check the list of installed applications for suspicious ones Reset the network settings and see if the problem disappears If the error remains, it is likely not a virus, but a problem with the network or firmware.