English
简体中文繁體中文EnglishРусскийفارسی

HomeColumnNetwork

When the login page will not open

Public Wi-Fi asks you to log in on a web page first, but with FlClash on the login page never appears. Why the system proxy, TUN and fake-ip get in the way, and three fixes: pause then resume, excluded SSIDs, and direct rules.

Checked on

A railway platform: on a public network, the first thing is to log in
A railway platform: on a public network, the first thing is to log in Simon Legner (User:simon04), CC BY-SA 4.0

At hotels, airports, on trains and on campus, joining the Wi-Fi brings up a web page asking for a room number, phone number or student ID. This is called a captive portal. With FlClash running, this step often gets stuck: the page will not open or keeps spinning, and the system keeps saying you need to sign in.

The login page itself is just an ordinary web page; the hard part is letting the system know it should show it. All three major systems decide by visiting a fixed address: if the expected reply comes back, the network is open; if something else comes back, a captive network is in the way and the login page appears.

Why it gets stuck

A captive network works by hijacking whatever address you visit before you log in and sending you to the login page. With FlClash on:

  • System proxy: the browser hands the request to FlClash, which hands it to a node. But you are not logged in yet, so nothing gets out, the node is unreachable, and the login page never appears.
  • TUN with fake-ip: FlClash takes over DNS and answers with placeholder addresses, so the network's DNS hijacking stops working.
  • System checks: Windows, Android and macOS all visit fixed check addresses to decide whether to show a login page; when those requests go through the proxy, the system judges wrong.
A laptop in a coffee shop: on a public network, logging in comes before anything else
A laptop in a coffee shop: on a public network, logging in comes before anything else Shixart1985, CC BY 2.0

Fix one: pause, log in, resume

The simplest and most reliable:

  1. Pause FlClashPress stop on desktop, or the tile on Android
  2. Join the Wi-Fi and log in on the pageThe system usually opens it; if not, open any http site
  3. Confirm you are onlineTry a local site
  4. Turn FlClash back onBack to your usual settings
Log in first, then the proxy

Fix two: excluded SSIDs

For places you visit often (school, office, a regular hotel), add the Wi-Fi name to FlClash's Exclude SSIDs so it switches automatically when you connect. See Switching by Wi-Fi.

A station building: every station and every hotel has its own login page
A station building: every station and every hotel has its own login page Peter Mackenzie, CC BY-SA 2.0

Fix three: a direct rule for the login address

If you know the login page's domain or IP, add a direct rule at the top:

Example rules
- DOMAIN-SUFFIX,portal.example-hotel.com,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT,no-resolve

Replace the example domain with the real login address. Many login pages sit on private addresses, and FlClash's "LAN direct" rule preset helps there too.

The addresses each system checks

SystemCheck address
Windowswww.msftconnecttest.com
Androidconnectivitycheck.gstatic.com and others
macOS, iOScaptive.apple.com

With FlClash on, these requests are handed to the proxy. If the proxy cannot get out, the check fails; or the check "succeeds" through the proxy, the system decides no login is needed, and the login page never appears.

fake-ip and the filter list

TUN mode often uses fake-ip: when FlClash gets a DNS query it first answers with a placeholder address and deals with the domain when the connection is made. This is efficient for routing but breaks services that need real addresses, the system's connectivity check among them. So profiles have a fake-ip filter list, and domains on it get real addresses.

The 0.9.5 changelog says the default fake-ip filter now names the check hosts Windows really uses. That fixes many "No Internet with FlClash on" cases, but helps little with login pages: before you log in, the network genuinely is not open.

SSIDs and rules together

Use Exclude SSIDs for places you visit often and "pause, then resume" for occasional ones. If you visit a place often and its login address is fixed, add a direct rule as well; with all three combined you will rarely get stuck again.

Logged in, but FlClash still cannot connect?

Some public networks allow only ports 80 and 443, or block proxy protocols outright. Try a node on port 443 that looks like HTTPS.

The campus network needs its own login client (such as Ruijie); can it coexist with FlClash?

Login clients usually require a direct connection. Let the client log in first, then start FlClash; if it detects proxies, pause FlClash while using it.

Why did my phone not show a login page?

With FlClash's VPN on, Android's check goes through the proxy too. Pause FlClash and the system shows it normally.

I have to log in again after a while?

Many public networks limit session length and intercept again when it runs out. Log in again the same way.

Is public Wi-Fi safe; should the proxy stay on?

Once logged in, turning FlClash back on sends web and app traffic over the encrypted proxy connection, one more layer of protection than using the public network directly.

Next

Related settings

On this page: captive portal not opening, hotel Wi-Fi login proxy, campus network login FlClash