Troubleshooting Guide / Diagnose an Issue

Clash Troubleshooting Guide

Use this page to troubleshoot by symptom when the client is installed but your network or configuration isn’t working as expected. If you haven’t imported a subscription or made your first connection yet, start with the Getting Started guide, then return here and choose the relevant symptom. Settings vary by client, so the steps below refer to features rather than fixed menu paths.

Before you begin, note the client and core names, your current network, proxy mode, and when the issue started. Change one setting at a time, and keep a copy of any configuration you may need to restore. Retest with the same app and destination each time; otherwise, it’s hard to tell which change made a difference.

No Internet: Restore Basic Connectivity First

Tell a Network Outage from a Client Issue

Save any work in progress, then turn off the system proxy and TUN in the client. Quit the client and check your operating system’s proxy settings. If the system still points to a local proxy that’s no longer running, your browser will send requests to a service that isn’t there. Quitting the client doesn’t necessarily restore the previous settings. Undo only the changes made for this test. If your device is managed by your organization, don’t overwrite its existing proxy script or certificates. On the same device, try opening a site that normally works without a proxy, then try it from another device on the same network. If neither device can connect, check network access, Wi-Fi signal, and any captive portal before trying different nodes. If only the current device is affected, check for another active VPN, leftover manual proxy settings, or a recent switch from sleep or another Wi-Fi network.

Verify the Local Proxy with an Explicit Request

Once a direct connection works, start only the client and a configuration you’ve verified recently. Leave the system proxy and TUN off for now. Find the mixed port in settings and make sure it matches the example; if not, replace the port number below. The commands compare a direct request with one explicitly sent through the local proxy. In Windows PowerShell, use curl.exe to avoid the same-named alias. Sending the response body to a null device makes cross-platform comparison harder, so inspect the response headers and any error messages instead. The goal is to compare the two paths, not to judge node quality from a single response.

curl -I --noproxy "*" --max-time 12 https://example.com/
curl -I --noproxy localhost --proxy http://127.0.0.1:7897 --max-time 12 https://example.com/

If the second command can’t connect to the local port, check whether the core actually started, whether it’s listening on a loopback address, and whether another instance is using that port. If the log shows the destination but the failure happens after the outbound connection begins, the local proxy received the request; check the policy group, selected node, and domain resolution instead. If the site returns a status code indicating that it doesn’t support HEAD requests, try a regular request and use the connection log to confirm that traffic reached the client. An error in a browser tab alone can’t tell you whether the local port refused the connection or the remote connection failed. Likewise, a client window that says it’s running doesn’t prove that a port is listening.

Restore Routing and Traffic Capture One Mode at a Time

After an explicit proxy request succeeds, restore one traffic-capture mode at a time. For example, enable the system proxy and test with a browser that follows system settings before deciding whether you need TUN. If enabling a mode takes the whole system offline again, undo that change and check whether the explicit request still works. If it fails too, check whether the mode changed the core’s own outbound route or is competing for the default route with another virtual network adapter. If only local network devices are unreachable, first check whether known local addresses, such as a printer or router admin page, work directly. Don’t treat a local network access issue and a public internet connectivity issue as the same problem.

If only a few sites are affected, use the connections panel to check the requested domain, matched rule, and actual outbound route. A domain may involve separate login, static asset, and API requests; seeing the homepage doesn’t mean the whole site is working. If the wrong mode or policy group was selected, restore the original rule mode and a known-working outbound. Don’t mask a routing issue by leaving global mode on permanently. After fixing it, retest one destination that should connect directly and one that should use the proxy, then restart the client and check again. If the issue returns only after a restart, compare the startup configuration and automatic traffic-capture settings with the ones you just verified manually.

Node Timeouts: Separate Connection Failures from Probe Failures

Identify Which Request Timed Out

A latency test usually sends a request through a node to a configured probe URL. A timeout means that this probe didn’t complete as expected within the allotted time; it doesn’t mean the node is permanently unavailable. Note the probe URL, test time, and network, then make a real page request through the same node. In the connections panel, check the request’s policy group and final outbound. Manually selecting a node doesn’t guarantee that the destination matched that group; an automatic group may also switch nodes between requests. If only the probe fails while normal traffic works, check whether the target service restricts probes, redirects the request, or returns a status the test doesn’t accept. If the probe succeeds but normal traffic fails, troubleshoot the actual connection instead. A successful probe doesn’t prove that the node works for your intended traffic.

