Browse by symptom
Clash Troubleshooting Guide
For your first install, subscription import, mode selection, and connection check, follow the steps in Quick Start. If you already have a configuration but something is wrong, choose the closest symptom below. This guide uses mihomo configuration fields as examples; interface labels and available options depend on your client version.
Connection basics
No internet after enabling Clash
First find out whether the network is down or traffic is failing on its way into the client
Start by comparing the same device and network against a website that normally works. If this is a managed device or a network that requires a specific proxy, don't bypass those requirements. Record the managed settings and ask your administrator which tests are allowed. On a personal device, note the current system proxy and TUN settings, turn both off, quit the client, and try the site again. If it still fails, check whether you need to complete a Wi-Fi sign-in, whether the default network switched to an unavailable adapter, and whether another device on the same network has the same issue. You don't need to switch nodes or reinstall the client yet.
If access returns, restart the client and enable just one setting at a time: system proxy or TUN mode. Then request the same URL again. Don't change the subscription, node, and traffic-capture method all at once. If turning off the system proxy fixes it, check the proxy address and local listener first. If internet access fails only with TUN enabled, look at the virtual interface, routes, and DNS. If each works on its own but they fail together, keep the option your apps need and check whether another proxy or VPN is also changing network settings.
Check whether the mixed port is actually accepting requests
Open the client settings to find the current mixed port, then check the startup log to confirm the local listener is ready. The example below uses 127.0.0.1:7897. On Windows, use curl.exe; on macOS and Linux, use curl. Replace the port if yours is different. This command explicitly uses an HTTP proxy, so it doesn't depend on whether your browser reads the system proxy settings. Choose an HTTPS site you know is reachable on your current network. If you use a different site, use the same URL for both comparisons.
curl -v --max-time 15 --proxy http://127.0.0.1:7897 https://example.com/
If connecting to the local address immediately returns Connection refused, don't troubleshoot the remote node yet: nothing may be listening at that address, the core may not have started, or the port may have changed. If you see a CONNECT tunnel being established, the request reached a local proxy service. Check the client log for the matching domain to confirm that the service belongs to the current client. Even a successful tunnel response doesn't guarantee the page will load; certificate validation or the destination server may still fail. A successful local connection alone doesn't prove the full route is working.
Compare rules, connections, and logs using a real request
Retry in Rule mode and note the time of the error. In the Connections tab, check the request's destination domain, matched rule, and outbound. Short-lived connections may disappear before you can refresh the list; if so, check the log for the same time. DIRECT means the rule sent the request directly; it doesn't mean the system proxy failed to capture it. If you see REJECT, find out which rule blocked the destination. If a proxy group handled the request, check which outbound is currently selected, not just the group name. For rule matching order, see Quick Start: Rule-Based Routing.
If you suspect a rule issue, briefly switch to Direct mode on a network where that's permitted, then restore the original mode after testing. Direct mode still processes connections sent to the client; it isn't the same as quitting the client. If the real request succeeds but just one app fails, check the app's own proxy settings under System proxy not working. If the error is limited to domain resolution, check the DNS path under DNS issues. After making changes, retry both the action that failed and a site that already worked. That helps catch fixes that solve one route but break another.
Probes and outbound connections
Node timeout or latency test failure
First tell a timed-out test apart from a failed real-world request
A node test sends an application-layer request to a specific URL; it doesn't simply ping the node server. Even if the server responds to ICMP, the test can still time out while resolving the node address, establishing a transport connection, completing a protocol handshake, or reaching the test site. Conversely, an unreachable test URL doesn't prove the node can't reach other sites. Test one node on its own, then use the same proxy group for an HTTPS request you actually use. Note the time and confirm that the real request went through that node.
Opening a site in Rule mode doesn't necessarily test the node you selected. The destination may go direct or through another proxy group, and an existing long-lived connection may keep using its previous outbound after you select a different node. Close the test page and, if needed, disconnect that connection in the client before retrying and checking the outbound. With a url-test group, check which member is selected before and after the test. If the group switches during testing, select a member manually to isolate the variables instead of comparing results from two different routes.
Read the log by failure stage; don't diagnose from a single keyword
Retry once at the normal log level. A destination domain and a node server domain are different things; failure to resolve one doesn't mean failure to resolve the other. If the log clearly shows that the node server couldn't be resolved, check the node address and whether the resolver used for proxy server domains is reachable. If the error is a connection timeout, retry the same node on another network to see whether the problem follows the current network. For an expired certificate, domain mismatch, or explicit authentication failure, check the system clock, configuration source, and provider's instructions. Increasing the timeout or skipping certificate validation won't fix these errors.
Cross-check two nodes you know are usable: test each on the original network, then retry the failed ones on another network you're authorized to use. If just one node fails on both networks, the node, its configuration, or its remote exit is a likely cause. If several different nodes fail on one network but work on another, check the access network, DNS, or restrictions on the connection type. Ideally, test nodes from different routes. Two differently named nodes that use the same entry point aren't independent evidence.
Check the probe URL and what automatic selection can tell you
If websites load but every node shows a timeout, first find out which URL the tests use. The manual latency test in the interface, the url in a url-test group, and a proxy provider's health-check may use different URLs and schedules. If the client lets you change the test URL, choose a stable, lightweight HTTPS endpoint that doesn't require sign-in, and use the same URL for both comparisons. Don't use a URL that downloads a large file for latency tests. Rerun a brief congestion-related failure later; avoid setting a very short interval that repeatedly launches concurrent probes.
If an automatic group switches outbounds frequently but a manually selected node works reliably, check whether the test destination restricts access by region or source, then look for repeated failures during scheduled probes. You can temporarily pin a route and record disconnections and error stages during normal use before deciding whether to adjust the group. To verify recovery, run both a probe and a real request. If one succeeds and the other fails, record them separately: a probe mainly reflects the route to its test destination and can't replace an app request. A successful app request doesn't prove automatic probing has recovered either.
Configuration and subscriptions
Subscription import failed or won't update
Check the fetch, parse, and enable stages separately
Keep a local copy of the configuration that currently works. Then open the Subscriptions tab, manually update the failed item once, and note the exact error. Clients typically send the request and save the response first, parse the configuration next, and only then load the selected configuration into the core. If the download fails, there's no need to edit YAML yet. If the subscription says it updated but nothing changed, check whether that item is selected and whether the client reported a reload failure. A subscription appearing in the list doesn't mean the running configuration has switched to it.
First confirm that you pasted a subscription URL provided for Clash or mihomo, not an account page, share page, or sign-in link. Preserve the original capitalization and query string, remove any leading or trailing whitespace copied with the link, and don't split and reassemble a long URL across displayed line breaks. For a 401 or 403 response, check authorization, whether the link was reset, and any client restrictions from the provider. For 404, verify the URL and path. For 429, follow the provider's guidance and wait before trying again; don't keep clicking Update. These status codes describe the server response and don't, by themselves, identify a specific account issue.
Check the response body, not just the success message
A 200 response can still contain a portal sign-in page, maintenance notice, or CAPTCHA. If you're signed in through a browser but the client receives a sign-in page, the client likely doesn't have the browser's session. If the provider offers several formats, get its dedicated Clash or mihomo link. A full configuration, a proxy provider file containing only nodes, and a generic node link are different input types, even if all can be saved as text. Changing a file extension to .yaml doesn't change its format; a proxy provider file also needs to be referenced by the main configuration.
If a warning points to a line number, open a local copy and check that line and the section above it: are list items aligned, are tabs used where spaces are expected, are quotes paired, and has indentation accidentally nested a top-level field under the previous block? The reported line may be where the parser first noticed invalid indentation, not where the problem began. If the structure parses but the core reports an unsupported protocol, field, or value, check compatibility with your client and core. Don't guess at line-by-line edits to a remote subscription. For configuration types and conversion limits, see Clash Subscription Format Comparison.
Restore the update path, then confirm the configuration is actually enabled
If an update times out, keep the old configuration and check whether the current network can reach the subscription service without changing any authorization requirements. Some clients let you choose whether subscription downloads use a proxy. If updating depends on the same configuration that's already broken, you can get stuck in a loop: the configuration needs updating, but updating depends on that configuration. Where direct access is permitted, temporarily fetch the subscription directly, or use a known-working configuration to complete the update, then restore the original update settings. A browser test can help, but it doesn't prove the client used the same route or received the same response.
After the update completes, confirm the enabled indicator first. Then open the proxy group options and check that the group names and members you used before are still there. If a manual test succeeds but automatic updates keep failing, compare the trigger time, whether the update runs after sleep, whether it only runs on Wi-Fi, and whether the client logged a scheduled update failure. Repeat the baseline test in the foreground; there's no need to delete the configuration just because a background task didn't run. Finally, open a site that previously failed and check its outbound. If node timeouts persist, see Node timeouts instead of repeatedly reimporting the subscription.
Performance checks
Slow websites or low download speeds
Separate slow startup, low sustained throughput, and unstable connections
Waiting a long time for dozens of small requests on a webpage is different from a single file that starts downloading immediately but transfers slowly. For the first, check DNS lookup, connection setup, handshakes, and retries. For the second, check the access link and bandwidth and packet loss between the exit and destination. Another pattern is a fast start followed by pauses or disconnects; note when it stalls and how many bytes transferred instead of recording only an average speed. Node test latency doesn't include the full download, so using it to rank large-file speeds can be misleading.
Keep the device, network, destination URL, and file the same. Pause cloud sync, game updates, and other high-bandwidth tasks. Before testing, make sure you can control the selected proxy group, final outbound, and traffic-capture method. Test with the current settings first, then change just one node; if needed, retest the original node on the same network. Use the same file source and avoid comparing a cached response with a real download. For speed tests, avoid comparing two different services that automatically pick local data centers. A different data center means a different route, so you can't attribute the difference to the node alone.
Use timings for each stage instead of focusing on one total
You can run the command below in Windows PowerShell. On macOS or Linux, replace curl.exe with curl and NUL with /dev/null. Use the current mixed port and replace the URL with the same HTTPS site you're allowed to test. The example page is small and suitable only for comparing request times. To measure sustained throughput, use a moderately sized file you're authorized to download, and make sure the request isn't cut off by the 20-second limit.
curl.exe --proxy http://127.0.0.1:7897 --max-time 20 -sS -o NUL -w "status=%{http_code} connect=%{time_connect} tls=%{time_appconnect} first=%{time_starttransfer} total=%{time_total}\n" https://example.com/
These timing values are cumulative seconds from the start of the request. When you explicitly use a local HTTP proxy, connect mainly reflects the connection from the client to the local proxy, not the remote node latency; tls may include time spent establishing the proxy tunnel. Time to first byte also includes server processing, so it isn't a direct measure of DNS lookup time. If the response code isn't what you expected, address the error or redirect first; don't mistake a short error page for a performance improvement. A few runs can reveal occasional spikes, but don't repeatedly download the same large file without limit.
Make targeted changes based on the comparison
If throughput drops only in the evening, repeat the same test at another time to see whether access or exit congestion may be involved. If only one site is slow, keep the node unchanged and try a comparable destination, or keep the destination unchanged and try another outbound. If just one site is slow on the same route, changing all your rules won't help. If calls or long downloads drop intermittently with an automatic group, check whether the outbound changed at the time of the disconnect. If there's a clear link, temporarily pin a node to verify it. Don't assume the group's probe interval is the first thing to optimize.
If speeds drop only in TUN mode, first make sure you're comparing the same app and protocol request against system proxy mode. Browsers may use different transport methods on the two routes. If small pages work but large transfers repeatedly stall, check the virtual interface path and MTU, but don't copy a value from the internet without evidence. Record the current settings and reproduction steps, and leave defaults unchanged unless the evidence points to them. If you temporarily raised the log level, restore it to info after testing. Investigate local CPU or memory load only if resource use keeps rising with connection volume when the issue reproduces; not every slow connection is a client problem.
Domain resolution
DNS lookup fails or returns an unexpected address
Identify the resolver in use, then compare its answers
First identify the scope: does a system command fail to resolve the name, does one browser fail, or do only connections routed through Clash fail? System DNS, browser secure DNS, and mihomo's built-in DNS can all be active at once. Different answers for the same domain on these paths don't automatically mean any one configuration is wrong. Temporarily turning off secure DNS in the browser can help with comparison; restore the original setting afterward. For internal company domains, confirm which resolver your organization requires. Don't replace internal records with public DNS results.
The first command below uses the server selected by default in nslookup; its output shows the server address. The second explicitly queries a local listener and requires built-in DNS to be enabled in the current configuration and listening on 127.0.0.1:1053. It works with Windows versions of nslookup that support that option. On macOS and Linux with dig installed, you can use the third command. When substituting the failing domain, keep the query type the same. A successful lookup of a public domain doesn't prove that an internal domain should resolve the same way.
nslookup example.com
nslookup -port=1053 example.com 127.0.0.1
dig @127.0.0.1 -p 1053 example.com A
NXDOMAIN means the server says the name doesn't exist. Check the spelling and whether that server knows about the private domain. SERVFAIL means the server couldn't complete the lookup; compare the upstream response and client logs. If the request times out, check whether a DNS listener exists, whether the request reaches it, and whether the upstream is reachable. A system command's result reflects only the path it used; it doesn't tell you what every app received.
Understand Fake-IP and make exceptions only where real addresses are needed
In fake-ip enhanced mode, the core can return a synthetic address mapped to a domain, then recover the domain when processing a later connection. If you see an address in the 198.18.0.0/16 range, compare it with the configured fake-ip-range and traffic-capture method. Don't treat a synthetic address as a real server for connectivity tests. If an app receives a synthetic address but its later connection doesn't return to the core that knows the mapping, the connection may fail. Check the capture scope first, then decide whether a particular domain needs a real DNS response through fake-ip-filter.
This minimal DNS configuration snippet is for local testing and assumes the example upstream is reachable on your network. It doesn't include rules or a proxy, and it won't change your system DNS automatically. Merge it into an editable configuration copy; don't append a second top-level dns key to an existing file. If a client manages the remote subscription, use its supported override method and check the final configuration after overrides. Choose an internal resolver based on your actual network; the example upstream won't work in every environment.
dns:
enable: true
listen: 127.0.0.1:1053
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- 1.1.1.1
fake-ip-filter:
- "router.home.arpa"
Handle upstream reachability, exceptions, and cache separately
An exception list changes whether matching domains receive synthetic addresses; it can't create a correct record for a router hostname out of thin air. The name in the example resolves only if the upstream already knows that record. To use different resolvers for different domains, check nameserver-policy. If the core can't resolve a node server's hostname, also check proxy-server-nameserver. Avoid making the upstream needed to resolve node addresses depend on the very node that hasn't connected yet.
After making changes, reload the configuration and repeat both the lookup and a real connection using the same domain. Restart the test app or close its existing connections first; stale results may be cached in the system, app, or core. To compare with redir-host, keep the other fields unchanged and note which apps recover and whether rule matches change. If only one or two domains are affected, narrow the exception rather than replacing the entire DNS configuration. For how it works and where exceptions apply, see Choosing Between Fake-IP and Redir-Host.
App traffic capture
System proxy is enabled, but an app isn't using it
Check the system proxy address and client listener together
A system proxy provides settings for apps to read; it doesn't forward all traffic by itself. Note the mixed port and listener status in the client, then check which system proxy option is actually active: manual proxy, automatic configuration, or a setting managed by policy. If manual proxy is enabled, its address and port should match the current local listener. If startup reports that the port is already in use, an enabled-looking switch doesn't mean the running core owns that port. Use the explicit proxy command in No internet to test the listener, then test the app.
| System | Where to find it | What to check |
|---|---|---|
| Windows | Settings → Network & Internet → Proxy | Check whether manual proxy and automatic configuration are both set, and whether the app reads the current user's settings. |
| macOS | System Settings → Network → Current network service → Details → Proxies | Check whether the proxy is set for the active network service and where Web Proxy and Secure Web Proxy point. |
| Linux | Network proxy settings in your desktop environment | Check whether desktop apps use this setting and whether terminal sessions or services have separate environment variables. |
Compare browsers, terminal tools, and Windows apps separately
A browser is a good place to start with a clean comparison. Check proxy extensions, the browser's own network settings, automatic configuration scripts, and bypass lists. If permitted, temporarily disable extensions that change proxy settings, restart the browser, and test the same URL. Some browsers have their own proxy settings; others use the system proxy. If only short internal hostnames bypass the proxy, check whether the bypass rules intentionally exclude local addresses. Don't delete the entire LAN exception list just to get a connection to appear in the log.
Terminal tools often read environment variables or their own settings instead of automatically using the desktop proxy toggle. In PowerShell, first check the proxy variables for the current session with the command below, then test by explicitly specifying a proxy. The first command may display credentials embedded in an existing address; remove sensitive parts from the variable values before sharing them. If an explicit proxy works but the tool fails without one, check which variables the tool supports, whether it honors NO_PROXY, and whether it inherited stale settings from an older terminal session. Change only the tool or session you use to avoid unexpectedly proxying other commands.
Get-ChildItem Env: | Where-Object Name -Match '^(HTTP_PROXY|HTTPS_PROXY|ALL_PROXY|NO_PROXY)$'
curl.exe --proxy http://127.0.0.1:7897 --max-time 15 https://example.com/
On Windows, some container-isolated apps restrict loopback connections to the local machine. Consider a client-provided UWP loopback setting only if desktop browsers work, a particular app fails, and you've confirmed the issue involves loopback. Apply it only to that app rather than changing permissions in bulk. System services may instead use WinHTTP settings or their own network configuration, so browser success doesn't prove a service will work. For more comparisons, see Troubleshooting Browsers, Terminal Tools, and UWP Apps Separately.
Consider TUN only when you need broader traffic capture
Try TUN mode only if an app doesn't support an explicit proxy and you need to capture its traffic. Note the system proxy settings first; on a personal device, you can enable only TUN for comparison. Check whether the virtual interface was created, whether the logs show permission or routing errors, and whether another VPN is conflicting. Use the connection list to confirm that the app's new request reached the core, then check the matched rule. If it shows DIRECT, the request was handled as a direct connection; that doesn't mean TUN failed to capture it. Service mode and TUN settings vary by client. Get approval before changing a managed device, and don't disable the firewall or remove a workplace proxy just for one app.
Startup and recovery
Client closes unexpectedly, crashes, or the core won't start
First distinguish a closed window from a stopped core or failed reload
After closing the window, check the system tray or menu bar, then see whether the process and mixed port are still running. A client remaining in the tray isn't necessarily a crash. If the window opens but repeatedly reports that the core failed to start, keep the startup log and find the last normal entry and the first error. If the problem occurs only after switching subscriptions, keep your data and switch back to the last configuration that started successfully. This helps distinguish a configuration issue from a client that can't run, and is often faster than reinstalling.
If the app exits before a window appears, check the system logs. On Windows, look for an event at the time of reproduction under Event Viewer → Windows Logs → Application. On macOS, check the crash report in Console. On Linux, launch the installed program from a terminal and capture standard error; if it starts as a service, check that service's logs. Keep the app name, time, and a short error summary. Don't upload your entire user directory or unredacted diagnostic files.
Use the first error to identify a port, permission, or configuration issue
If you see address already in use, first find out whether the error refers to the mixed port, DNS port, or controller interface. The example below uses Windows and the mixed port to identify the listening process ID. If another legitimate program is using the port, its user should decide whether to close it. Alternatively, choose an unused port in the client settings and update any apps where you manually entered the proxy address. If the same client was started twice, try quitting the old instance normally from the system tray. Don't terminate an unknown process just because its name looks similar.
Get-NetTCPConnection -State Listen -LocalPort 7897 |
Select-Object LocalAddress, LocalPort, OwningProcess
If startup fails only when TUN is enabled, turn TUN off to confirm that ordinary startup works. Then check whether the service is installed, whether the permission prompt came from the current client, and whether the system allows virtual interfaces. If the startup log says the configuration file can't be read, check its path, current user, and access permissions. Don't make the whole directory writable by everyone. For a configuration parse error, keep the original and edit only a confirmed error in a copy. To check whether the current core supports the relevant fields, see How the mihomo Core Differs from Original Clash.
Recover in a clean environment without bringing the broken configuration back
Before reinstalling, find the configuration directory in the client if it's still usable, then back up subscription records, manual overrides, and custom configurations. Subscriptions may contain credentials, so store backups somewhere protected. If the client can start without loading its old data, first confirm that a blank configuration opens the window and starts the core, then restore items one at a time. If there is no such option, confirm the actual data directory and that all related processes have exited, then rename the old configuration directory so it remains available while the app creates new data. Don't delete the backup or restore old logs, cache, and all settings at once.
If you need a different desktop client, choose a package for your operating system on Client Downloads. If your platform offers Clash Plus, check that option first. To keep using Clash Verge Rev, select the matching architecture and release format. Switching clients is a comparison, not the first step in fixing a network problem. If a blank configuration also crashes, check the operating system requirements, architecture, and installation method. If the crash returns only after restoring a configuration, note the first error it triggers and then simplify the configuration. When checking common installation issues in FAQ, searching for the exact error is usually more useful than searching for “crash.”
Mobile connections
Android and iOS disconnections, network switching, and background issues
First check VPN status and traffic coverage in the foreground
Mobile clients usually capture traffic through the system VPN interface. A Connected status only means the system reports that the tunnel is up; it doesn't guarantee that every site is reachable. When enabling it for the first time, confirm that the system permission request came from the client you chose. Keep the client in the foreground, switch to a browser to make a new request, then check the log for the time and destination. If you have a work VPN, filtering app, or another proxy client installed, check which VPN the system has actually selected. On a personal device, you can pause other network tools to test one variable at a time. Keep a managed work VPN enabled as required by your organization.
If only one app fails, check the client's per-app routing list: in include mode, make sure the app hasn't been left out; in exclude mode, make sure it isn't excluded. Not every mobile client supports per-app settings, and similarly named features on Android don't necessarily apply to iOS. If local printing, casting, or device discovery fails, separately check whether you can connect using a known device address, whether only automatic discovery fails, and whether the app has permission to access the local network. Reaching a device by address but not finding it doesn't automatically point to a node issue.
Test lock-screen behavior separately from Wi-Fi and cellular switching
Stay on the same network. Make one request in the foreground, lock the screen briefly, then unlock it and immediately make a new request. Note whether the VPN is still connected, whether the client reconnected, and whether only the old connection dropped or new connections fail too. On Android, check the app's battery settings, background data, and data-saver restrictions. Menu labels vary by manufacturer, so adjust only settings needed for a client that must run continuously. If Always-on VPN is enabled, also check whether Block connections without VPN is on. If the configuration blocks traffic outside the tunnel, losing access while it reconnects may be expected behavior, not a failed node.
On iOS, check the current VPN configuration in system settings, then look in the client for on-demand connection options and their triggers. Don't use the Background App Refresh toggle alone to judge whether a VPN extension is working; the VPN extension and foreground app refresh are separate mechanisms. If authorization succeeds at startup but the VPN needs to be manually restored after every lock, note how long the screen was locked, whether the client shows a reason for stopping, and whether Low Power Mode was enabled. Consider changing a setting only if it consistently correlates with the issue.
Test network switching separately: keep the screen on, confirm a request works over Wi-Fi, then switch to cellular and check both existing connections and new requests. An existing TCP session can't necessarily survive an IP address change, but that doesn't mean a new connection can't be established. If only cellular fails, check the app's cellular data permission and whether the client is set to update only over Wi-Fi. If only one Wi-Fi network fails, confirm that you've signed in through its captive portal, then compare DNS and node requests. Use the same configuration and website for each test so you don't mix a network change with a node change.
Restore settings based on the trigger and keep a minimal record of how to reproduce the issue
Check the app and installation source you use against the Android client or iOS client guides. Using the same subscription on mobile and desktop doesn't mean the clients run under the same conditions; group selections, LAN exceptions, DNS, and system traffic capture may all differ. When comparing with desktop, use the same destination, outbound, and network. Desktop latency figures can't replace testing an actual request on the phone.
After troubleshooting, verify at least one foreground request, one new connection after unlocking, and one test in the network-switching direction that previously failed. If the issue persists, record the platform, client name, network, lock or switching action, VPN status, and first error in order. If the tunnel is still up but the log shows a resolution failure, see DNS issues. If the client log shows a connection was received but the outbound timed out, see Node timeouts. A repeatable test makes the issue easier to hand off than repeatedly deleting the system VPN configuration, and lets you restore the original settings.