MIHOMO / TROUBLESHOOTING

Clash Meta Troubleshooting Guide

If you’re installing the client for the first time or haven’t successfully imported a configuration yet, follow the user guide to import a configuration, choose a mode and verify connectivity. This guide starts with the symptoms you’ve observed: identify which layer is failing, change the relevant setting, then test again. Page names follow common client terminology; exact locations vary by client.

Troubleshooting / Whole device or one app

No internet access: restore basic connectivity

Separate network outages from client traffic interception issues

Note the last action before the problem started, such as waking from sleep, switching Wi-Fi networks, applying a configuration or enabling TUN. Try two HTTPS URLs that normally work and don’t depend on each other in the same browser, then test an internet-connected app that doesn’t rely on the browser. If only one URL fails, don’t assume the whole device is offline: a certificate warning, a service maintenance page and a browser timeout point to different issues. If only one app fails, check whether it follows the system proxy, has its own network settings or is excluded from interception on mobile before resetting the device’s network settings.

Before testing a direct connection, turn off the system proxy and TUN in the client, then quit the client. On desktop, open the system proxy settings and check for leftover proxy addresses pointing to localhost or auto-configuration scripts left by a personal setup. On mobile, check that the system VPN is disconnected. On managed devices, note any administrator-configured proxy or VPN, but don’t remove it. Retry the same request on the same network to the same URL; don’t mistake a browser’s cached page for a successful connection. If it still fails, check that Wi-Fi assigned an IP address and default gateway, then ask whether another device on the same network can reach the same URL.

Restore connectivity layer by layer, from network access to rule matching

Hotel, campus and guest networks may require web-based sign-in even after your device shows it’s connected. If permitted, complete authentication through the network’s official portal before restarting the client. If the browser warns that a certificate isn’t trusted, don’t bypass verification to sign in. If only this device is affected, disconnect and reconnect to the network, then check the system time and time zone. If other devices are affected too, investigate the access point or network service first. Testing on another authorized network can help distinguish a device configuration issue from a problem with the original network. Note when you switch networks, and don’t change rules or nodes at the same time.

Once the direct connection works, reopen the client and confirm that the current configuration is applied and the logs show no configuration parsing or port-listener errors. On desktop, enable only the system proxy first and test in a browser that supports it. Test TUN separately only if you need to intercept apps that don’t use proxy settings. Each time you enable an interception method, look for the same request in Connections or Logs. No new connection usually points to the interception entry point; if a connection is logged, check the matched rule, the actual selected policy group member and any connection errors. Rules are matched in configuration order: a matching rule above the final MATCH takes precedence, so changing the fallback won’t affect a request that already matched an earlier rule.

Identify the symptom and establish a recovery baseline

Where to look based on results from the same URL under different test conditions
What you observeCheck firstHow to retest
Still fails with interception offNetwork authentication, default route and system DNSCompare with another device on the same network, then try an authorized network
No connection appears after enabling interceptionSystem proxy status, TUN service and app interception scopeEnable one interception method only, then make a new request
Connection appears, but the request failsMatched rule, final policy and log errorsKeep the rule fixed and switch only to another known-working group member

After recovery, test one request that should connect directly and one that should be routed by policy. A page loading only proves that this particular request succeeded; also check the matched rule to make sure a service that should connect directly wasn’t sent through another policy by a temporary change. If the issue returns after reconnecting to Wi-Fi, repeat the same tests and compare the system proxy and logs before and after waking or reconnecting instead of leaving a temporary test mode enabled. Keep the last working configuration and the steps that restored it. Don’t disable device protection, certificate verification or network policies required by your organization while troubleshooting.

Outbound connections / Nodes and health checks

Node timeouts: distinguish failed checks from an unusable connection

First identify which part of the connection is timing out

The latency shown by a client usually comes from a request to a test URL through a node. It isn’t the same as the ICMP round-trip time to the node’s host. A timeout might occur during node hostname resolution, connection setup or the protocol handshake, or the test URL itself may be slow to respond. Expand the policy group to see whether one member or the entire group is timing out, and note whether the test URL is set by the subscription, policy group or client. Pin one member, then make a normal request that should use that group and confirm in the connection details that it used the selected member. If traffic works reliably but health checks fail occasionally, check the test target and timeout threshold before removing the node from your configuration.