Compare Nodes in the Same Group, Other Groups, and Other Networks

On the same network, first test another recently working node in the same group, then compare it with a node that doesn’t share the same entry point. If only one node fails, check that the configuration is current and that its recorded hostname and port match the latest service details. Nodes with similar names may share an entry point—or may have nothing in common. Don’t infer the scope of an issue from the display name alone. If all nodes fail while direct access works, check the device clock, node hostname resolution, and whether the current network allows the configured transport. If switching to another network you’re authorized to use fixes the issue, note what differs between the networks and test each separately. Don’t delete the configuration or reinstall the client first.

Troubleshoot Based on the Failure Stage in the Logs

If the log reports a DNS resolution failure, check whether the node server’s hostname resolves through the expected path. A connection refused error usually means the destination isn’t listening, the port is wrong, or a device along the route actively rejected the connection. That’s different from a timeout, where no response arrives before the deadline. For certificate or handshake errors, check the device clock, server name, transport settings, and whether the correct configuration is in use. Don’t bypass certificate verification just to make the connection appear to work. If the same node fails intermittently, note the failure stage each time: an initial resolution failure and a read timeout after connection require different troubleshooting.

Reduce Probe Interference Before Adjusting Timeouts

Automatic policy groups may run probes on a schedule, while the client interface may also launch batch tests. Concurrent probes can amplify temporary congestion and make intermittent failures more likely when a mobile network changes. While troubleshooting, pause unnecessary batch tests, pin one node, and record the first request separately from results after the connection is reused. If working requests regularly take just longer than the configured limit, and the logs confirm resolution and handshake are normal, consider increasing the probe timeout for that policy group slightly. A longer timeout only changes when a request is marked as failed; it won’t make the connection faster. Increasing both the interval and timeout can also delay detection of a real failure, so test each change separately.

When retesting, include at least one new connection and one real request to a known destination. If only one node keeps failing, temporarily remove it from manual selection and tell your configuration provider when it failed, where the failure occurred, which nodes you compared it with, and what type of network you were using. Don’t share a full subscription URL, credentials, or unredacted logs. If several nodes fail only with the same probe URL but behave consistently with a normal destination, record the probe conditions as the likely issue. For more on the difference between probe results and throughput, see How Latency Tests Work.

Subscription Failures: Separate Fetching, Parsing, and Applying

Keep a Working Configuration and Try One Update

If your current configuration still works, don’t delete the subscription. Save a copy of the current configuration and any local overrides, and note which configuration is active. In the client’s configuration or subscription page, manually update the affected entry once and note the error. If a manual update works but scheduled updates fail, check whether the device sleeps, restricts background activity, or uses an unsuitable update interval. If manual updates fail too, troubleshoot downloading and parsing. Trim any copied URL and make sure no ellipsis, line break, or extra punctuation came along from a chat message. Subscription URLs often grant access by themselves. When noting the error, keep only the domain and error type; don’t paste the full link into a screenshot, search box, or online conversion service.

Use the Response to Check Whether the Request Reached the Right Service

ResultCheck first
Connection timed out or hostname couldn’t be resolvedThe network used for the update request, DNS resolution, and whether the current outbound route works
Certificate verification failedSystem clock, hostname in the URL, captive portal, and trust settings
401 / 403Access permissions, URL status, and server-side restrictions
404 / 410Whether the original URL has moved or been revoked, and whether you need to copy it again from its source
429Follow the server’s guidance and stop retrying repeatedly
200 but import failsWhether the response is a configuration, login page, or notice page

A client’s subscription update request doesn’t necessarily use the system proxy. Some clients have a separate download proxy setting; others send requests through the currently running core. First find out which path this subscription uses. If updates rely on a node in an old configuration and that node has stopped working, the client may start successfully while subscription refreshes fail. If the service allows it, try fetching the configuration over a permitted network and with an approved method, then import the local file to test. You can also switch to a verified update path if the client supports one. Opening the service’s homepage in a browser only confirms that the homepage is reachable; it doesn’t prove that a subscription request with access parameters will succeed. A browser may also use an existing login session, producing a different result from the client.

