Clash Troubleshooting Guide

Find the problem by symptom: trace where the traffic stops before changing any settings.

Still setting up your client or importing a config for the first time? Start with the quick start guide. If it used to work, or you followed the setup guide and still have a problem, choose the symptom that best matches below. Menu names vary by client; this guide focuses on settings and log messages, so the buttons don’t need to look exactly the same.

No internet access: Find where the connection breaks

Test direct access first, then compare

If no websites load after you open the client, note the current config name, selected proxy group and exit, and the time the error occurred. Turn off the system proxy, TUN, or VPN tunnel controlled by the client, then quit the client completely. Closing the window may not quit a desktop app; it could still be running in the system tray. On a phone, swiping the app away may leave the tunnel active. On a managed device, don’t override existing proxy or VPN settings—ask your administrator which tests are allowed.

On the same network, reopen two sites that normally work without a proxy. Then compare with another device on the same Wi-Fi. If neither device can load them, check the router’s internet connection and whether the network requires a sign-in. If the other device works, check that yours is connected to the right Wi-Fi, has a default gateway, and isn’t retaining a local proxy address. Public networks at hotels, schools and similar venues may require sign-in before direct access works; follow the system prompt before starting the client.

If only a few services are affected, don’t assume the whole network is down. Check whether the browser reports a domain lookup failure, a connection timeout, or an untrusted certificate. For certificate errors, check the date and time zone, then see whether the network requires sign-in. Don’t bypass certificate warnings. If a page loads but sign-in keeps sending you back to the same page, record that separately: it’s different from a request that never leaves your device.

Restore one traffic-capture method at a time and trace a single request

Once direct access works, on desktop, turn on only the system proxy or TUN—whichever you originally used. On mobile, restore only the tunnel you’re testing. Have the browser send the same request again, then find the new entry on the connections page by domain or time. Check the matched rule, actual exit, and where the error occurred. Close other apps that generate frequent network traffic first, so background sync errors don’t get mistaken for the page you’re testing.

If there’s no matching entry, confirm the client’s core is running, the connection list isn’t filtered, and the system is sending traffic to the local port. If an entry shows REJECT, check the active config and rule order. A DIRECT match doesn’t mean the destination is reachable without a proxy. If the request entered a policy group but still failed, expand the group and check which exit was actually selected. A group name is just a label, not proof of connectivity.

To tell a proxy issue from a rule issue, select a previously working node in the same policy group and repeat the request. If you temporarily switch proxy modes for comparison, switch back afterward. If rule mode fails but the same exit works in comparison mode, check the matching conditions and rule order. If both fail, look at the exit connection, DNS resolution, or the app itself. Don’t update the subscription, change DNS, and switch networks in the same test; even if things start working, you won’t know what fixed it.

After recovery, check that quitting and restarting work normally

Open a new page to confirm the connection is back, then try a normal task that requires sign-in or loads several resources. This avoids mistaking a cached page for restored internet access. Some apps reuse old connections; after changing a policy, quit and reopen the app, then compare once a new entry appears in the connections list. If the issue only occurs at startup or after waking the device, reproduce it under the original conditions rather than relying on a result from manually quitting and immediately reopening the app.

If the internet only stops working after you quit the client, check whether the system is still pointing to a local port that’s no longer running. If you didn’t use a manual proxy before, clear any leftover manual settings. If you did use a work proxy, restore its original address or auto-config method. Don’t reset all network settings just to undo one toggle; you could also lose saved Wi-Fi networks and other working settings. To keep investigating, note what happens with traffic capture off and on, then go to the relevant section below.

Proxy timeouts: Tell test failures from connection failures

Check speed test results against a real request

Latency tests in a policy group usually send a request through each exit to a specified URL and measure how long it takes. A timeout means only that this request didn’t return the expected result in time; it doesn’t mean every site is unreachable through that exit. Check which test URL the client uses, select the same node manually, and open a site you use regularly. Record whether the test and the real request each succeed instead of relying on a screenshot of a list full of timeouts.