A passing health check doesn’t mean every kind of traffic will work. The check may use a short HTTPS request, while your actual traffic may depend on long-lived connections, different hostnames or UDP. On the same network, test both the health check and the actual service through the same node, and record both results. If the policy group selects nodes automatically, check the final member in the logs or connection details. Existing connections may keep using the route they were established with, so close the app’s old connection or reopen the test page after switching nodes. Don’t run repeated speed tests in quick succession: concurrent checks and automatic selection can change the results and make comparisons unreliable.

Isolate the node, configuration and network based on the scope of the issue

If one node keeps failing, choose another working node in the same group and retry with the same test target. If only one member fails, check the provider’s service status and whether its node settings changed in a subscription update. Don’t combine protocol settings from an old configuration with a new node. If all members time out, check the logs for repeated failures to resolve node hostnames, then check your device’s clock and whether the current network has just completed authentication. Groups from the same subscription may also rely on the same service. Compare against a separate, authorized route to determine whether the current network is generally affected or the service’s entry points are having a wider problem.

A connection refused error usually means one endpoint actively refused the connection; a timeout means the request waited without a response. For certificate or handshake errors, check the clock, the service name in the configuration and whether the client’s core supports the relevant settings. Sometimes the interface shows only “timeout,” while the actual cause appears in the core logs around the same time. If the logs say a configuration field isn’t supported, check your client and core combination, then visit the download page to confirm platform support. Change one variable at a time in the same environment—for example, update only to the provider’s supplied configuration without also changing the core—to see what fixed the issue. Don’t disable certificate verification just to get a green health check.

Check health-check settings and retest conditions

If your configuration uses automatic node selection or health checks for proxy providers other than rule-set providers, check the policy group’s health-check settings separately from the relevant provider’s health-check under proxy-providers. A manual test in the interface may not use the same settings as scheduled background checks. Adjust the test URL or check interval only in a test copy, and only to values the service permits. First confirm in a browser that the target responds consistently. A longer timeout allows slower responses; it doesn’t reduce request time. More frequent checks won’t fix a handshake or routing problem. Keep the logs from one successful and one failed test, including the target type, outbound member and any network switches.

Configuration flow / Fetch, parse and apply

Subscription errors: check retrieval, format and activation

Use the reported error to identify where the update failed

First distinguish between “can’t download,” “downloaded but won’t parse” and “imported but not applied.” Find the entry on the client’s subscription or configuration management page and check the latest update result and message. If an older configuration still works, that only means a local cached copy is available; it doesn’t prove the remote update succeeded. Save the current working configuration rather than deleting your only known-good copy. Note the time and entry type when updating. Remote configurations, proxy providers and rule-set providers are separate layers: the main configuration may load successfully while one of its dependencies fails to update. Identify the specific failing item instead of repeatedly reimporting the entire configuration.

During download, use the error type to narrow things down. If the hostname can’t be resolved, see the DNS section of this guide. For unauthorized or forbidden responses, check authorization in the provider’s dashboard or request a new URL. For a not-found response, check whether the subscription endpoint was renamed or revoked. If you hit a rate limit, stop refreshing and wait as instructed by the provider. Even a successful HTTP status can return a sign-in page, maintenance notice or error message instead of subscription data. Inspect the response type and opening structure only in a local environment where the provider permits it. Never submit a full subscription URL to a public format checker or converter—especially one that contains query parameters—or paste it into a discussion forum.

Check the import method and the actual content

A complete YAML configuration may include proxies, policy groups and rules, or it may rely on providers to load group members. Missing one item doesn’t automatically mean the file is incomplete. A Base64-encoded node list isn’t a full YAML configuration: decoding may reveal node links, but it won’t include policy groups or rules. Confirm that your client supports importing that format, or choose the appropriate format from the provider. Provider documents must be referenced from the relevant section of the main configuration; a file extension alone doesn’t make them active. If you’re unsure which import method to use, read Subscription URL imports and format differences, then test with a new entry in the client without replacing your existing configuration.