Check the Response Format and Fields Supported by the Current Core

Once a response arrives, determine whether it’s a complete configuration, a node list, a format for another client, or a web page. If the client can save the raw response, inspect it locally rather than uploading it to an external service. In YAML, the line reported by the parser is where it detected the problem, not necessarily where the error began. Check the indentation, list items, and matching quotes in the preceding section. If the file loads but the core won’t start, check that referenced policy groups exist, rules point to valid groups, and the current core supports those fields. If the problem began after an update, compare the old and new files to tell a change in the remote template from a conflict introduced by a local override.

Make Sure the New Configuration Is Active

After an update reports success, check the configuration’s last-updated time, active status, and reload logs for errors. Some clients save the new file but keep using the old configuration if the core rejects the updated content. Select the intended configuration, then check the connections panel to confirm that traffic is using the expected policy group. If a manual override changes the same field, the remote update may succeed while the running value stays unchanged. Check the order in which overrides are applied instead of repeatedly refreshing. Keep the old configuration until retesting is complete. If you need help from the service provider, say whether the failure happened while fetching, parsing, or applying the configuration, and share a log excerpt with URL parameters removed. For a normal import, see the Getting Started guide; there’s no need to rebuild the entire setup while troubleshooting.

Slow Speeds: Separate Initial Response, Throughput, and App Limits

Set a Baseline Under Consistent Conditions

First, break “slow” into three repeatable symptoms: a page takes too long to respond, a download starts but never reaches a steady rate, or an established audio or video stream keeps stalling. Note the app, destination, test time, and network, and stop background sync and other speed tests. Choose a file you’re authorized to access and can download repeatedly. Change only one condition—traffic-capture mode or node—per run. Use the same destination for direct and proxied tests. If direct access to that destination isn’t possible, use it only to compare proxy paths; don’t compare it with a different download site’s direct speed. Also account for browser and server caching: check that the app is downloading the file again rather than finishing immediately from disk.

Read Connection Time and Transfer Time Separately

You can use the same explicit proxy from the command line to compare time to first byte, total time, and average download speed across repeated requests. The example below uses a small page to show the output; it’s too small to measure maximum throughput. For a large-file test, choose a resource you own or are authorized to test, and set a time limit long enough for a meaningful run. In PowerShell, run curl.exe and replace the output target /dev/null with NUL. If a test is interrupted by the time limit, mark it as a timeout rather than averaging it with completed downloads.

curl --noproxy localhost --proxy http://127.0.0.1:7897 --max-time 20 -sS -o /dev/null -w 'http=%{http_code} first=%{time_starttransfer}s total=%{time_total}s rate=%{speed_download}B/s\n' https://example.com/

If the first byte takes a long time to arrive but transfer is steady afterward, focus on resolution, connection setup, the handshake, and server response time. This metric includes several setup stages; it isn’t simply a node’s round-trip time. If the first byte arrives quickly but transfer slows down, check whether sync is using up your home network’s upload capacity, whether the problem occurs only at certain times or with certain destinations, and whether the server limits single connections. If only a video app is affected, also consider adaptive bitrate, an empty buffer, or background decoding load. Command-line average speed smooths over short-term fluctuations; it can’t replace playback diagnostics or show whether a real-time call is stable.

Compare Traffic-Capture Modes and Actual Outbound Routes

If explicit proxy requests are fast but the same destination slows down under TUN, check which rules matched and whether TUN is capturing extra background traffic. Check whether another virtual network adapter is running and whether only a particular app protocol is affected. If small requests work but large ones stall, check the maximum transmission unit along the virtual adapter and upstream network path before applying a value you found online. Record the original value before changing a setting, make one change at a time, and retest both large downloads and everyday small requests. If browser and command-line results differ, first confirm that they reach the same resource. Caching, redirects, and protocol negotiation can all change the path.

Check That the Fix Didn’t Move the Problem

If pinning a node prevents brief interruptions caused by an automatic group switching too often, then adjust the group’s switching conditions. Don’t sort nodes by latency alone. If switching routes improves downloads but real-time apps still stutter, test both types of traffic separately and choose an appropriate outbound for each in the rules. Compare results at different times too; a single faster test may simply mean congestion eased. Run several tests with the same app, noting first-byte time, transfer stability, and actual outbound route before and after each change. Keep the change only if your normal use remains consistently better and direct access still works as expected.

