Getting Started About 8 min read
Clash First Connection: Choose a Proxy Node, Test Latency, and Check Your Public IP
After importing a subscription, learn how to choose a proxy node, interpret latency tests, and verify proxy routing in your browser and terminal.
Start with a manually selected node and test it in rule mode
After importing a subscription, manually select a stable node in the proxy group that handles your traffic, then enable the system proxy. On desktop, leave TUN off at first so you can test the node, routing rules, and browser use of the system proxy separately. Global mode is useful for a quick comparison; switch back to rule mode for everyday use.
- Make sure the configuration is active. In the client, select the configuration you just imported on the Subscription or Profiles page, then open the Proxies page. Seeing the subscription entry only confirms that the configuration was saved. You can proceed with testing once selecting it loads the proxy groups and nodes.
- Find the group handling your traffic. Check the Connections page to see which rule matches the target domain and which proxy group it uses. A configuration may have multiple groups for different purposes; a group named “Proxy Selection” does not necessarily handle the current request.
- Pin down a candidate route. Select a node in a group that supports manual selection. If the available option is a subgroup such as “Auto Select,” expand it to see which node is actually selected. If manual selection isn't available, note the outbound route for this request so you can test it again.
In the client, “proxy groups” correspond to proxy-groups in a Clash configuration, and routing rules correspond to rules. In rule mode, rules are checked in order, and the first match determines the outbound route. A selected node won't be used for requests that match DIRECT. For a comparison of the three outbound modes, see the Getting Started guide to outbound modes.
How to Read Clash Latency Results: Test Each Node Three Times
In clients using the Mihomo core, a latency test usually sends a request through the specified proxy to a test URL and reports the time taken in milliseconds. This is different from the ICMP round-trip time measured by ping, and it cannot be converted into download speed. To compare nodes, use the same test URL, timeout, and local network whenever possible. Health checks may use different URLs for different groups, so avoid comparing their existing readings directly.
Narrow down your options by success rate and consistency
These are sample readings, not benchmark results. Start with two or three candidate routes and test each three times over the same Wi-Fi or wired connection. If the client only shows the latest result, record the readings yourself.
| Candidate node | Three test results | First connection: what to try |
|---|---|---|
| Node A | 148、156、152 ms | Three successful tests with similar times; test this one first |
| Node B | 89 ms, timeout, 410 ms | Lowest single reading, but highly variable; retest before choosing |
| Node C | 231、239、235 ms | Three successful tests; use as a comparison node |
If several nodes start timing out at once, check your local network first, then the test URL. For example, a request to https://www.gstatic.com/generate_204 usually succeeds with an HTTP 204 response, which has no page content. A timeout only means that particular test didn't finish in time. If you try another trusted HTTPS test URL, use the same one for every candidate node. Finally, try the site you actually want to use: a successful latency test only confirms access to the test URL.
Verify in your browser: compare your public IP with connection logs
- Record a direct-connection baseline. Turn off the client's system proxy and TUN, and pause any other network tunnels or browser proxy extensions. In your browser, open
https://api.ipify.organd note the public IPv4 address shown. If it doesn't load, mark the baseline as unavailable and use the connection logs to verify the route later. - Make the request again with the system proxy enabled. Leave TUN off, enable System Proxy in the client, and reload the same URL. In Windows 11, check the system settings under Settings → Network & internet → Proxy. If the client configures a manual proxy, check the server address and port under Manual proxy setup. Also check whether your browser has its own proxy settings and whether it's set to use the system configuration.
- Check the actual outbound route in the client. Immediately after reloading the page, find
api.ipify.orgon the Connections page and check the matching rule and outbound route. Short-lived connections may disappear quickly, so open the Connections page before refreshing or check the client logs. If rule mode matchesDIRECT, temporarily switch to global mode, select the same node in the global group, and test again. Switch back to rule mode when you're done.
Verify from the terminal: use curl to specify the local proxy
This tests the route from your terminal through the local Clash port to the outbound selected by the rules. Command-line tools don't always use the desktop system proxy, even when your browser does, so specify the proxy address explicitly. In the client settings, look for Mixed Port or HTTP Proxy Port. The example below assumes the client provides a mixed proxy at 127.0.0.1:7890. Replace 7890 with the port shown in the client; don't use the controller port or a SOCKS-only port. In Windows PowerShell, use curl.exe instead of curl.
Try a direct request first, then explicitly use the local HTTP proxy
curl --noproxy "*" --silent --show-error --fail --max-time 15 --write-out "\nHTTP %{http_code}\n" https://api.ipify.org
curl --proxy http://127.0.0.1:7890 --noproxy "localhost,127.0.0.1" --silent --show-error --fail --max-time 15 --write-out "\nHTTP %{http_code}\n" https://api.ipify.org
The first command tells curl to bypass proxy settings for all destinations. TUN or another system-level tunnel may still intercept the request, so turn those off when establishing a direct-connection baseline. The second command explicitly connects to the Clash port. Here, --noproxy applies to the request destination, not the proxy address, and overrides any environment setting that might exclude the lookup domain. Both commands have a 15-second timeout.
A successful request displays an IP address and HTTP 200. A 200 response from the second command only confirms that the lookup succeeded; the status code alone can't tell you whether the remote node was used. Check the connection logs to see whether the core routed the request through a node or sent it directly under the rules. If both your browser and the second command use the expected node and return a result, you've verified the browser's system-proxy route and the terminal's explicitly configured proxy route.
Latency test passes but websites won't load: troubleshoot by where the request gets stuck
| Symptom | What to check first |
|---|---|
| The explicit proxy command reports that the connection was refused | Check whether the error points to 127.0.0.1:7890. If it does, make sure the core is running, the port is listening, and the command is running on the same system as Clash. In a virtual machine, 127.0.0.1 refers to the VM itself. |
| curl shows a connection log, but the browser doesn't | Make sure the browser uses the system proxy, then check extensions and the system proxy bypass list. Send the request again so you don't mistake a cached page for a live connection. |
| Global mode works, but rule mode connects directly | Find the rule and outbound group actually matched by the target domain, and check whether an earlier rule routed it directly. Before making changes, note the matching rule. Retest with the same domain and node for a fair comparison. |
| The IP lookup works, but the target website doesn't | Check the target site's connection log, error message, and matched rule separately. The lookup service and the website are different destinations; they may use different groups, or only one of them may be timing out. |
Test in the mode you actually plan to use. Switch back to rule mode, send a new request to the target website, and confirm that it matches the expected rule and loads successfully. If the browser and explicit proxy tests pass but an app doesn't use the system proxy, test TUN separately. TUN captures matching traffic through a virtual network interface. Change only this setting at a time so you can tell whether the app isn't using the proxy or the core's routing doesn't match your expectations.