For YAML parsing errors, check the line number in the log and the indentation in the preceding section. The reported line is often where the parser first detected the problem, not where it started. Check list-item hyphens, indentation with spaces rather than tabs, and whether values containing special characters are quoted correctly. If the log says a policy group or provider can’t be found, check that references and definitions use the same name, capitalization and punctuation, with no trailing spaces. If the configuration uses local overrides or merging, inspect the content actually passed to the core—not just the remote source. Verify fixes in a separate copy before adding them to the client’s override mechanism. Direct edits to a remote cache may be overwritten during the next update.

Switch configurations and check the next update

After the download and parsing succeed, explicitly select the new entry in the configuration list and check that the client confirms it was applied. Then check Proxy and Rules for group names or rules unique to that entry. If a rule-set provider still fails, verify that its resource format matches its behavior and that its save path is separate and writable. A usable cached copy doesn’t guarantee the next download will succeed. If applying the configuration fails, switch back to the known-working one and keep the failed copy for comparison. Finally, run a normal manual update and check the next scheduled update too. Verify retrieval and activation separately: an “import complete” message alone doesn’t confirm that requests are being handled by the new rules.

Performance troubleshooting / First response, throughput and variability

Slow speeds: separate response delays from sustained transfer speeds

Keep test conditions consistent and identify where the slowdown occurs

A long wait before a page appears and a download that starts but stays slow are different problems. The former may involve DNS resolution, connection setup, the handshake or the server’s initial response. The latter points more toward available bandwidth, packet loss, congestion or server-side throttling. Choose a permitted test target that responds consistently, and keep the device, network, time of day and request type the same. Change only one factor at a time, such as the outbound policy or interception method. Large file transfers aren’t directly comparable to multiple small files downloading in parallel. When measuring time to first byte, remember that the browser may reuse a connection or serve cached content. Track relative differences and trends rather than judging all-day performance from one test.

On desktop environments that support the relevant options, use curl to see cumulative timings for each request stage. The command below tests only a specified local HTTP proxy. Check the client’s mixed or HTTP port first and replace the example port with the actual value; don’t use it to test a SOCKS-only port. In Windows PowerShell, use curl.exe to avoid confusion with the command alias. The example output options work across platforms. The example site is suitable for a short request comparison, not a throughput test. Keep interception settings unchanged while testing; in particular, don’t enable TUN and then interpret the result as a comparison through just one entry point.

curl --proxy http://127.0.0.1:7890 --max-time 20 --silent --show-error --output - --write-out "\nconnect=%{time_connect}s tls=%{time_appconnect}s first_byte=%{time_starttransfer}s total=%{time_total}s\n" https://example.com/

These timings are cumulative from the start of the request, so don’t add them together. When explicitly using a local proxy, time_connect mainly reflects the time to connect to that local proxy—not the round-trip time to the remote node. Later HTTPS timings may also include proxy tunnel setup and the target site’s handshake. If the first response is slow, check the client logs for node connection retries and compare against a direct request to the same target. The command prints the response body as well as timings, so use it only with publicly viewable pages; don’t use it on business endpoints that contain account information.

Use the measurements to narrow down what to adjust

If the delay before the first response is specific to one policy, check which member was actually used and whether the selection changes frequently. Automatic selection uses the configured health-check criteria, not current download throughput. Retest with a fixed member to rule out switching. If only large transfers or a particular app are slow, pause unrelated sync tasks and compare the device-to-access-point connection separately from the remote service. If performance fluctuates only on Wi-Fi and returns to normal over Ethernet, check the signal and access-point load first. If throughput drops only when traffic is intercepted, compare the same app under the system proxy and TUN, and check whether it actually uses a different protocol in each mode.

If small requests work with TUN enabled but large responses repeatedly stall, note whether it happens only on certain networks, then check the client’s TUN logs and platform documentation. Path MTU may be a factor, but don’t blindly copy a fixed value from an online post. Return to known-working settings and test the same target in an app that supports the system proxy. Ask an administrator to handle changes involving managed interfaces or routes. Once performance recovers, remove temporary verbose logging and repeated health checks, then test again under normal workloads. Record the target, interception method, device load and whether other downloads were running so future measurements can be compared fairly.