DNS Issues: Find Out Which Resolver Handles Each Domain

Identify Where the Resolution Failure Occurs

Check the destination hostname, the node server’s hostname, and the hostname used by any encrypted DNS service separately. Each may be resolved through a different path. A browser’s “address not found” error doesn’t prove that the system resolver is failing: the browser may use its own secure DNS, or the proxy may pass the destination hostname to the core or outbound server for resolution. First note which app and hostname fail, then use a system DNS tool to get a comparison result. nslookup only shows the result from the resolver path used by that command. It doesn’t tell you what the browser cache, encrypted DNS, or client’s built-in resolver returned. If the system tool succeeds but the proxied path fails, check the client’s DNS logs and connection records instead of immediately switching system DNS providers.

nslookup example.com

Check the Failed Hostname and the DNS Response

If resolution times out, check whether the service is reachable and whether a captive portal is blocking access. If the response says the name doesn’t exist, check the spelling and any search suffix—especially for short hostnames on a company network. If an address is returned but the request still fails, check address families separately: the device may have an IPv6 address without a working IPv6 route on the current network. Or the destination may resolve correctly while a rule sends traffic to an outbound that can’t reach that network. Different resolvers returning different public IP addresses isn’t, by itself, evidence of a problem; content delivery and local caching can affect the result. Compare whether the same error occurs consistently under the same resolution conditions, and whether the returned address is expected for that network.

Test the Core’s Resolver with a Minimal Configuration

This mihomo configuration snippet is for a short, controlled comparison. It enables the built-in DNS resolver and listens on a specified port at the local loopback address; it doesn’t change the operating system’s resolver. If you use it as a temporary configuration, don’t define a second top-level dns section in the same file. The example uses a public DNS resolver, so queries will be sent to that service. On managed networks or in environments where external DNS isn’t allowed, use an approved upstream instead. redir-host lets you observe the real address returned for this test; don’t replace an existing Fake IP setup with it without comparing the results. If the local port is already in use, change it in both the configuration and the test command.

dns:
  enable: true
  listen: 127.0.0.1:1053
  enhanced-mode: redir-host
  nameserver:
    - 1.1.1.1
dig @127.0.0.1 -p 1053 example.com A
dig @127.0.0.1 -p 1053 example.com AAAA

If dig is available, use it to query the listener above. If the listener responds but the system or app still fails, the request may not be reaching that listener, or the active configuration may use a different resolution policy. If the listener also times out, check that the core loaded the snippet, the upstream is reachable, and traffic from the core to the upstream isn’t being routed back through its own policy. A hostname-based encrypted DNS endpoint must itself be resolved first. If node hostname resolution and the DNS endpoint depend on each other, check the startup resolution path so the core doesn’t need an outbound route that isn’t available yet.

Test Public Domains, Private Domains, and Caches Separately

Once service is restored, test a regular public hostname, then a private hostname you’re authorized to access. Private hostnames should use the resolver for the relevant network; don’t send internal queries to a public resolver just to fix public lookups. With Fake IP, a synthetic address may be expected. Check that subsequent traffic returns to the core that created the mapping. If only a few local network apps are incompatible, add exceptions for the specific confirmed hostnames. After changing the configuration, create a new test connection and clear any affected cache layer if needed, then check the resolution result and matched rule. Reloading the page alone doesn’t prove that the app has stopped using an old connection or cached result.

System Proxy Not Working: Check Settings and App Routing

Compare the Client’s Settings with the System’s Actual Proxy Values

First, check the client’s mixed port and listening address. Then open your current operating system’s proxy settings and compare the effective values. An enabled toggle only tells you what the client interface records. Apps may bypass the client if the system still has an old port, uses another automatic configuration script, or the active network service doesn’t use that proxy setting. The table below shows example locations; names vary by OS version and desktop environment. During testing, inspect the current values without removing settings managed by your organization. If you can’t change a setting or it reverts after a restart, note the effective value and contact your device administrator.

PlatformExample locationWhat to check
WindowsSettings → Network & Internet → ProxyManual proxy, setup script; system services may use WinHTTP separately
macOSSystem Settings → Network → Current Service → Details → ProxiesProtocols, address, port, and bypass list for the active network service
LinuxDesktop network settings or app preferencesWhich traffic uses the desktop proxy versus terminal environment variables