If real browsing is stable but every speed test fails, check whether multiple policy groups share the same test URL. A slow response, certificate validation failure, or unexpected response from that URL can mislead automatic selection. If you maintain the config locally, try a lightweight test URL you can reliably reach in a copy of the config. For a provider-managed config, ask its maintainer first. Don’t also raise the timeout substantially; that could make bad nodes take longer to identify.

If both the test and real requests fail, narrow down the scope: one node, a group of nodes on the same route, or nodes across different regions and protocols. Test two representative exits against the same destination; there’s no need to test the whole list at once. Repeated, intensive tests add traffic for your device and upstream services, and make the resulting errors harder to interpret.

Check the network, clock, and config based on where the error occurs

First confirm that direct internet access works. If a node that timed out starts working on a mobile hotspot, look first at authentication, forwarding restrictions, or connection quality on the original network; that doesn’t prove the config is wrong. Next, check that the system date, time, and time zone are correct, especially after the device has been asleep for a long time or switched networks. Incorrect time can affect certificate or handshake validation. Don’t disable validation to restore a connection: even if traffic starts flowing, you’ll no longer verify the other party’s identity.

Find the first error in the logs that matches the test time. If the node server’s hostname won’t resolve, follow the DNS troubleshooting steps. If the connection is refused, note the port and time, then check whether the provider has changed the config. If the connection is established but the handshake fails, check that the protocol, transport type, and certificate settings match. timeout alone doesn’t tell you which step timed out; don’t change ports or authentication fields based only on that word.

Make sure the client is using the config you just updated. Some clients show that a subscription was downloaded but require you to select the config before the core loads it. Others use proxy providers, so the local node list may still come from an earlier update. After loading, check a node’s type and exit, then select it manually in the policy group. Don’t paste the full subscription URL into a support ticket, and don’t assume nodes with the same name have identical server settings.

Check whether automatic selection is making the problem worse

url-test and fallback use different selection logic: the former selects candidates based on test results, while the latter generally uses the first available candidate in order. Seeing an available node in a group doesn’t mean your request is using it. An outer policy group may have selected another group, and existing connections may keep using an old exit. Check the actual route in the connection details, close old sessions, and send a new request before deciding whether the policy is working.

If only one group keeps failing, switch back to a known-good exit and temporarily use manual selection for comparison. Note which test URL, candidate group, and network conditions trigger the problem. If the same config fails on another device and network, useful details for the maintainer include the test time, error category, protocol, and scope. Reporting only that everything is “red” makes it hard to distinguish a service-side change from a local config issue.

Subscription errors: Check downloading and loading separately

Keep the old config and identify where the update fails

Before updating, check whether the current config still works. If it does, keep it—don’t delete the subscription and start over with a QR code. Note when it last updated successfully, then manually update that subscription in config management and check the corresponding logs once the client reports a result. An update broadly involves three steps: requesting the URL, parsing the response, and loading it into the core. A completed progress bar or “Download complete” message doesn’t prove the last two steps succeeded.

If there’s no HTTP status code in the logs and you see only a parse error, connection timeout, or certificate error, treat it as a subscription server that hasn’t responded properly. Compare with a regular website on the same network, check the system clock, and retry over a known-good connection if the network allows it. If only the subscription domain fails, check its resolution and download path rather than changing all your proxy nodes. The failed exit may also be the one the previous update depended on.

If there is a status code, note it and interpret it alongside the provider’s guidance. For unauthorized or forbidden responses, check whether the URL was revoked, the account is active, and the service has restrictions. For not found, check whether the URL moved or was copied incorrectly. For too many requests, stop clicking and wait as directed by the provider. For server errors, keep the existing config. A status code narrows down the cause; one number alone can’t confirm that an account has expired.

Distinguish the file format from the client’s message

Copy a subscription explicitly labeled for Clash or the relevant core format from your service account. Don’t paste the subscription URL into a search box as if it were a webpage, and don’t send it to someone else to test. It may contain credentials that grant access to your config. If the client offers a response preview, inspect the beginning and structure locally: a sign-in page, verification page, or error page can return a success status code, but it isn’t a config file. Changing the file extension won’t turn it into YAML.

If the response is a generic node list or a single protocol link, whether the client can import it depends on the formats it supports. Importing nodes doesn’t necessarily restore the original rules, policy groups, or providers. If a specific line has a syntax error, check its indentation, colon, and quotes, as well as those on the line above. If the syntax is valid but a field is unsupported, check which core the config targets. See subscription format guide for details.