Name resolution / System, apps and core

DNS issues: find out which layer handles the query

Distinguish resolution failures, different results and connection failures

If your browser says it can’t find a server, first check the hostname for typos and see whether other devices on the same network get the same error. An NXDOMAIN in the logs means that the query was answered with “name does not exist.” SERVFAIL means the resolver couldn’t complete the query; a timeout may mean there was no response along the query path. Which resolver reported the error matters more than the error name alone. Entering a resolved IP directly isn’t an equivalent HTTPS test: the service may rely on the hostname to select its certificate and site. If an address was returned and the logs show a connection failure, investigate the outbound route rather than treating a handshake error as a DNS failure.

On desktop, run the following command in a terminal to see the response from the resolver used by that command. Replace the test hostname with a target that’s appropriate to investigate publicly. For internal hostnames, use only organization-approved DNS paths; don’t compare them with external resolvers. Browsers may use their own encrypted DNS, and an explicit HTTP proxy may resolve the target hostname on the proxy side. In TUN mode, DNS queries may also be intercepted. So a successful command only confirms that the command’s query path works; it doesn’t rule out a problem in the browser or mihomo core. For comparisons, note the resolver, response type and time, then check the client logs to see whether the target request used the core’s DNS.

nslookup -type=A example.com
nslookup -type=AAAA example.com

Check the enhanced mode, resolution policy and startup dependencies

With fake-ip enabled, the core may assign a synthetic address to a hostname. Later connections intercepted by the same core are mapped back to that hostname; this differs from returning a real address directly. If an app receives a synthetic address and then connects over a route that isn’t intercepted, the address may not work. First check whether resolution and connection are within the same interception scope. If only certain local services are incompatible, consider a targeted fake-ip-filter entry and verify the matching behavior supported by your core version. A synthetic address alone doesn’t prove there’s a DNS leak. Don’t send your entire local domain namespace to an unauthorized external resolver.

This snippet helps locate the enhanced DNS mode setting; it isn’t a complete configuration you can import on its own. Merge it into the existing dns section of a backup copy. Avoid creating two top-level keys with the same name or replacing upstream servers and domain policies that are already working. If a node server uses a hostname, check especially whether its resolution depends on a proxy route that hasn’t been established yet. Resolving ordinary business hostnames doesn’t guarantee that the DNS path for node hostnames works. When reviewing the current configuration, distinguish the default upstream, domain-specific upstreams and proxy-server-nameserver for resolving proxy node hostnames. Use the logs to confirm which one is being used rather than replacing all of them.

dns:
  enable: true
  enhanced-mode: fake-ip

Retest after clearing caches and switching networks

After changing DNS settings, negative caches, browser caches and existing connections may continue using the old results. Close the relevant tabs and make a new request. If you use the client’s cache-clearing feature, note what it clears. Leave organization-managed DNS settings unchanged. If the issue returns only after switching networks, compare system DNS, browser secure DNS and core logs before and after the switch, using the same hostname. If the logs show that an address resolved correctly but the IPv6 route fails, check IPv6 connectivity and how the app selects addresses; don’t treat disabling IPv6 long-term as a universal fix. See the glossary for more configuration key definitions.

Interception / Apps and operating systems

System proxy not working: check the listener address and app coverage

Make sure the system proxy settings are applied and the client is listening

A system proxy usually provides a proxy address only to apps that follow that setting; it doesn’t reroute every connection on the device. When the client shows the proxy as enabled, check what the operating system actually applied. On Windows, go to Settings → Network & internet → Proxy and distinguish manual proxy settings from a setup script. On macOS, check the current service under System Settings → Network, including its Details and Proxies settings. On Linux, check the network proxy settings for the active desktop environment; apps launched outside it may not use them. After switching network adapters or moving from a dock to Wi-Fi, check the settings for the active service again. Don’t disable a network interface just to guess what’s wrong.