Use Connection Records to Tell Two Types of Failure Apart

With a browser that follows system proxy settings, make a new request and check whether the destination appears in the connections panel. If there’s no record, rule out caching, reused connections, and the browser’s own proxy settings, then check whether the destination is in the system proxy bypass list. If the request appears, check whether it used the expected outbound. A rule can send traffic directly even though the app’s request passed through the client. In that case, an unchanged public IP doesn’t mean the system proxy is off. Conversely, a changed public IP isn’t conclusive: your ISP’s exit point, another proxy, or a remote work environment may affect the result.

Choose a Traffic-Capture Method That Matches the App’s Network Stack

Desktop browsers, system services, and command-line tools may use different proxy settings. Terminal tools often read proxy environment variables from the process that launched them; enabling the desktop proxy won’t add variables to a terminal that’s already running. On Windows, run the read-only command below to check a common WinHTTP system proxy configuration. It doesn’t show what every process actually uses, and it can’t prove that a browser isn’t being captured. If a tool has its own proxy setting, use its documentation to enter the local address and port, then retest before changing user- or process-level settings.

netsh winhttp show proxy

The system proxy doesn’t automatically capture every app or type of traffic. For apps that don’t use system settings, use the proxy option provided by the app where possible. If you need route-based capture, assess TUN permissions, network adapters, and routing rules first. Don’t enable several capture modes and change an app’s own proxy settings at the same time; that makes it hard to trace a request’s path. If you suspect the system proxy wasn’t cleared, turn it off normally in the client first, then check whether the system settings returned to their previous values. Force-quitting or a crash may skip cleanup. Restore only the changes made for this test, and don’t remove an existing automatic configuration script.

Retest After Reconnecting and Restarting

Test in two rounds after a fix. First, close and reopen the affected app and confirm that a new connection reaches the client. Then switch networks or, if appropriate, restart the system and confirm that startup, the system proxy, and the intended configuration haven’t been overwritten by old values. Avoid starting another client at login if it also changes proxy settings. If only one app is affected, you don’t need to change routing for the whole device. For common settings, see the FAQ. To understand traffic-capture scope and virtual network adapters, read the TUN Mode Guide.

Client Crashes: Isolate the UI, Core, or Service

Capture Evidence Before the Client Exits

First determine whether the interface closed, the core exited, or a TUN-related service failed to start. If the window disappears but the port is still listening, check whether closing the window minimized the app to the tray or left a background process running. If the window remains open but the local port stops working, check the core’s exit logs. Don’t uninstall or clear data as soon as you spot a problem. Note the sequence from clicking Start to the failure, and save client logs and system error records from before and after it. On Windows, search the Application log in Event Viewer by time; on macOS, check the crash report in Console; on Linux, launch the installed client from a terminal to see error output.

If you use service mode, compare its logs at the same time. A startup failure message may simply mean the interface received a signal that the core exited; it doesn’t necessarily mean the interface itself crashed. Conversely, if the interface closes while refreshing a list but the background proxy still handles requests, don’t reset the network adapter first. Use the logs to establish the order of events. If a configuration error, occupied port, or permission issue appears before a generic exit message, address that specific error first. Before sharing logs, remove subscription URLs, access credentials, internal hostnames, and file paths that could identify you. When troubleshooting a shared folder, make sure you don’t expose other users’ data.

Isolate the Issue with a Minimal Configuration

Quit other clients of the same type completely and make sure no other instance is managing the same port or proxy settings. Start with a configuration that has no subscription, overrides, or TUN settings. If the client can import local YAML, use the snippet below to test rule loading and the local port. It contains only a direct-connection rule and doesn’t provide remote proxy access. If the port is occupied, identify what’s using it first. If it’s a service you need to keep, choose another local port for the test rather than terminating a system process. If the client’s saved interface settings override the YAML port, use the actual listening port when interpreting the results.

mixed-port: 7897
allow-lan: false
mode: rule
log-level: info
rules:
  - MATCH,DIRECT