If the main config loads but policy groups have no nodes, check whether it uses proxy-providers to fetch nodes separately. Downloading the main file and updating a provider are separate requests; one can succeed while the other fails. Check the provider’s status or logs and compare its own update time. If you’ve confirmed that the provider file wasn’t updated, don’t reset everything. For a remotely generated config, fix the issue upstream where possible so a local change isn’t overwritten at the next update.

Confirm a manual update works before restoring automatic updates

For a first import or an expired config, also check how the client updates subscriptions. Some requests use the system proxy; others are sent by the core or the client’s own network module. If an update requires an exit that’s already unavailable, you can get stuck in a loop: you need an update to restore access, but can’t update. Check the subscription’s own update settings to see which route it uses. If the network and service allow it, update over a connection that can reach the URL rather than blindly changing every group.

After a manual update succeeds, check the config name, update time, and active config, then send a new request to confirm the updated rules or nodes are in use. Set the automatic update interval according to the provider’s guidance. If updates fail only when the screen is locked, the device is asleep, or you’re on a particular network, check background task restrictions and network switching separately. Don’t shorten the interval excessively for an occasional error. See subscription update failures and auto-refresh intervals for details.

Slow speeds: Tell slow page loads from slow transfers

Set up a repeatable speed comparison

First, work out whether a page takes a long time to start loading or a download starts promptly but stays slow. The former may be stuck on DNS, connection setup, the certificate handshake, or the server response. The latter is more directly about sustained transfer speed. Frequent video pauses don’t necessarily mean the whole connection is slow; the player may be requesting segments from another domain. Note whether the delay affects the first screen, a particular resource, or the entire download, then choose a suitable test.

On the same device, run a few short tests against the same publicly accessible file or page. Note the time, network, exit, and symptoms. Compare with a direct connection only if the destination is normally reachable without a proxy and works reliably. Pause large local sync jobs and system updates first, so background traffic stays as consistent as possible. Don’t compare speed tests from different targets taken hours apart, or treat the speed of a temporarily cached page as a long-term result.

If a file is slow only on the first attempt, check browser cache, connection reuse, and DNS cache. Use the browser’s Network panel in developer tools to inspect request timings: compare time to first byte with a small file, then download time with a larger one. A missing timing segment doesn’t necessarily mean that step took no time. If the connection was reused, the request may not have needed a new DNS lookup or handshake.

Check which exit the actual resource uses

A site’s text, images, sign-in API, and video segments may use different domains. Open Clash connection details, find the slowest new request, and check its matched rule and exit. Looking only at the main page’s domain can miss a large file using a different route. If old connections remain active after you switch policies, stop the current download and start a new short test so you don’t attribute the old connection’s performance to the new exit.

Latency tests show whether a request to a particular address responds; they don’t measure available bandwidth. If latency is low but downloads are often slow in the evening, the exit or upstream service may be busy. Keep the same destination, switch to another previously working route at the same time of day, then repeat at a different time. If only one destination is slow, check that service and its content delivery route instead of writing off the entire node.

To reproduce the issue reliably, pin the policy group to a specific exit before testing. Automatic selection may change the exit used by new connections after periodic tests, so repeated runs against the same page may take different routes. If a fixed exit works consistently, check policy group settings against the test conditions. When adjusting rules, target only the domain confirmed to be causing the problem; save broad changes until after validation.

Rule out local device load and the network connection

If every exit and direct access are slow on the same network, first check the connection between the device and local gateway. If possible, switch from Wi-Fi to Ethernet or test closer to the access point; then check whether another device has the same problem. If only this device slows down with the same public resource while importing a large ruleset or downloading, check CPU usage and memory pressure in the system task manager to distinguish the client from the browser or other background tasks.

If things slow down only with TUN enabled, compare with the same app using the system proxy, on a desktop network where that’s supported and allowed. If there’s a clear difference with the same destination, exit, and test time, check the client logs for routing or DNS interception issues. Large requests stalling while small ones work may also involve packet fragmentation or the transport method. Note the affected network and request type; don’t copy MTU values from the internet or change every TUN setting at once.