Check that the configured address and port match the client’s current local listener. If the core logs report that the port is already in use, first check whether another client or a leftover process on the same device is using it. Don’t terminate an unidentified system process. If you need to change the port, use the client’s supported settings, then reapply the system proxy. Retest only after both sides have been updated. If the system points its HTTP or HTTPS proxy to a SOCKS-only port, the network settings may still show the proxy as enabled even though requests can’t connect. For local-only use, keep the listener bound to the loopback interface; exposing it to your LAN won’t fix a local proxy issue.

Look for the expected evidence for each interception method
MethodExpected evidenceCommon limitations
System proxyThe system shows a local proxy address, and apps that follow the setting appear in the connection listSeparate proxy settings, exclusion lists and apps that don’t support proxies
App-specific proxyThe app’s proxy protocol and address match the client’s listenerApplies only to requests from that app that use this configuration
TUNA virtual interface or platform VPN service starts, and test traffic appears in the coreAuthorization, interception scope, an existing VPN or routing conflicts

Check the effects of bypass rules, environment variables and TUN

Start by testing with a browser that clearly follows the system proxy, and check the connection list at the same time. If the page loads but there’s no connection entry, check the app’s proxy settings, system exclusions or auto-configuration script for a rule that sent the request direct. Command-line tools may read environment variables such as HTTP_PROXY, HTTPS_PROXY or NO_PROXY, or may require their own proxy options. A failed terminal request doesn’t prove the system proxy is broken. If the browser was already open before you changed the settings, close and reopen its test session to rule out old connections, process settings and cached data. After changing one setting, retest the original target rather than switching to another site.

To intercept apps that don’t follow the system proxy, first confirm that the client supports TUN and has the permissions required by your platform. For diagnosis, turn off the system proxy and enable TUN by itself. Check that the virtual interface or service starts and that the test request appears in the connection list. If you’re already using an organization-required VPN, don’t replace it or let two services compete for the default route without authorization. If TUN starts but one app still has problems, check exclusions and routing; an “enabled” status doesn’t mean every request is intercepted. For initial macOS authorization, see Network extension permissions and Keychain prompts.

Finally, test the shutdown path: turn off interception in the client and quit it, then check that the system proxy has returned to its previous state. Make a new request to confirm it doesn’t point to a listener that has already stopped. If the setting is written back after every login or wake, check whether the client starts with the system, another proxy manager or a device management policy is also updating it. On managed devices, give the administrator the time of the setting change and your test results. Forcibly removing system settings may break your work network.

Startup issues / Interface, core and services

Client crashes: identify the process that exits and what triggers it

Distinguish an app window closing from a stopped core or a client still in the system tray

A disappearing window doesn’t necessarily mean the client crashed. First check whether it’s set to stay in the system tray when the window closes, and whether the local system proxy port still shows successful connections. If the interface is running but there’s no internet access, the core may not have started or a helper service may lack authorization. Note whether the app exits as soon as you click its icon, or only after opening a page, applying a configuration, enabling TUN or waking the system. A single startup failure can produce several similar log entries. Align the system clock, client logs and triggering action, then find the earliest failure; the final exit message is often just a consequence of an earlier error.

On Windows, use Reliability Monitor to check when the app stopped working and which faulting module was reported, then compare that with the client logs. On macOS, check the relevant crash report in Console. On Linux, start with the app’s own logs; check service logs only if the app actually runs as a system service. Identify the process that exited instead of assuming an interface crash was a core failure. Useful information for a report includes the time, process or module name, steps to reproduce and first error—not the entire user directory or a full process dump. If the system reports a permissions restriction or blocks the program under a security policy, ask an administrator to verify its source and approval process rather than disabling system protection and trying again.

Isolate configuration and installation issues with minimal changes

If you can still open the interface, turn off options that automatically enable the system proxy or TUN, then save the current configuration and overrides. Start with a known-working local configuration. First check whether the interface and core stay running, then restore the subscription, overrides and interception features one at a time. If a new configuration fails only when applied, check for YAML parsing errors, invalid references and rule database loading errors. Insufficient permissions, a read-only directory or low disk space can also prevent the core from writing its cache. Check which directory the logs actually reference before making changes. Change only the data directory you manage; don’t recursively change permissions on your entire user directory or run the app as an administrator long-term to mask a directory permissions issue.

