Clash System Proxy Not Working? Troubleshoot Browsers, Terminals, and UWP Apps

Troubleshoot a Clash system proxy that isn't working by checking browser extension conflicts, terminal proxy variables, and UWP loopback restrictions. Use TUN mode as a fallback.

Check the listening port first, then see whether requests reach the core

The system proxy toggle only changes the proxy settings available to apps; it doesn't force every process to send traffic through mihomo. Troubleshoot these two stages separately: whether the app sends its request to the core, and which rule and outbound the core selects. First, use a tool that lets you specify a proxy explicitly to verify the first stage, then return to the app that's failing.

For this example, we'll use Clash Verge Rev on Windows 11. First, make sure the client has started the core, then check the actual mixed port (mixed-port). The examples below use 127.0.0.1:7897; replace it in both commands if the client shows a different port. The mixed port accepts both HTTP and SOCKS requests. Here, we'll use the HTTP proxy protocol, so the proxy address is http://127.0.0.1:7897 even when testing an HTTPS URL.

Test-NetConnection 127.0.0.1 -Port 7897
curl.exe -q -v --connect-timeout 5 --max-time 15 --noproxy no-proxy.invalid --proxy http://127.0.0.1:7897 https://example.com/
  • If TcpTestSucceeded is False, first check that the core is running and that the port is correct. A value of True only means a TCP connection to that port succeeded; it doesn't prove that Clash is listening there or that the proxy has a working outbound.
  • In the verbose output, look for curl connecting to 127.0.0.1:7897 and sending CONNECT example.com:443, along with a corresponding entry in the client. This confirms that the local proxy received the request. If it later times out, check the rule, selected outbound, and error in the client logs instead of repeatedly toggling the system proxy.
  • If the request matches DIRECT, it may have reached the core and simply been routed directly by the rules. A successful response from the test site or an unchanged exit IP doesn't, by itself, prove that the system proxy is broken. To verify proxy-node egress, test a destination that should use a proxy under the current rules and check the actual exit IP.

The command puts -q first to prevent curl from reading its default configuration file. --noproxy no-proxy.invalid overrides any existing bypass list with a domain that won't match the test site. The 5-second limit applies to establishing a connection; the 15-second limit applies to the entire request. These are timeouts, not speed-test results. When reproducing the issue in the app, leave TUN off so two traffic-capture methods aren't enabled at once and complicate the results.

Browser bypassing the proxy? Check Windows settings, extensions, and policies

  1. Check the address Windows is actually using. In Windows 11, open Settings → Network & internet → Proxy. If the client uses a manual system proxy, check the Use a proxy server setting, address, and port under Manual proxy setup → Set up. If the client says the proxy is on but Windows still shows an old port, check whether another client, script, or management policy changed the proxy settings.
  2. Isolate extensions in each browser. Open chrome://extensions/ in Chrome or edge://extensions/ in Edge. Temporarily disable extensions that manage the proxy or switch proxy profiles, then open a new tab and revisit the URL that failed. Incognito mode isn't a reliable way to isolate extensions: they may already be allowed to run there. If disabling an extension fixes the issue, re-enable them one at a time to find the conflict.
  3. Check browser-specific settings and managed policies. In Firefox, open Settings → General, select Settings under Network Settings, and check whether Use system proxy settings is selected rather than manual proxy configuration, an automatic proxy configuration URL, or No proxy. For managed Chrome or Edge, check the active policies at chrome://policy/ or edge://policy/, such as ProxySettings. Ask your administrator to review settings managed by your organization.

If only one domain bypasses the proxy, check the Windows proxy bypass list, Firefox's No proxy for list, or the active auto-config script. Bypass lists determine whether a request goes direct before it reaches Clash; a Clash DIRECT rule selects a direct route after the request reaches the core. Check the client's connections or logs for the domain and retest time to tell the difference more reliably than by checking whether the page loads.

Browser works, but terminal times out? Check the proxy variables the process sees

A terminal doesn't automatically route network traffic for the programs it runs. curl, Git, and package managers each decide where to read proxy settings; even two tools run in the same PowerShell window may behave differently. First, inspect the environment variables available to the current process, then use curl for a comparison that only affects this window.