DNS issues: Distinguish app lookups from core lookups

Confirm whether the failure is DNS resolution or the connection that follows

If you see a server not found error, can’t open a local network hostname, or get immediate errors on some pages after switching networks, note the full hostname and time. A browser’s domain not found message tells you only that its lookup failed. The core logs might instead show that the node server’s hostname couldn’t be resolved, rather than the site you’re trying to open. Identify which hostname failed before deciding whether to change app DNS or the core’s DNS path for connecting to an exit.

The command below shows DNS lookup results from the current command-line environment. Use the same hostname for comparison. It won’t automatically reproduce the browser’s Secure DNS settings or guarantee that the client’s built-in resolver is used. With TUN DNS interception enabled, the request may also be routed to the core according to the local config. Note the response type and server shown in the output; getting an address doesn’t prove that the destination is reachable.

nslookup example.com

If the response says the name doesn’t exist, check for a typo or a changed domain first. For work or home network names, confirm which resolver on the current network should answer. If the query times out, check whether that resolver is reachable and whether its own traffic is caught in a proxy loop. If you get an address but the connection still times out, return to the request connection and policy match instead of blaming every connection failure on DNS.

Understand what Fake-IP does and where its config applies

Fake-IP mode gives apps a temporary mapped address. When the core receives traffic, it uses that mapping to handle the domain and routing. If a test returns an address in the configured Fake-IP range, that doesn’t mean the destination is actually hosted there or that it’s a real node address. An app that bypasses the core may fail to connect if it receives one of these addresses; the same can happen if it keeps using a stale mapping after you switch configs.

Here’s a mihomo DNS config snippet. It excludes the exact domain printer.home.arpa from Fake-IP; it doesn’t assign an address to the printer or find a local DNS server automatically. Merge these fields into the existing dns mapping and filter list only in a config copy you maintain. Don’t add a second top-level key with the same name or overwrite existing upstream settings with the snippet. Before use, replace the example domain with the name that actually needs a real address.

dns:
  enable: true
  enhanced-mode: fake-ip
  fake-ip-filter:
    - 'printer.home.arpa'

For an internal hostname to resolve to the right address, an upstream resolver that knows the name must still be available. For names visible only on your internal network, use the resolver path provided by your network administrator; don’t send them to a public DNS service to see what happens. If only one app is incompatible with mapped addresses, test an exception for that domain first instead of changing every domain to the same mode. After merging, check that the core reloads successfully, then verify the device and a site that already worked.

Check the browser, system, and core DNS paths separately

Browsers may use Secure DNS, and Android may use Private DNS. Neither is guaranteed to use the same upstream as the core. If one browser fails while another works, check the failing browser’s DNS settings and whether they match the system policy. On managed devices, keep administrator-required settings. After changing the environment, test in a new session and confirm that the system or app isn’t still using a cached result.

If everything starts failing after you switch to an encrypted upstream, check how the core resolves the upstream’s own hostname and whether the policy used to connect to it depends on the same DNS setup. If the logs repeat the same resolution and dial errors, restore the previously working upstream first, then test the new rules separately. Don’t disable certificate checks to fix upstream connectivity. After recovery, test a regular website, node server resolution, and the internal hostname that failed before.

System proxy not working: Check how traffic is captured

An enabled toggle doesn’t mean requests are reaching the core

A system proxy usually provides an address and port for apps that follow the operating system’s proxy settings; it doesn’t capture traffic from every program. Some apps have their own proxy settings, some command-line tools use environment variables, and some requests don’t use the system HTTP proxy at all. Start with a browser that normally follows the system proxy. Open a new page and look for a matching domain and time on the connections page instead of relying on the system tray toggle.

If the browser also has no matching entry, check the actual address, port, and auto-config option in system settings. The port shown in the UI might already be in use by another local tool, or the client may listen on a different port after a reload; check the client settings and core startup logs. Also check whether the test domain is on a bypass list. A workplace auto-config script or management policy may override manual proxy settings. In that case, keep the original config and contact your administrator.