If the minimal configuration works, restore the original configuration, overrides, TUN, and startup settings one at a time, in that order. After each change, quit and restart the client, then check whether the local port responds. If only a remote configuration triggers the issue, narrow it down to newly added entries or rule providers. If the issue occurs only when loading network resources, determine whether the app is waiting temporarily or the process has exited. If enabling TUN triggers the problem, check system permissions for virtual adapters and services, and whether another client is holding the resource. Don’t run the entire interface with elevated privileges long-term to work around a permission error for a single service.

Check Installation, Architecture, and Data Directory Differences

If even the minimal configuration won’t start, check the operating system, processor architecture, installation format, and device policies. If the issue began after an update, first check whether the old and new installations share a data directory or both registered a background service. If the client supports separate profiles, test in an isolated one. If you need to reset it, make a backup and follow the client’s documentation instead of deleting its directory outright. To replace the installer, visit the client download page and choose the right platform. If your platform offers a Clash Plus download, check that option first. Reinstalling only helps when the installer, architecture, or a dependency is actually at fault; reusing a broken data directory may reproduce the issue. After fixing it, verify startup, configuration reload, and normal shutdown, then check that exiting the client clears the system proxy settings changed for this test.

Mobile Troubleshooting: Permissions, Background Activity, and Network Changes

Confirm Which Client Is Managing the System Connection

Keep the client in the foreground. First confirm that the current network works with the proxy off, then connect from the client and watch for a system prompt to add or enable a VPN. Installing the app, importing a subscription, and creating a system tunnel are separate steps. A configuration shown in the interface doesn’t prove that traffic is being captured, and a VPN status icon only shows that a tunnel exists—not that a request used the expected outbound. If the phone already has a work profile, an always-on VPN, or a filtering app that uses the same VPN interface, identify the active one in system settings. Don’t remove managed profiles or apps. On a personal device, note the original activation order before testing so you can restore it afterward.

Android: Tell Background Restrictions from Blocking Policies

If Android works in the foreground but disconnects after the screen has been locked for a while, test under the same network conditions: visit a destination with the client open, lock the screen, then unlock it and request the same destination again. Check whether the client restarted and whether the VPN status disappeared. If the system stopped the process, check the client’s battery settings, background data restrictions, and any device-specific background management options. Adjust only the affected app; don’t disable system-wide battery saving. If the VPN still appears active but all requests fail, check whether Always-on VPN and Block connections without VPN are enabled. The latter can temporarily cut off all device connectivity if the tunnel drops. That’s a system-level blocking policy, not a node timeout.

Some Android clients can capture traffic on a per-app basis. If only one app fails, check whether it’s included in or excluded from the current app list. Pay particular attention to work profiles, cloned apps, and apps with the same name in a personal profile; they’re separate instances. After changing the list, reconnect and make a new request from the affected app. If the connections panel has no record, check the capture scope rather than changing node settings. If the device still can’t connect after you turn off the client, restore any always-on or blocking settings changed for the test, then compare with the network that worked before.

iOS: Check Configuration Status and On-Demand Connections

On iOS, open the VPN section in Settings to see which configuration is selected, then compare it with the connection status in Clash Plus. If it reconnects automatically shortly after you disconnect, check whether the configuration uses on-demand connections or is controlled by a management policy. Don’t mistake an automatic reconnect for a broken interface toggle. If the connection drops as soon as it starts, retest with a verified configuration and a known destination, and check whether iOS or the client reports an error for that session. If it fails only after the screen locks, note how long it was locked, whether Low Power Mode was on, and whether the network changed before the issue. For installation and subscription import steps, see Install an iPhone Client and Import a Subscription.

Retest on Wi-Fi and Cellular Separately

First test direct and proxied connections on Wi-Fi. Then switch to cellular data manually and make the same app open a new connection; don’t treat a request that was already in progress before the switch as a new result. If cellular fails but Wi-Fi works, check that both the affected app and the client are allowed to use cellular data, then check node resolution and outbound routing. If Wi-Fi fails, check whether sign-in is required and whether the issue occurs only at a particular access point. A network change alters addresses and routes, so an existing long-lived connection may drop. Treat the issue as unresolved only if a new connection can’t recover—not because one retry failed during the switch. Finally, repeat the foreground, screen-lock recovery, and network-switch tests, and note the shortest steps that reproduce the problem. Keep only changes that passed retesting, and restore any temporary system settings.