Get-ChildItem Env: | Where-Object { $_.Name -match '(^|_)proxy$' }
$env:http_proxy = 'http://127.0.0.1:7897'
$env:https_proxy = 'http://127.0.0.1:7897'
curl.exe -q -v --connect-timeout 5 --max-time 15 https://example.com/

The third test omits --proxy to check whether curl picks up a proxy from the environment. https_proxy refers to the protocol in the destination URL, not the protocol used by the local proxy listener. If an explicitly specified proxy works but this test doesn't use the local port, first check whether NO_PROXY matches the destination, including whether it's set to *. In case-sensitive environments such as Bash, curl only recognizes lowercase http_proxy for HTTP proxies. When checking old settings, look for variables that differ only in capitalization, too.

Git fails on its own? Check its configuration separately

git config --show-origin --get-regexp '^http\..*proxy$'

Run this from the affected repository directory. The output lists matching settings and their sources, helping you find a repository-level, global, or URL-specific proxy setting that's out of date. No output only means Git didn't find those settings; it doesn't prove the process inherited no proxy variables. If the task runs from an IDE, scheduled task, or container, check the actual runtime environment. Setting variables in a separate PowerShell window won't change an already-running task. Close the test window after troubleshooting to discard changes made in that session. Remove any credentials that may be included in proxy addresses before sharing the output.

Only a UWP app fails? Check loopback restrictions and proxy support

Consider AppContainer loopback isolation only if the browser and explicit proxy test work, but a UWP app still can't access the same service. First confirm that the app actually tries to use the local proxy: a loopback exemption only changes whether it can connect to a local loopback address. It won't make an app that ignores system proxy settings start using them. Also, don't assume an app is UWP just because it came from the Microsoft Store.

Use these PowerShell commands to check the current user's package family names and existing loopback exemptions. Note the target app's PackageFamilyName; don't substitute its display name or version-specific PackageFullName.

Get-AppxPackage | Select-Object Name, PackageFamilyName
CheckNetIsolation.exe LoopbackExempt -s

On a device you manage yourself, if you've confirmed that the target app needs to connect to 127.0.0.1, you can run a temporary comparison for that package in an elevated PowerShell window. Verify the package family name first and make sure it doesn't already have an exemption. Don't change exemptions for other apps in bulk.

$pfn = Read-Host 'Enter the verified PackageFamilyName'
CheckNetIsolation.exe LoopbackExempt -a "-n=$pfn"

Fully quit and reopen the app, repeat the same action that failed, then check whether a new connection appears in the client. If the test doesn't help, or you only added the exemption to isolate the issue, remove it with the command below. Don't delete entries that were already on the device. If the device is managed by an organization, ask an administrator before making changes.

CheckNetIsolation.exe LoopbackExempt -d "-n=$pfn"

App ignores proxy settings? Test with TUN on its own

If the port and outbound are working but the app has no proxy entry point—or its failing traffic doesn't go through an HTTP proxy—consider mihomo's TUN mode. TUN uses a virtual network adapter and system routes to capture traffic without relying on apps to read system proxy settings. Traffic entering TUN still follows the current rules, so it may use a proxy or match DIRECT. TUN won't fix a broken node or guarantee that all network traffic is captured.

  1. Note the current system proxy and TUN toggle states. To isolate the traffic-capture method, turn off the system proxy first, then enable TUN in the client on its own. If the Windows client asks to install a service or requires administrator privileges, follow the prompts for your version. Then make sure the toggle stays on and check the core startup logs for errors.
  2. Repeat the same action in the original app, then look for a new connection by domain or destination address, port, and time. If a connection appears but the request still fails, check the matched rule and outbound first. If the destination appears only as an IP address or domain resolution fails, investigate DNS separately. Don't change routes, DNS, and proxy groups at the same time.
  3. If enabling TUN breaks only local network services, your company VPN, or virtual machine networking, turn TUN off first and check whether things recover. If they do, check the route coverage and for overlapping subnets. When testing is done, restore the original toggle states, then test the browser and original app once each.
Download Clash