Where to check the system proxy on desktop platforms
PlatformWhere to checkCommon gotcha
WindowsSettings → Network & Internet → ProxyProxy settings for the current user may differ from those used by system services.
macOSSystem Settings → Network → Details for the current network service → ProxiesAfter switching to Ethernet, don’t check only the previous Wi-Fi service.
LinuxThe network proxy panel in your desktop environment; also check app-specific settingsGUI apps, terminals, and background services may not use the same settings.

Specify the local proxy directly to separate the port from system settings

If the client confirms that an HTTP or mixed-port listener is enabled, send a request directly through that port. The example below uses local port 7890; replace it if the client shows a different port. On Windows, run the same arguments with curl.exe. This test requests a public example domain, explicitly uses the proxy, and bypasses proxy exclusion lists without changing system settings. It doesn’t test whether other apps follow the system proxy.

curl --noproxy "" --proxy http://127.0.0.1:7890 --connect-timeout 5 --max-time 15 -I https://example.com/

If the local connection is refused, check whether the core is running, the port is correct, and the listener supports HTTP. If an explicit proxy request works but a regular browser request never reaches the core, recheck system settings, the browser’s own proxy, and bypass rules. If the explicit request reaches the core but can’t load the page, the system proxy toggle isn’t the only issue; check that connection’s logs for a rule, exit, or DNS failure. Don’t expose the local listener to other devices to fix a local connection problem.

Consider TUN only if specific apps have problems

If the system proxy works in your browser but the target app ignores it, first look for a proxy option in the app’s own network settings. If there isn’t one and you need to capture that app’s traffic, consider TUN only if the client and operating system support it. TUN changes the system’s routing or traffic capture; it doesn’t fill in an HTTP proxy port for the app. It may also conflict with other VPNs, virtual network adapters, or managed network policies on the device.

Before testing, note the original system proxy, other tunnels, and routes you need. If testing is allowed, change one setting at a time, open the target app, and check whether it appears on the connections page. Also verify that local network access still works. After quitting the client, confirm that the system can return to its original network state. If the issue occurs only at startup, check whether the app starts before the network is ready or a later-starting program overwrites the system proxy. Don’t grant permanent elevated privileges to the app.

For the path from the system tray toggle to startup settings on Windows, see the Windows installation and system proxy setup guide. If enabling the toggle makes the client quit and leaves the system proxy set, restore the original settings using No internet access before troubleshooting startup.

Client crashes: Separate the UI, config, and core

Identify which process is exiting first

A crash on launch, a frozen window, and a client that remains in the tray but can’t connect are different problems. Check whether the UI and core processes are still running in the system tray or task list, then check whether the system proxy points to a listener that’s still active. If the window is hidden but the proxy still works, focus on the UI. If the UI works but logs say the core failed to start, check the core’s startup requirements. If the whole app has stopped and the network is affected, restore the original proxy first; don’t keep relaunching it to test.

Note what changed between the last normal operation and the first failure: for example, an app update, a new config, enabling TUN, waking the system, or enabling startup on boot. On the next attempt, don’t capture system traffic; just open the client. If that works, load the config. Once the config loads, perform only the operation you need to test. Stop as soon as the failure occurs. This helps distinguish a startup failure from one during reload or when traffic capture is enabled.

Save logs from around the time of the failure. Config errors may identify a field or line number; port conflicts often show a bind error; and system crash reports may identify the process that terminated. The last error alone isn’t enough, and repeated retries can overwrite the context of the first failure. Before sharing logs, remove addresses, subscription credentials, usernames, and private paths. Include only enough text to show the sequence of events.

Validate the config before reinstalling

Keep separate copies of the last working config and your recent changes. If the UI still opens, select a known-good config before starting the core. If only the new config fails, use the error to check YAML indentation, duplicate fields, referenced policy groups, and provider paths. A config opening only proves the file is readable; it doesn’t mean the current core supports every field. Desktop or server users who run mihomo directly can test the config from its original working directory:

mihomo -t -f ./config.yaml

This command requires the system to be able to find the mihomo executable. If the config depends on its original working directory, external resources, or provider files, keep those dependencies in place during testing so a path change isn’t mistaken for a syntax error. Passing the test doesn’t rule out runtime routing, port, or permission conflicts. GUI client users don’t need to install another core just to troubleshoot; use the client’s own config check or load logs first.

