Clash Troubleshooting
Can’t import a subscription, connect to a node, or get a specific app to use the proxy? Find the issue by symptom. First check where the traffic stops, then adjust the relevant setting.
Basics
Understand the client, core, and config, then choose how traffic enters the client and which outbound mode to use.
What’s the difference between a Clash client, the mihomo core, and a subscription?
A client provides the interface for importing configs, switching policies, and viewing connections. The mihomo core reads the config, handles traffic, and applies routing rules. A subscription is one way to retrieve or update a config. If the proxy list is still empty after installing a client, check the config page to make sure a valid config has been imported and enabled. If the config loads but a field has no effect, check which core the client is using and whether it supports that field.
Which mode should you use: Rule, Global, or Direct?
Use Rule mode for everyday traffic so the core selects an outbound based on your rules. If a site behaves unexpectedly, briefly switch to Global mode and select a known working outbound to see whether the issue is caused by a rule or proxy group. Direct mode sends requests handled by the core through a direct outbound, but it does not turn off the system proxy or TUN. When testing is done, switch back to your original mode and check the connection log to confirm the outbound actually used.
What’s the difference between the system proxy and TUN mode?
The system proxy hands requests to the client through your operating system’s proxy settings, so it only affects apps that honor those settings. TUN uses a virtual network interface and routing to capture traffic. It can cover some apps that ignore the system proxy, but its reach still depends on routes, exclusions, and system permissions. To troubleshoot, enable only one entry method at a time, send a new request from the same app, then check the Connections page. This helps identify which path the request took.
Why hasn’t my active config changed after a successful subscription update?
A successful update means the client refreshed a subscription entry; it doesn’t necessarily mean the core is using the new config. Go back to the config list and confirm the updated entry is the one currently selected. If the client separates saving from applying, apply the config again and check the load log. Existing connections may still use the previous outbound, so test with a new request. If node names have changed, also check which member is selected in the proxy group.
Setup
Get the subscription downloading and the config loading first, then handle virtual interface permissions and local ports.
Getting a format error when importing a subscription? What should you check?
First, make sure you copied a subscription URL for Clash or mihomo—not the provider’s login page—and that it contains no extra spaces or line breaks. If the error occurs while downloading, check the log for a failed request or HTTP status code. If the download succeeds but parsing fails, use the line number in the log to check YAML indentation, field types, and proxy group references. Before sharing a screenshot, redact the full subscription URL, query parameters, and node credentials.
Subscription expired or returning 401, 403, or 404? Here’s what to do.
Check your subscription provider’s dashboard for the service expiration date, current URL, and access requirements. A 401 usually points to an authentication issue, 403 means the server refused the request, and 404 may mean the URL path has changed; check with your provider for the exact cause. If the request times out instead of returning a status code, first check whether the subscription domain is reachable on your current network. Keep your working config until the new subscription imports and loads successfully, then remove the old entry.
Not enough permissions to enable TUN? Try these steps.
Check whether the system displayed a VPN or network extension permission prompt and whether you approved it. If the desktop client requires service mode to be installed or enabled, follow its instructions, then check the log to confirm the virtual interface was created and routes were set successfully. You can also temporarily quit other VPNs that manage routes and test TUN on its own. If your organization-managed device restricts this permission, ask your administrator which settings are allowed.
The core says a port is in use. What else needs updating after changing it?
Check the startup log to see whether the port in use is for HTTP, SOCKS, a mixed proxy, or the controller API. Then check for another client instance or an old process still listening on that port. If you changed a proxy listening port, update any proxy address entered manually in apps. Also update the system proxy port on devices where it was set manually. If you changed the controller API port, update the address used by the control panel—not the browser’s proxy port.
Tips & usage
After changing rules or overrides, use a new connection to confirm the matched rule and outbound. Don’t rely only on the selected state shown on the proxy page.
Where should you put custom Clash rules?
Rules are usually checked from top to bottom, and the first match determines the outbound. Put rules for specific domains before broader rules that might match them first, and keep the MATCH fallback at the end. After editing, reapply the config, start a new connection, and check the matched rule and final outbound in the connection details. If a rule points to a proxy group, make sure the group name matches the config and its currently selected member is the one you expect.
Node speed test passes, but apps still can’t connect. Why?
A successful speed test only shows that the test address received a response through that node. It doesn’t mean the app is using the same node or that the target site is reachable. Open the Connections page to check whether the app’s new request reaches the core, then verify the matched rule, proxy group, and final outbound. If the log shows the request went direct, check the routing rules first. If the right outbound was selected but the target still fails, use the log to distinguish DNS resolution, connection, and certificate errors.
How can you keep custom rules and DNS settings when updating a subscription?
Don’t keep long-term changes only in the raw config generated by a subscription; an update may overwrite them. If your client supports overrides, save local rules and DNS settings separately and attach them to the subscription you actually use. Override lists may be appended, placed first, or replace an entire section, depending on the client. After updating, check the effective config—especially that custom rules still appear before the fallback and key DNS fields are still present.
How do you use connection records and logs to trace the same failure?
Note the affected app, destination domain, and time of the failure, then reproduce it. First, find the request on the Connections page and check its rule and outbound; then compare the log entries from the same time. If the request fails before a connection is established, it may not appear on the Connections page, so also check the log for DNS resolution or dial errors. If neither shows anything, check whether the traffic is reaching the core. Before sharing logs, remove subscription URLs, credentials, and private network details you don’t need to disclose.
Troubleshooting
First determine whether the issue affects one node, one app, or the whole device. Change one setting at a time and retest with the same request.
How can you tell whether one node or all nodes are timing out?
Test the affected node and another usually reliable node against the same test address. If only one or a few nodes time out, check their connection errors and confirm the subscription is up to date. If all nodes time out, check your internet connection, test address, and active config first. Try another known-reachable test address to rule out an unavailable test site. If switching networks fixes the issue, check DNS resolution and connectivity on your original network against the logs.
System proxy is on, but some apps bypass it. Why?
Check the proxy address and port actually saved in your operating system and make sure they match the client’s listening settings. Then check the system proxy bypass list. Restart the app or make a new request and look for it on the client’s Connections page. If browser requests appear but the app’s don’t, check whether the app has its own proxy settings. If it doesn’t honor the system proxy, decide whether to use TUN based on your system permissions and the traffic you need to capture.
Browser works on Windows, but UWP apps can’t connect to the local proxy. Why?
Some UWP apps run in an AppContainer, where loopback restrictions may prevent access to a local proxy at 127.0.0.1. First, confirm the issue affects only specific apps and that they really use the local proxy. If the client includes a loopback exemption tool, select only the apps you need, provided your device policy allows it. Restart the app and test again. If the request already appears on the Connections page, check its rule and outbound instead of attributing the issue to loopback restrictions.
No internet after closing Clash? How to restore your network settings.
If you can still open the client, turn off TUN and the system proxy, then exit normally. If the client is already closed, check your operating system’s proxy settings for a local proxy address, port, or auto-configuration script that may have been left behind. Restore those settings to their previous state, but keep any configuration required by your organization. Then disconnect and reconnect to the network and test in your browser. If the issue persists, check whether you also changed DNS settings manually.