First, check whether requests reach Clash
Turning on the system proxy only writes a local proxy address to the operating system’s proxy settings. Applications still need to read that setting and send requests to the correct port. Rules and proxy groups come into play only after a request reaches Clash. Identify where the request is getting stuck before changing settings.
- Check the listening port. In the client settings, look for “Mixed Port” or “HTTP Proxy Port.” The examples below use
127.0.0.1:7890. If your actual port is7897, replace it with7897in the commands and system settings that follow. Don’t mistake a SOCKS-only port or the control port used to manage the core for an HTTP proxy port. - Check the system settings. In Windows 11, go to “Settings → Network & internet → Proxy” and check the address and port under “Manual proxy setup.” On macOS, go to “System Settings → Network → [current network service] → Details → Proxies” and check the actual values for web proxy and secure web proxy. Check whether an old automatic configuration script is still active. On a work-managed device, confirm the applicable policy first; don’t overwrite existing settings.
- Send an explicit proxy request. Run the command below to access a test domain, then compare it with the domain you can’t reach. In Windows PowerShell, use
curl.exeinstead ofcurlto avoid invoking the alias with the same name.
curl -q -v --connect-timeout 5 --max-time 15 --noproxy "" --proxy http://127.0.0.1:7890 https://example.com/
Put -q first to skip curl’s default configuration file. --noproxy "" disables domain bypasses in curl. If an older version of Windows PowerShell doesn’t pass the empty argument to curl.exe, run the command in a new Command Prompt window. When testing an HTTPS site, keep http:// in the proxy address: it describes the connection from curl to your local proxy. The TLS session to the destination site is established through the tunnel.
- Connection to the local port is refused immediately: Check whether the core is running and whether the port is correct. If the startup log says the port is already in use, close the old proxy process using it, or switch ports and update the system settings to match.
CONNECTreturns200 Connection established: The local proxy accepted the tunnel request. If a TLS error or timeout occurs afterward, check the Clash logs for the same time. Don’t mistake these errors for the system proxy being off.- The explicit request works, but the app still fails: Don’t rush to reinstall or change subscriptions. Check the app’s own proxy settings using the two guides below.
Troubleshoot browser proxy settings, extensions, and bypass lists
First, make the browser use system settings
Chrome and Edge use the system proxy in common desktop setups, but proxy-switching extensions, browser launch flags, or management policies can change the active settings. Open chrome://extensions/ in Chrome or edge://extensions/ in Edge, then temporarily disable any proxy-switching extensions you installed. Fully quit and relaunch the browser, then test the same URL. Don’t rely on an incognito window as your only comparison: some extensions are allowed to run in incognito mode.
In Firefox, check “Settings → General → Network Settings → Settings.” To test the system proxy, select “Use system proxy settings.” If “Manual proxy configuration” or “Automatic proxy configuration URL” is selected, note the current value before switching. On a work-managed device, record any notice that settings are managed by your organization and ask your administrator to check them.
Check whether the problem affects only a few addresses
Open one public domain and one failing domain, and watch Clash’s connection log for both requests. If the public request appears but an internal domain, short hostname, or specific site doesn’t, check the system proxy’s exception list, Firefox’s “No proxy for” list, and whether an automatic configuration script returns DIRECT for that destination. A bypass in the system or terminal may mean the request never reached Clash. A DIRECT result in the connection log means it reached the core but was routed directly.
Don’t use localhost in a browser to test whether the system proxy is working. Browsers often handle loopback addresses specially, and internal addresses may bypass the proxy because of existing exceptions. Use a regular public domain and check the log while the connection is still active.
Troubleshoot terminal proxy settings, environment variables, and sessions
Being able to browse the web doesn’t mean your terminal reads the system proxy settings. curl, Git over HTTPS, and package managers may use proxy environment variables or their own configuration. Check the variables in the terminal where the problem occurs, then test with a single command. Don’t start by changing global settings.
Test from the current session
Run the commands below in Bash or Zsh. First check for stale proxy addresses, then see whether curl connects to the local port after you set the variables. Variable values may contain credentials, so remove them before sharing.
env | grep -iE '^(http_proxy|https_proxy|all_proxy|no_proxy)='
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
curl -q -v --connect-timeout 5 --max-time 15 https://example.com/
curl has a common quirk with HTTP proxy variables: it uses lowercase http_proxy, so don’t assume it will read HTTP_PROXY alone. If an explicit proxy works but curl bypasses it when using variables, check whether no_proxy or NO_PROXY includes the destination domain or the wildcard *. Also check for an ALL_PROXY value pointing to an old port. Don’t permanently remove local network exceptions just to test a public connection.
In PowerShell, use Get-ChildItem Env:*proxy* to check variables in the current process. To route HTTPS requests through the proxy for the current session, use $env:https_proxy = 'http://127.0.0.1:7890'. This change is inherited by child processes launched from this session, but won’t update other terminals that were already open. When the test is done, restore the previous value or close the new window used for testing.
Check curl and the actual tool separately
If curl uses the proxy but Git still fails, first run git remote -v to see whether the remote URL uses HTTPS or SSH. For HTTPS, use git config --show-origin --get-regexp '^http\..*proxy$' to check proxy settings and where they come from, especially repository-local settings and URL-specific entries. SSH remotes won’t use an HTTP proxy just because https_proxy is set. If the issue occurs in a container, remote terminal, or virtual machine, first check what 127.0.0.1 refers to in that environment; it may not be the desktop running Clash.
If the connection reached Clash, check rules and proxy groups
Find the destination domain and request time in the client’s “Connections” or “Logs” page, then check the matched rule, proxy group, and outbound route. In Rule mode, a DIRECT match is normal routing behavior, not a sign that the proxy toggle failed. If the result is unexpected, confirm which configuration is active, then check whether an earlier rule is matching before the rule for that destination. Don’t treat Global mode as a permanent fix. It won’t automatically route apps that never reached the core.
If the connection log shows the expected proxy group but an upstream connection times out, check which node is selected in the group and test again with the same destination. If the log explicitly reports a DNS resolution failure, find out where resolution is happening. For example, with curl’s socks5:// scheme, curl resolves the destination domain; with socks5h://, the domain is resolved through the SOCKS proxy. Different results can help pinpoint the resolution step, but aren’t enough on their own to conclude that Clash DNS is misconfigured.
Consider a client that supports TUN mode only if the app can’t be configured to use a proxy and doesn’t read the system proxy. TUN mode routes eligible traffic through a virtual network interface and depends on system permissions and routing settings. Keep the original configuration while testing and change one thing at a time. Otherwise, enabling both the system proxy and TUN might restore access, but you won’t know which route the traffic actually took.
Retest the browser and terminal, and keep the results comparable
- Revert any temporary changes made during testing, keep only the setting confirmed to work, then use the original browser profile and terminal tool to access the same destination again.
- Confirm that regular public addresses are routed as expected, then retest local services or work sites that should bypass the proxy. Change exception lists or rules only for destinations that actually need it.
- If the problem persists, note the client and system versions, listening port, time of failure, matched rule, and exact error text. When checking logs and connections, compare requests from the same time. Remove subscription links, access tokens, and account details before sharing logs.