If TUN is causing the problem, first check the client service status, system permission prompts, and whether another traffic capture tool is already running. Keep a basic connection working in a mode that starts normally, then confirm that the same toggle still triggers the issue before investigating permissions. When you see a system security prompt, check its source and your device policies. Don’t disable security protections or grant extra permissions just to dismiss the prompt. If the system proxy is enough, you can leave TUN off for now.

Save recoverable data before changing the installation

If both old and new configs cause the same crash, note the app source, operating system, CPU architecture, and name of the process that crashed. Confirm that the installer matches your platform and architecture, then check Clash client downloads for compatible options. On supported platforms, consider Clash Plus first. On Linux, choose from the platform options on the download page. Don’t test whether either client works while both are capturing system traffic.

Before reinstalling, back up the config, subscription names, and any rule overrides that are actually in use. If you suspect the user state is corrupted, follow the client documentation to create a new state directory or use a clearly documented reset option. First test with a small, known-good config, then restore items one at a time. Restoring the entire old directory at once may bring the corrupted state back. After testing, confirm both that the client stays open and that quitting it restores the original network settings.

Mobile troubleshooting: Diagnose disconnects and network switches

Check system status, not just the client UI

Start on one network, such as your current stable Wi-Fi. Open the client, confirm that the expected config is selected, and connect. In system settings, check that the VPN is connected. Return to the client and check for errors in the current session, then send a new request from the browser. The system indicator only confirms that a tunnel is up; it doesn’t mean the selected policy group has a working node. The client’s status page may also be showing results from the previous test.

If the connection immediately switches back to disconnected, check for a VPN permission prompt first. Then see whether another VPN, filtering tool, or managed work profile is using the device’s traffic capture capability. Coexistence rules vary by operating system; check the device’s VPN management page and workplace policies. Don’t remove an unknown management profile. On a device where testing is allowed, temporarily disconnect only a connection you installed yourself and know can be disabled.

If the VPN stays connected but one app has no traffic, check whether the client supports per-app routing and whether the target app is excluded. Then identify whether the failure affects sign-in, messages, or video; these may use different domains. A successful browser request confirms only basic tunnel connectivity—it doesn’t test the target app. Reopen the app and watch for a new session rather than judging by a cached home screen.

Test screen-lock disconnects separately from network switches

First use the app in the foreground for a few minutes. Then lock the screen while staying on the same Wi-Fi. After unlocking, immediately check the system VPN status and send a new request. If the tunnel disappears only while the screen is locked, check Android battery usage, background activity, and the manufacturer’s app sleep settings. Adjust only the relevant settings for the client you’re testing. Menu names vary by device; check whether battery settings are blocking it instead of disabling power saving for every app.

On iOS, distinguish the app moving to the background from the system VPN tunnel disconnecting. Check the system VPN status and any error details the client provides. If the client supports on-demand connections, make sure the trigger conditions include the current network rather than expecting the same reconnect behavior every time the app goes into the background. Settings on managed devices may not be changeable. During testing, don’t delete the VPN config while repeatedly switching subscriptions.

After testing with the screen locked, keep it on and switch between Wi-Fi and cellular data. An old download or video connection dropping during the switch doesn’t prove the new route is unusable. Wait until the new network is connected, then open the same URL in a new request. If that also fails, test direct access on both networks with the tunnel disconnected, then check whether the client re-established its connection and is using DNS for the current network.

Work within system restrictions, then test everyday use

On Android, Always-on VPN or blocking connections without a VPN can make a tunnel failure look like the whole phone has lost internet access. First check whether the setting is required by your organization. On a personal device, change it temporarily for a baseline test only if you understand the impact and direct access is allowed; restore the original value afterward. If the connection fails on cellular data, check whether the client is allowed to use mobile data. If it fails only on one Wi-Fi network, complete network sign-in before retrying the tunnel.

If the problem started only after a system update or device change, check the installation source, system compatibility, VPN permissions, and whether the config loaded successfully. If you need to reinstall, check the recommended Clash Plus option at the Android download page or iOS download page. Restore subscriptions only through channels you trust; don’t share QR codes containing credentials. After installation, follow the quick start guide to verify the connection again.