Before you begin: installers, configuration sources, and traffic routing
Choose a client, then check your OS and processor
Choose your platform from the client downloads. For Windows, macOS, Android, and iOS, start with Clash Plus; for Linux desktops, consider Clash Verge Rev. An installer that runs on another computer may not work on yours. Check the processor architecture on desktop systems, and the installation source and minimum OS version on phones. An older client may read an older configuration without supporting newer protocols. Before migrating, keep a known-working copy and never experiment with your only working configuration.
Think of the graphical client and the core engine as separate parts. The client manages subscription lists, tray or menu bar controls, logs, and the connection interface. The core engine parses configuration, listens on ports, matches rules, and establishes connections. On mobile, protocol and field support also depends on the app. If a file imports but fails to start, check the app's reported field or protocol error, then compare it with the target client's supported features. Two apps both using the word “rules” does not mean their configurations are interchangeable.
Know the difference between a subscription URL, a local file, and the active configuration
A subscription URL fetches a remote configuration and may contain credentials that grant access to it. Keep it out of screenshots, chat logs, and public troubleshooting posts. A local file is a saved snapshot of a configuration, useful for offline imports or controlled edits. After importing, select the entry in the configuration list and make sure it is active. Some clients keep using the last successfully loaded configuration. Seeing a new file in the list does not prove that new connections are using its rules.
Keep at least two backups: the original configuration and any routing rules, ports, or traffic-handling settings you added manually. A subscription refresh may replace the downloaded file. If the app supports overrides or configuration merging, put local changes there and check the order after merging. Otherwise, edit a local copy and keep the original subscription as a fallback. When troubleshooting later, make clear which file is the subscription, which is the copy, and which one is active.
Test one traffic-handling method at a time
Rules determine how connections that reach the client are handled. A system proxy or tunnel determines whether connections reach the client in the first place. These are separate layers. For a first desktop setup, enable the system proxy and test with a browser. Consider TUN if you need to cover apps that ignore system proxy settings. Mobile apps usually route traffic through the system VPN interface; after confirming the system indicator, check connection logs to verify that traffic is being forwarded.
| Method | Coverage | Check first |
|---|---|---|
| Manually configured app proxy | Apps configured to use a proxy | Protocol, address, and port match the local listener |
| Desktop system proxy | Apps that use system proxy settings | System settings point to this client, not an old port |
| Desktop TUN | Traffic covered by tunnel routes | Service permissions, routes, and LAN access |
| Mobile VPN interface | Traffic selected by the OS and app | Tunnel is connected and the test app is within its scope |
Establish a baseline before making changes: turn off traffic handling in the client and confirm that everyday sites and essential LAN services work. Then enable one traffic-handling method and make a new connection to the same site. Note the time, app, and matched rule. Don’t change the network, node, and rules at the same time; if connectivity returns, you won’t know which change helped. Browsers may reuse existing connections, so reopening a page may not be enough. Close the relevant tabs or restart the app before testing again.
Note the shutdown order too: first turn off the system proxy or tunnel set by the client, then quit the client, and finally check that the network is back to its original state. If an organization had already configured a proxy, record its original values instead of simply turning everything off. Recheck permissions and network policies on work devices, campus networks, and guest Wi-Fi, even if the steps worked in a test environment. Don’t confuse a traffic-routing issue with restrictions imposed by the network itself.
For troubleshooting, record the OS, error time, field name, and matched rule. Before sharing logs, remove subscription URLs, node credentials, and internal hostnames that shouldn’t be public.
Windows: system proxy, ports, and quitting from the tray
Check your architecture and installation type
Check your system type under Settings → System → About, then visit the Windows downloads. Start with Clash Plus, or choose Clash Verge Rev, FlClash, or Clash Nyanpasu based on your interface preferences. If a download doesn’t list your device’s architecture, don’t guess from the file size or a similar-looking name. Clash for Windows is no longer maintained. You can consult its archive when migrating an older setup, but for a new installation, choose a client that is still maintained.
Follow the installer prompts. For a portable build, extract all files to a fixed directory you can write to, then launch the app from there. Don’t run it from an archive preview or leave it in a temporary location that may be cleaned automatically. Before installing a new client, quit the old one from the system tray and make sure it is no longer changing system proxy settings or running a core process. Keep the old directory as a backup, but don’t run two traffic-handling clients at once.
Import a configuration and make sure it’s active
Open the subscription or configuration page, then add a subscription URL or import a configuration file. After the download succeeds, select the entry and apply it, then check the proxy groups for available outbound options. Group names come from the configuration. If the interface shows “Auto” or “Manual,” open the group and check which strategy is actually selected. If the configuration fails to load, find the first parsing error in the logs and note its field and line number. Later errors about missing groups may be knock-on effects of that first error.
For everyday use, select rule mode and then enable the system proxy. Check the current address and port under Settings → Network & Internet → Proxy. If your browser has a separate proxy extension, disable it before testing so it doesn’t override system settings. Command-line tools, background services, and some legacy desktop apps may use a different proxy source. A working browser doesn’t prove that every app follows the same toggle. Use the client’s connection page to confirm that the test request reached the core engine.
Check the listening port before deciding whether to enable TUN
If the logs say the local port can’t be bound, first check which process is listening on it. The command below lists the process ID using the local port; replace the number with the port shown in the app. In Task Manager, use Details to check the ID and process name. Stop a process only if you’ve confirmed it belongs to an old client. Don’t force-quit a process just because it uses a common port. If you need both apps, change the client’s listening port, then update the system proxy and any manually configured app proxies to match.
Get-NetTCPConnection -LocalPort 7890 -State Listen |
Select-Object LocalAddress, LocalPort, OwningProcess
Consider TUN if the browser works but a target app ignores proxy settings. First turn off the system proxy and test using the tunnel alone. If the client asks to install a service or approve a network change, follow its instructions. If you don’t have device-management permissions, don’t try to bypass them by changing system policies. After enabling TUN, test both regular websites and essential LAN services, such as printers or shared folders. If only LAN access fails, compare results with the tunnel off, then check the client’s LAN routing options.
When setting up startup behavior, distinguish three actions: launching the graphical app, starting the core engine, and enabling the system proxy. Verify with a sign-out and sign-in or a restart. Once the tray icon appears, check the active configuration, listening port, and traffic-handling status, then visit a test site. If another proxy app is still listed in an old client, system task, or startup entry, find out which one writes the settings. A later-starting app may overwrite an earlier one. You can temporarily leave the new client’s auto-start disabled while troubleshooting to reduce variables.
If no websites work after you quit, first check whether the system still points to a local port that is no longer listening. The window’s close button may only hide the interface; quitting usually requires the tray menu. Force-quitting the app, on the other hand, may skip proxy restoration. To restore settings manually, use the values you recorded before enabling traffic handling, then start a single client and test. If only one type of background app fails while the browser works, check that app’s own proxy settings instead of repeatedly reinstalling the client.
macOS: chip type, menu bar, and network services
Choose the right build for your chip and preserve existing network settings
Open About This Mac from the Apple menu. If it lists a chip and identifies it as Apple silicon, choose the Apple Silicon build; if it lists an Intel processor, choose the Intel build. Visit the macOS downloads and start with Clash Plus, or choose Clash Verge Rev or FlClash if they better suit your needs. ClashX Meta is no longer maintained. Before migrating, export any rules and subscriptions you still need; don’t assume a new client will automatically take over another app’s local data.
For a disk image installer, open it, follow the prompts to move the app to Applications, then launch it from there. For a package installer, follow the setup prompts. Don’t keep running the app from a mounted image or switch between multiple copies with the same name. If macOS blocks the app, check the download, app name, and reason for the warning. Contact your administrator on a managed device; don’t disable system-wide security just to install one app. Quit the old instance from the menu bar before updating.
Use network services and connection logs to verify the system proxy
Open the main window from the menu bar, then add a subscription or import a file on the configuration page. Apply the configuration, select a specific proxy group, and check that it has available outbound options before enabling the system proxy. Record the current proxy settings for the network service you’re using before your first test. System proxy settings are stored per network service, so Wi-Fi and Ethernet may use different settings. After setting up Wi-Fi, check the active proxy again when switching to a wired connection through a dock. Don’t rely on the menu bar toggle alone.
Check the active network service under System Settings → Network → Details → Proxies, or use the read-only command below in Terminal to inspect the system proxy status. Check whether it’s enabled, whether the address is the expected loopback address, and whether the port matches the client. The command reports system settings, but that doesn’t mean every app uses them. Terminal apps may use environment variables, and browsers may have their own settings. Make a test request and compare its destination and policy with the connection log from the same time.
scutil --proxy
Authorize a tunnel only when needed, and retest after changing networks
If you need to route apps that ignore the system proxy, first confirm that your chosen app supports TUN or an equivalent enhanced mode. Implementations and authorization prompts vary: some clients need a helper service, while others use a system network extension. Follow the selected client’s instructions and check System Settings for any pending approval requests. Managed devices may restrict network extensions. If approval isn’t available, use the system proxy if it meets your needs instead of repeatedly toggling settings and hoping for a different result.
After waking from sleep or switching Wi-Fi networks, test a destination that used to work, then test a LAN service. If a domain stops resolving while some existing connections still work, those connections may not have closed yet, or DNS resolution may have changed on the new network. First complete any captive portal sign-in and confirm that direct internet access works, then re-enable traffic handling. If internal office hostnames fail, check whether the same corporate DNS source is in use with traffic handling on and off. Don’t replace all system DNS settings with a public resolver as a first step.
To troubleshoot settings that may be overriding each other, change one variable at a time: quit the old client, restore the original network service proxy, then launch the new client and verify its system proxy. Test the tunnel separately afterward. If the device already has an organization-managed VPN, follow the organization’s requirements; don’t treat a system prompt as an ordinary configuration error. Compare log timestamps and the active network service across tests. If the issue reliably appears after switching networks, investigate which services the setting applies to before changing subscriptions.
Before uninstalling or migrating, turn off the system proxy and tunnel changed by the current client, then quit the app. Check that the active and commonly used backup network services are back to their recorded settings, and separately back up any configuration you still need. Moving an app to the Trash doesn’t replace these steps. If the app installed helper components, follow its removal instructions. Keep your old local rules until the new app has been tested on the same network, so you still have a fallback.
Android: APK architecture, VPN permission, and background operation
Choose the right installer and check old packages and permission prompts
Visit the Android downloads and start with Clash Plus, or choose Clash Meta for Android, FlClash, or Surfboard. The right installer depends on the app ABI supported by your device’s OS; don’t rely only on the processor’s marketing specs. Some devices have a 64-bit processor but only accept 32-bit apps. If the downloads offer a universal build and you’re unsure of the architecture, consider that option. If the app has only one build, check that your device supports it first.
When opening an installer from a browser or file manager, Android may ask you to allow app installs from that source. Grant temporary permission only to the app that opens the file, then turn it off when you’re done. If Android says it can’t install over the existing app, check whether the same app came from another source or whether the OS version or architecture is incompatible. Packages signed differently can’t be installed over one another. Before uninstalling the old app, export its configuration and custom rules; don’t assume app data will be kept automatically.
Test subscription downloads and tunnel connections separately
Add a subscription or select a local file on the configuration page. If the file picker can’t find your configuration, save it somewhere accessible through the system picker and select it again from the client. You don’t need to grant broad file access. After importing, select the configuration and check that its policy groups are complete. If a remote download times out, test other websites on the current network, then try the same subscription on another trusted network. Don’t give your subscription URL to an online testing service.
Mobile clients typically use Android’s VPN interface rather than a desktop-style global system proxy. When you tap Connect, check the app name in the system prompt before allowing the connection. The status bar icon means the interface is active, not that the selected outbound is working. Open a regular website, then check the client for a new connection and its matched policy. If traffic is logged but no response comes back, test a known-working option in the same policy group for comparison.
Check app scope, network changes, and screen-off behavior
If per-app routing is enabled, check whether the list means “include only” or “exclude.” The two options work in opposite ways, and a test app on the wrong list won’t produce the expected log entry. If the browser works but one app doesn’t, make the app send a new request, then check the connection page. If nothing appears, check the traffic scope, work profile boundaries, and system network permissions before changing rules. Apps in a work profile may be controlled by separate management policies.
If another VPN app is already active in the same user profile, a new connection may replace its tunnel or be blocked by an always-on VPN policy. If disabling the current VPN leaves the entire device offline, check whether “Block connections without VPN” is enabled and whether device management set that policy. On a personal device, switch back deliberately to the original settings. On a managed device, contact your administrator. Don’t use repeated authorization prompts to mask a policy conflict.
If the app works in the foreground but becomes unreliable with the screen off, first distinguish between the client service stopping and an existing connection timing out after a network change. Lock the device for a while, then unlock it and check the system VPN status, client logs, and whether the test app reconnects. If the evidence points to background restrictions, check the system’s battery settings and the manufacturer’s background launch controls, changing only the options this app needs. Don’t disable power saving across the entire device; that increases battery use and makes the cause harder to identify.
Test Wi-Fi and mobile data separately. First connect over Wi-Fi, disconnect, then connect again over mobile data. In a second test, observe what happens when switching networks without manually disconnecting. The results help distinguish “can’t connect on this network” from “existing connections aren’t being restored promptly.” If public Wi-Fi requires sign-in, complete the system’s captive portal steps before starting the tunnel. If websites work but subscription updates fail, note whether the client reports a timeout, certificate error, or DNS error, then follow the relevant steps in the final section.
iOS: App Store installation, VPN configuration, and on-demand connections
Install from the App Store and confirm the configuration source
Open the Clash Plus App Store listing from the iOS downloads. Check compatibility in the App Store. An app with the same name on a desktop OS doesn’t necessarily support the same protocols, rule fields, or traffic-handling options on a phone. After installing, open the app and check where configurations are added before deleting any existing setup. If your phone is also used for work, find out whether its VPN was created personally or is part of an organization-managed setup.
When moving to a new phone, separately save the original subscription URL and any rules or proxy groups you added manually. System backups and in-app exports may cover different data, so seeing the app icon restored doesn’t prove the configuration came with it. If you keep a local copy in the Files app, make sure the client can select and read it. Download cloud files to the device before importing. If access for remote updates has expired, use the subscription provider’s recovery option instead of repeatedly pasting an old link into different apps.
After importing, check the policy and system permissions
Add a remote URL on the app’s configuration or subscription page, or select a local file if the app supports importing files. After it loads, check the active configuration and policy groups. If a configuration that works on desktop uses unsupported fields on your phone, keep the original and make compatibility changes to a copy. If a local path can’t be read, check whether rule resources depend on directories on the original computer. Your phone won’t automatically have the rule files downloaded on that computer, and desktop file paths won’t work as-is.
The first time you connect, iOS may ask to add a VPN configuration and authenticate on the device. Approve only requests initiated by the app you’re using. iOS clients generally route traffic through the system VPN extension, so there’s no need to enter a desktop mixed proxy port in your Wi-Fi proxy settings. After connecting, check the active policy in the app, then visit a known-working site. The system indicator shows that a connection exists; check the app’s logs or diagnostics to confirm whether requests entered the tunnel and how they were handled.
Handle on-demand connections, network changes, and LAN access
If the VPN reconnects soon after you disconnect it manually, check whether on-demand connections are enabled in the app or system VPN configuration. Record the current settings, then, if permitted, temporarily pause on-demand triggers and test a manual connection again. Closing the app doesn’t necessarily disconnect its extension; check the app’s connection status and system settings. If your organization requires a persistent connection, follow its process and don’t remove a configuration profile installed by device management.
When switching from Wi-Fi to cellular, first determine whether the whole phone is offline or only one app is failing. Check that the client and test app are allowed to use cellular data in system settings, then make a new request instead of relying on an old page that’s still loading. If Wi-Fi has a captive portal, follow the system prompts to sign in. If signing in works only while traffic handling is off, note when the network switch occurred and what error followed, so you can distinguish an authentication issue from a routing issue.
Test LAN features separately. Casting to a TV, printing, or discovering devices on the same subnet may be affected by the app’s local network permission or by changed tunnel routes. On the same Wi-Fi network, first test with personal traffic handling off, then turn it on and test again. If both tests fail, check the test app’s permissions and whether the devices are actually on the same network. If it fails only with traffic handling enabled, check whether the client can preserve LAN access as expected. Don’t treat an inaccessible website and failed LAN discovery as the same issue.
Before changing phones or uninstalling, disconnect the VPN created by the current app and confirm that a test website works as usual, then migrate your subscription if needed. If the system still shows a connection, check VPN settings for the configuration name and which app owns it. Remove only entries you’ve confirmed were created by your personal app and are no longer needed. For the first connection after reinstalling, establish a baseline with one configuration and one site. Once it works, add backup configurations or restore automatic connections to avoid changing several variables at once.
Linux: desktop clients, command-line cores, and routing
Choose a build for your distribution and architecture
Choose Clash Verge Rev or FlClash from the Linux downloads. Desktop users should start with a graphical client. For headless systems or cases where you need to manage the process yourself, see the mihomo core downloads. First check your hardware architecture and distribution with a command. Matching processor architectures don’t guarantee matching package formats. Choose a release for your distribution and dependencies; don’t force-install across distributions just because the file extensions look similar.
uname -m
cat /etc/os-release
Install the graphical client using a package format supported by your distribution, and pay attention to any missing dependencies. Don’t bypass dependency errors to complete the installation. After installing, launch it from the application menu as a regular user, and grant elevated permissions only when specifically required. A missing tray icon doesn’t necessarily mean the app isn’t running; tray support varies by desktop environment. Check the main window or local listener to confirm its status. If the graphical app won’t start, read the startup error before deciding whether the cause is a GUI dependency, architecture, or configuration issue.
Keep the graphical client and core working directories separate
Import a subscription or local file on the graphical client’s configuration page, select it, check the logs, then enable the system proxy. Desktop proxy settings are generally used only by apps that choose to read them; terminal sessions, system services, and containers may not inherit the same environment. To test a command’s proxy behavior, specify the local port for that command alone first. Don’t add environment variables to every login configuration as a first step. Once the test works, decide whether a persistent setting is needed and where it belongs.
When running the core directly, keep the working directory, main configuration, and external rule resources distinct. The command below assumes mihomo is on your PATH and the configuration is saved in an example directory under the current user. First validate the configuration in test mode; start the core only after the errors are resolved. This doesn’t replace a connectivity test. If the configuration depends on remote rule resources, check that they can load on the current network. If there’s a permissions or path error, fix the directory ownership or file location first.
mihomo -t -d "$HOME/.config/mihomo" -f "$HOME/.config/mihomo/config.yaml"
mihomo -d "$HOME/.config/mihomo" -f "$HOME/.config/mihomo/config.yaml"
Verify traffic step by step, from the local listener to TUN
Check the actual listener from another terminal. This example assumes the mixed proxy port in the configuration is 7890. Confirm the listening address and port, send a request to a public test site through the proxy, then check the core logs for the matched rule. If nothing is listening, check whether the core started and loaded the configuration. If the port is open but the request fails, determine whether the local connection failed or the request reached the core but failed on its outbound route. A service and graphical client running together may also compete for the same port.
ss -ltn 'sport = :7890'
curl --proxy http://127.0.0.1:7890 --noproxy "" --max-time 15 -I https://example.org/
TUN may require access to a device node, routes, and firewall permissions. If you only need a browser and a few command-line apps, a local listener is usually enough for testing. If you do need traffic interception, first confirm that the client supports a tunnel method for your OS. Enable it through the client’s service workflow or your distribution’s recommended permission-management tools. Avoid running the entire graphical app as root long term. Check the default route and essential LAN access before and after enabling TUN. For remotely managed devices, make sure you have a working console or rollback method before changing routes, so you don’t lose access.
Set up a persistent service only after the core works in the foreground. A service may run with a different user, working directory, and environment from your interactive terminal, so specify the main configuration and resource directory explicitly. After starting it, check the service logs and actual listener—not just a manager’s “running” status. If the service can’t read a subscription file, check its ownership and path. Don’t make a credential-containing configuration readable by every user as a temporary fix. Before updating the core or rules, keep the last working configuration and its startup arguments.
Stopping the client also takes two steps: restore desktop proxy settings or app-specific proxy settings first, then quit the graphical client or stop the persistent core. If the proxy returns after a restart, find out whether a desktop startup app, service, or login script wrote the setting again. Keep the intended source and prevent multiple startup methods from competing. If the machine has Ethernet, Wi-Fi, and virtual network adapters, note which connection was active when the issue occurred. The status of one interface doesn’t prove that the system chose the right route.
Common configuration issues: troubleshoot by where the error occurs
Subscription update failed: check the transfer, response, and format separately
Note the last successful update time and the exact error from this attempt. For certificate errors, check the system clock and connection environment. For timeouts, verify the current network and whether the subscription source is reachable. For parsing errors, confirm that the response is a configuration the client can read—not a login prompt, error page, or a different subscription format. Shortening the automatic update interval isn’t a fix; it just makes the same error happen more often. See how to troubleshoot failed subscription updates for more steps.
If the update succeeds but the old policy still appears, check that the active configuration is the entry you updated and whether the interface needs you to apply it again. Refreshing a remote configuration, updating its proxy providers, and updating rule resources are separate operations. Success at one layer doesn’t mean the others changed. A local copy won’t automatically sync when the source subscription refreshes. Identify which layer should have changed, then check the corresponding update result in the logs. Back up local overrides before editing a subscription.
Ports and rules: find the entry point, then check the first match
Know the difference between two ports: the mixed proxy port accepts app proxy requests, while the controller port lets a compatible interface manage the core. They aren’t interchangeable. After changing the proxy port, update the system proxy, browser-specific settings, and terminal environment variables as needed. If you change the controller port, update the management interface’s connection settings. To resolve a port conflict, first find the process using it and confirm whether it’s an old client or another app before stopping it or changing ports. See how to find a local port conflict.
Use the following configuration to test rule parsing and local listening in mihomo. It accepts proxy requests only from local apps, connects directly to the example domain, and rejects all other requests. It includes no subscriptions or nodes and isn’t intended for everyday use. Save it as a separate file, confirm the port is available, and leave the system proxy off so other apps aren’t affected. Whether the example site connects also depends on direct access from your machine; a working local listener with an unreachable site doesn’t, by itself, mean the rules are wrong.
mixed-port: 17890
allow-lan: false
bind-address: "127.0.0.1"
mode: rule
log-level: info
rules:
- DOMAIN-SUFFIX,example.org,DIRECT
- MATCH,REJECT
Rules are generally checked from top to bottom, and the first matching rule wins. If a broad rule comes first, more specific rules below it won’t apply; put the fallback rule last. Domain suffix rules cover a different scope from exact-domain rules, and connections with only an IP address may not match the domain rule you expect. Check the destination, matched rule, and final outbound on the connection page before making the smallest change that could help. For field hierarchy and group references, see a section-by-section guide to config.yaml.
DNS and rule resources: keep different issues separate
If only a few domains fail, check whether the logs show a DNS resolution failure, a matched reject rule, or a selected outbound that timed out. With Fake-IP, seeing a virtual address in diagnostics may be expected; don’t assume it’s the destination’s real address. Check the original domain, its mapping, and the matched rule together. If LAN hostnames fail, compare DNS results with traffic handling off, then check the app’s DNS mode and exception scope. For the trade-offs, see Fake-IP vs. redir-host.
When a rule resource fails to load, distinguish a missing file from an unreachable source or content that doesn’t match the declared format. If GeoIP results differ from what you expect, first check which resource the active core is using and whether it loaded successfully. Geographic classification isn’t a latency measurement or a guarantee of where a domain belongs. Don’t change the rule database, DNS mode, and policy group at the same time. Keep a rollback version, change one layer at a time, and compare the same destination’s matched rule before and after.
Summarize the problem by its scope: if every app fails, check system traffic handling and the local listener; if only one app fails, check whether its traffic reaches the client; if only a few domains fail, check rules, DNS, and the outbound. For each test, record the active configuration, network, and first relevant error. Restore a working connection before continuing if traffic can’t be forwarded. For answers about startup, subscriptions, and connection issues, visit Clash troubleshooting FAQs.
To roll back, restore the network settings from before traffic handling was enabled, then switch back to a known-working configuration. Don’t clear the configuration, change system DNS, and reinstall the client all at once; you’ll lose the information needed to identify the cause.