Getting Started 8 min read

Clash First Connection Guide: Choose a Node, Test Latency, and Verify Proxy Traffic

After importing a config, choose a node in a proxy group, interpret latency test results, then check the logs and connection list to confirm traffic is using the proxy.

1. Confirm the config is active, then choose a node

A successful subscription download only means the client retrieved a config. First, check the Subscription or Config page to make sure the intended config is selected. Then open Proxies and confirm the expected proxy groups and nodes are listed. If applying the config produced an error, or the panel still shows group names from the previous config, resolve the loading issue first. Repeated latency tests won't verify the new config until it's loaded.

Choose the group your rules use

  1. Set the routing mode to Rule. On the Rules page, check which policy will match your test domain, or review the active config's rules from top to bottom. Rule mode uses first-match-wins: a direct rule near the top can take effect before the final MATCH.
  2. Open Proxies and find the relevant group. In a manually selectable group (select), choose a node. Group names are defined by the config and may be something like Node Selection or PROXY. DIRECT means traffic goes direct; it isn't a remote node.
  3. If the selected entry is another group, follow it down to the next level. For example, in Node Selection → Auto Select → Node A, Node A is the actual egress. Check the result in the Auto Select group. Changing nodes in a group that the rule doesn't reference won't affect this connection.

A url-test group selects nodes based on probe results, with switching also affected by settings such as the tolerance in your config. For initial troubleshooting, pin a node if the config offers a manual group; this makes results easier to compare without automatic switching. If there's no manual option, note the node shown in the connection details.

2. Test latency and distinguish response times from timeouts

In Proxies, run a single-node latency test on the selected node. The client typically asks the core to request a probe URL through that node. The reported milliseconds measure that probe request, not an ICMP ping or download speed. Manual tests and automatic groups may use different probe URLs, so compare nodes using the same URL and network whenever possible.

Example resultsHow to interpret themNext step
146 ms、153 ms、149 msThree consecutive successful probes to the same node, with similar timesKeep the node and make a new request to your actual destination
112 ms, timeout, 420 msResults vary; the lowest reading doesn't indicate a stable connectionTest another node on the same network for comparison
All nodes time outThere may be a shared issue, or the probe URL may be unavailableCheck the logs, basic network connectivity, and probe URL first; don't change node settings one by one

The values in this table illustrate how to read results; they aren't real test data. Test each candidate node three times, record how many probes succeed, then compare response times. A timeout to the probe URL doesn't mean your destination is unreachable, and a successful probe doesn't guarantee your destination will load. Verify the connection with an application request and its connection record in the next step.

3. Route application traffic through Clash

On desktop, start by verifying one connection method. Turn on System Proxy in the client, then make a request from a browser that follows the system proxy settings. A browser with its own manual proxy settings, or an extension that controls proxy settings, may not be affected by the system toggle. Latency tests are initiated by the core, so they can succeed even when the browser isn't using the proxy.

If you need to route traffic from a desktop app that ignores system proxy settings, test TUN if your client supports it. For a clean comparison, turn off System Proxy first, then enable TUN. Resolve any service or permission prompts, and restart the app you're testing. TUN uses a virtual network interface to receive traffic routed to it; enabling the interface doesn't guarantee every app is covered. Route exclusions and the app's own network settings can still affect the result. On mobile, start the VPN connection as prompted by the client and approve the system permission request.

Run a separate test through the local proxy port

On desktop, check the client's port settings for the local HTTP or mixed proxy port, such as the active mixed-port: 7890. The command below explicitly uses this local endpoint, without relying on browser or system proxy settings. Replace 7890 if your port differs; don't use the REST API port. In Windows PowerShell, use curl.exe instead of curl.

curl --noproxy "" --proxy http://127.0.0.1:7890 --connect-timeout 8 --max-time 20 -v -o first-connection-test.html https://example.com/

This command saves the response body to first-connection-test.html in the current directory. First, check whether it connects to 127.0.0.1:7890 and establishes the HTTPS tunnel, then check whether the destination returns a response. If the local port refuses the connection, verify the port and core status first. If the command succeeds but the browser request doesn't appear in the connection list, focus on the browser's proxy settings. The destination in the command is only an example; if it matches a direct rule, use a test destination that your config is supposed to proxy.

4. Check the connection list and logs to confirm the actual route

Open the client's Connections page, then make a new browser request. Note the time and destination domain, and find the matching connection by domain or destination address. Don't assume the proxy is working just because an old tab still displays content: the page may be cached and send no request, or an existing connection may still use the previous route. To compare routes, close the test app's existing connections and make a fresh request.

  1. Check the destination: Make sure it matches the domain you just visited or its associated destination address—not a background latency test, page asset, or client update request.
  2. Check the rule: Review the matched rule and policy in the connection details. If you expected a proxy but see DIRECT, the traffic reached the core but was routed directly. Check for an earlier direct rule or a direct fallback that matched the destination.
  3. Check the route: Confirm that the actual egress is the node you selected. Connection details may show the proxy group and node separately, or just one route. If the connection uses a different node, check the group referenced by the rule, nested selections, and automatic group status.
  4. Check the response: Confirm the app received the expected content, and check for DNS, connection, or TLS errors at the same time. A connection entry only shows that the core saw the connection; it doesn't prove the request succeeded.

A short request may end before you return to the Connections page. Look in Logs for the matching rule and outbound details at the time of the request. If the current log level only shows warnings or errors, switch to info temporarily and retry, then restore the original setting. Log fields and wording vary by core version and client, so don't rely on finding one exact line.

5. If the first connection fails, work backward from where it stops

  • The app can't connect, and there are no matching entries in Connections or Logs: First, use the local-port command to check the core endpoint. If explicit proxying works, investigate system proxy settings, the app's proxy configuration, or TUN routing. Don't switch nodes yet.
  • The connection is listed, but uses DIRECT or an unexpected proxy group: Check the routing mode and the first matching rule, and confirm that the destination you tested is the one you expected. Identify the rule that took effect before changing the config.
  • The node is correct, but the logs show a DNS error or connection timeout: Determine whether the error refers to the node server or the destination. Keep the same destination and try another node in the same group. Then pin the selected node and test a second destination. Change only one variable at a time to see whether the issue follows the node or the destination.
  • The browser works, but another app still fails: Verify each app separately in the connection list. A browser working through the system proxy doesn't mean other apps use the same settings, or that their UDP traffic reaches the core.

When reporting an issue, include the client and core versions, current mode, request time, matched rule, and error type. Before sharing logs, remove subscription URLs, authentication details, and any addresses you shouldn't disclose. Once the test succeeds, verify it with a fresh application request using the same criteria, then restore your usual proxy group and connection method.

Download the Latest Clash Version