If the interface exits at startup, first check the client’s backup or reset instructions. Quit any remaining processes, confirm that no local proxy is left behind, then back up the configuration and state directories. If the client supports moving its data directory, you can test with a clean directory after making a backup; don’t delete the old one. If the clean setup works, migrate only the configuration you need rather than copying the whole directory back. If it fails too, check the platform, processor architecture and package requirements. For a reinstall, check the platform-specific package on the download page; Clash Plus is the preferred option. If migrating from an older client, see Migration options after Clash for Windows was discontinued to avoid importing the old runtime state.

Verify the fix survives a restart

After fixing the issue, start the app with normal permissions. Use the same test configuration to connect, quit and reopen it, then restart the system and test again. If the issue originally appeared only after sleep, test waking the system too. If it began after a rule update, verify one more update of the same type. If the interface works but the system proxy still points to an unused port after the client closes, recovery is incomplete. Keep the original configuration and the shortest steps to reproduce the problem: the minimum actions from launch to failure, the interception method and whether a specific override was loaded. Before contacting the project’s support channel, include only the relevant log excerpt and remove personal directory paths, account details and addresses.

Mobile / Permissions, background activity and network switching

Mobile troubleshooting: fix permission errors and background disconnects

Check VPN authorization and which apps are included

On Android, clients using VpnService typically show a system permission prompt the first time they connect. On iOS, you may be asked to allow a VPN configuration. Start a connection from the client, then check the VPN’s actual status in system settings. Permission approval doesn’t mean the configuration loaded successfully. If the status quickly changes from connected to disconnected, check for configuration errors, startup failures or a disabled service in the client. Your device may already have a corporate VPN, work profile or network filtering service. Check management requirements and which profile the app is installed in; don’t replace a managed connection yourself.

If only certain apps fail, check whether the client’s per-app setting is “include selected apps” or “exclude selected apps.” The lists work differently, so the same checkbox action can have opposite results. If the client requires a reconnect after changes, follow its instructions to restart the VPN, then fully quit and reopen the test app before making a new connection. Compare one app that should be intercepted with one that should connect directly, and check whether foreground traffic appears in the client’s records. Don’t rely on a cached home page; open a new page instead. Also check that a work-profile or cloned app is the same installed instance as the one selected in the list.

Use a controlled test to distinguish background limits from network switches

First confirm that the app works in the foreground on the current network. Lock the screen briefly, return to the app and make a new request. Record whether the system VPN still shows as connected, whether the client restarted and whether a new first error appears in the connection logs. If the service stops only after the screen locks, check the app’s Battery or Background usage settings on Android and try the system’s permitted background activity options for this client only. Some manufacturers also have separate controls for auto-start or background activity; names vary by device. Follow Android VPN permissions and background battery settings to check them one by one. You don’t need to turn off power-saving protections across the entire system.

If disconnects happen only when switching between Wi-Fi and mobile data, test each network separately first. Then switch once and note how long it takes for a new request to work. Existing long-lived connections may break when the network route or address changes; if new connections recover, that doesn’t mean the client is failing continuously. If the VPN remains connected but all new connections fail, check whether DNS requests are still using conditions from the previous network and verify that the app has permission to use mobile data. On iOS, don’t apply Android background allowlist steps. Check the system VPN status, the app’s mobile data permission and any supported on-demand connection options. If the issue involves a managed policy, contact your device administrator.

Check blocking policies and recovery steps

On Android, if Always-on VPN and blocking connections without a VPN are both enabled, restricted internet access when the tunnel stops may be expected. Don’t treat disabling this protection as a universal fix. Restore an authorized VPN service first, then verify access within the policy’s scope. If the issue occurs only when first joining public Wi-Fi, use the system-provided portal to authenticate. If a management policy blocks the sign-in flow, contact network support according to your organization’s process. Final testing should include a foreground connection, one screen lock and one network switch. Record whether new requests recover. If the issue persists, compare it with the installation and configuration topics in the FAQ, then consult platform support resources with a redacted timeline.