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

HomeSettings manualSystem proxy and ports

System proxy and ports

How FlClash's system proxy works: the allowed port range, port conflicts, bypass domains working only with the system proxy on, Windows host names without a dot, PAC scripts, and which programs ignore the system proxy.

What the mixed port is

FlClash opens a port on your machine that accepts both HTTP and SOCKS5 requests: the "mixed port", commonly 7890 by default. You can also set separate SOCKS, Redir and TProxy ports; ordinary users only need the mixed port.

Ports must be between 1024 and 49151 and must not repeat; that is FlClash's own validation rule. If another proxy app already holds 7890, pick an unused one such as 7893.

The plug board of an old telephone switchboard: the system proxy patches apps' requests into FlClash's port
The plug board of an old telephone switchboard: the system proxy patches apps' requests into FlClash's port Kecko from Switzerland (Rheintal SG, the border valley betwe, CC BY 2.0

Once the system proxy is on

With System proxy on, FlClash sets the operating system's proxy to 127.0.0.1 plus the mixed port. Whether a program honours that depends on the program:

ProgramHonours the system proxy
Chrome, Edge, SafariYes
Most chat and office appsYes
Command line (curl, git, npm)No; set environment variables or use TUN
Games, some store appsMostly no

Also, while authentication is on, the system proxy is not applied, as FlClash's note says.

Bypass domains

Addresses in Bypass domains skip the proxy and connect directly. They apply only while the system proxy is on, not with TUN. Common entries:

  • This machine: localhost, 127.*, *.local
  • LAN: 10.*, 172.16.* to 172.31.*, 192.168.*
  • Windows only: tick "host names without a dot" so short names such as nas or intranet go direct.

The bypass list generator on this site produces all three formats at once.

PAC script

Instead of a domain list you can write a PAC script, JavaScript that decides per address whether to use the proxy. Most people do not need it; FlClash's rules already route finely enough.

Can system proxy and TUN be on together?

Yes, but there is no need. With TUN on, all traffic already comes in.

No internet after closing FlClash?

If FlClash quit abnormally it may not have restored the system proxy. Open it and close it again, or turn the proxy off in the system's network settings.

NextPer-app proxy (access control)

Related settings

On this page: FlClash system proxy, FlClash mixed port, FlClash bypass domains