Clash Nodes Timing Out or Failing to Connect: Troubleshooting from Subscription Updates to Port Conflicts
If all nodes time out or only some fail to connect, check your subscription, system clock, DNS, ports, and firewall in order—before reinstalling the client.
First, distinguish node timeouts from failed latency tests and local proxy issues
The latency shown by a Clash client usually comes from an HTTP request sent through the node to a specified URL—not an ICMP ping to the node server. If the request exceeds the timeout configured in the client, the UI may show a timeout. An unreachable test URL, a failed server handshake, or a stopped core can all produce the same timeout icon.
- All nodes time out: Test two nodes on different server domains. If both logs point to the same test URL while your browser can still reach the destination through the proxy, check the test URL first. If real requests also fail, follow the steps below.
- Only some nodes time out: Keep one working node for comparison. Retest on the same network and with the same test URL. If only one node fails, check its server address, protocol settings, and remote status first—not global DNS settings.
- Node latency test succeeds, but the browser still fails: Check whether the actual request is reaching the core. A successful test only confirms that probe worked at that moment; it does not mean the app is using the system proxy or that the rules route the actual website through the same outbound.
Change one thing at a time. Record when the failure occurred, the active configuration name, the test node, and the first error in the log. Errors from later retries can obscure the original cause.
Step 1: Update the subscription and confirm the core loaded the new config
- In the client’s Configuration or Subscription page, find the active remote configuration and update that entry manually. If you use a local YAML file, reload it after editing the source file; refreshing a local file is not the same as updating a remote subscription.
- Check the last update time and error log. HTTP
401or403means the request was unauthorized or rejected; check the link and account status on your provider’s site. For404, verify whether the subscription URL has changed. If the response is200but parsing fails, it may be a login page or a node-list format unsupported by the import method you’re using. - After updating, make sure that configuration is still selected and check that the core reports a successful load. A successful download does not mean the core loaded the config. Invalid syntax, an unsupported protocol, or an override that still references a renamed proxy group can leave the client using the old config.
With proxy-providers, the main YAML and provider lists can be updated separately. A successful refresh of the main config does not mean the node list was updated; check the relevant provider’s update time and download log. Keep the last working config while troubleshooting, and don’t clear the cache first. When asking for help, redact tokens in subscription URLs, node passwords, and authentication parameters.
Step 2: Correct the system clock and distinguish certificate date errors from handshake failures
If multiple TLS nodes fail and the logs show certificate has expired or not yet valid, compare your date, time, and time zone against a trusted clock. This is especially worth checking after waking from sleep, reverting a virtual machine snapshot, or switching between operating systems. On Windows, open Settings → Time & language → Date & time, turn on Set time automatically, then select Sync now.
On a Linux host using systemd, check the current status first:
timedatectl status
Check Universal time and System clock synchronized, not just the time zone shown on the desktop. If the local clock is accurate but the same node still reports an expired certificate, ask the server administrator to check the certificate. A certificate name mismatch means you should verify the server name and TLS settings provided by the subscription. TLS handshake timeout only means the handshake did not finish in time; by itself, it does not prove the system clock is wrong. Don’t disable certificate verification as a workaround.
Step 3: Check the node domain and destination domain separately
The server field in a node’s YAML points to the remote proxy server. If it contains a domain name, the client needs to resolve it to a usable address before it can establish an outbound connection. Copy the server domain from the active config; don’t substitute the subscription domain, node display name, or test URL. node.example.com below is just an example—replace it with the real node domain when running the command.
nslookup -type=A node.example.com
nslookup -type=AAAA node.example.com
NXDOMAINreturned: The current resolver reports that the domain does not exist. Check the spelling and whether the subscription still points to a retired domain. A missing AAAA record alone is not a DNS failure if a usable A record exists.- Query timed out: Use the same resolver to look up
example.comfor comparison. If both domains time out, check whether the resolver is reachable. If only the node domain fails, verify the domain and its DNS records. - The system resolves it, but the core still reports a DNS failure: A system command only shows that the resolver it queried returned a result. If mihomo has
proxy-server-nameserverconfigured, check whether the upstream specified there can resolve the node domain and whether that upstream depends on a proxy that is not yet connected. Don’t treat afake-ipaddress as the node server’s real address.
If server is already an IP address, skip node-domain DNS checks and investigate the remote connection error. This does not mean the destination or test domain needs no DNS lookup. Don’t permanently replace a subscription’s server domain with an IP from a one-time lookup: addresses can change, and TLS verification still requires the correct server name.
Step 4: Check the local proxy port, listening process, and actual outbound route
mixed-port is the local HTTP/SOCKS mixed proxy port. It is not the remote port in a node’s YAML or the dashboard’s external-controller port. The example below uses 7890; use the value active in your client. If the frontend generates the config at startup, change the port in its settings rather than editing a temporary generated file.
mixed-port: 7890
allow-lan: false
Check what’s listening on port 7890
Windows PowerShell:
Get-NetTCPConnection -LocalPort 7890 -State Listen |
Select-Object LocalAddress, LocalPort, OwningProcess
Linux:
ss -ltnp '( sport = :7890 )'
If the query returns no listening process, first verify the port and check the core startup log. If the log shows address already in use, identify the process using the port: it may be a core left running after the client exited or another proxy client. Exit the relevant app normally, or switch to an unused local port and update the system proxy and any apps configured manually. Don’t terminate a process you can’t identify.
Verify the local proxy with an explicit request
The command below connects curl directly to the local HTTP proxy, separating system proxy settings from core forwarding. In Windows PowerShell, use curl.exe instead of curl. If your port supports SOCKS only, change the proxy URL to socks5h://127.0.0.1:7890 and use the actual SOCKS port.
curl -v --connect-timeout 5 --max-time 15 --noproxy localhost --proxy http://127.0.0.1:7890 https://example.com/
If the error clearly says it cannot connect to 127.0.0.1:7890, fix the local listener first; there’s no need to switch nodes yet. If the local port connects but CONNECT fails or the request times out, check the core log at the same time. Even if you receive an HTTP response from the destination, confirm the matched rule and actual outbound in the connection log. If the rule uses DIRECT, that request does not prove the selected node works.
Step 5: Check firewall and network differences before switching nodes
If the local proxy works but the core times out connecting to the remote server, check host firewall or managed-network logs for blocks matching the destination address, port, and protocol shown in the log. Change rules only on devices you administer and in line with existing policy. Don’t disable the entire firewall to test, and don’t expose the local proxy port to your LAN. If the current network allows it, compare using the same config, node, and test URL over a mobile hotspot. Don’t change DNS or proxy groups at the same time.
- Fails only on the original network: Note the failure time and destination port, then ask the network administrator to investigate. Success on a hotspot narrows it down to a network difference, but does not prove a firewall is blocking it; DNS results, routing, or IPv6 connectivity may differ too.
- The same node fails on both networks: Switch to a working node in the same proxy group, then send the server administrator the failed node’s name, protocol, exact error, and retest time. If the node uses a UDP-based protocol, a TCP port test cannot verify its UDP session.
- Explicit proxy works, but TUN fails: Retest TUN separately in the client and check virtual adapter, routing, and DNS interception logs. The app’s system proxy and TUN routing use different paths; don’t use TUN to work around a failed local listener.