Clash client first install and setup: common issues with ports, system proxy, and startup

Set up Clash on Windows, macOS, or Android. Fix common first-run issues like port conflicts, system proxy failures, firewall prompts, and startup problems.

First install: choose a client, then import and activate a configuration

For a first install, check these three things separately: the client opens, a configuration is active, and app traffic is being proxied. Clash for Windows is no longer maintained; 0.20.39 was its final release. For a new device, choose a maintained client, such as Clash Verge Rev, which uses the mihomo core. Menus and configuration support differ between legacy Clash for Windows and newer clients, so don't assume older instructions apply step for step.

  • Windows 11: Open Settings → System → About, then check System type under Device specifications. Choose an x64 or Arm64 installer based on the project's release notes. If support for your architecture isn't documented, don't guess based on the filename alone.
  • macOS: Open the Apple menu → About This Mac, then check Chip or Processor to identify an Apple silicon or Intel Mac. If installers are available for both architectures, choose arm64 or x64 as appropriate. If macOS displays a security warning, verify the download source and the project's installation instructions first; don't disable system protection globally.
  • Android: Choose the APK that matches your device, following the client's release notes. Common ARM variants include arm64-v8a and armeabi-v7a. If you need to install an APK from a browser or file manager, grant permission to that source for this installation only, then revoke it afterward.

Import a local YAML file or enter a subscription URL on the client's configuration page, then select the configuration you just added. In legacy Clash for Windows, use the Profiles page. Seeing a configuration in the list doesn't mean the core has loaded it. After switching, check the logs for parsing errors and confirm the configuration's proxy groups appear in the proxy list. If an error points to an unsupported protocol or field, check whether the configuration is compatible with the current core instead of repeatedly toggling the system proxy.

Port conflicts: check whether the core is listening first

On desktop, the system proxy must point to the address and port the client is actually listening on. In legacy Clash for Windows, check the port on the General page. For other clients, refer to their current settings and core logs. For example, 127.0.0.1:7890 can accept HTTP proxy requests if 7890 is an HTTP or mixed port; a SOCKS-only port can't be used as an HTTP proxy. A mixed port accepts both HTTP and SOCKS requests on the same port, but apps still need to be configured for the protocol they use.

Windows 11: Find the listening port and process

Run these commands in PowerShell, replacing 7890 with the port shown in settings. The first command finds the listener; the second shows how to look up its name by process ID. 4820 is just an example—replace it with the actual OwningProcess value from the output.

Get-NetTCPConnection -State Listen -LocalPort 7890 |
  Select-Object LocalAddress, LocalPort, OwningProcess
Get-Process -Id 4820

If nothing is listening on that port, check whether the client has started the core, whether the core failed to load, or whether a different port is active. If the logs show address already in use and the port is occupied by another proxy client, exit that client normally first. Alternatively, assign the current client an unused port, such as 7897, then restart the core and check again. After changing the port, re-enable the system proxy and update any browser, terminal, or developer tool where you entered the old port manually.

macOS: Check the listener on the configured port

Run the command below in Terminal to check COMMAND, PID, and the listening address. A 7890 value in settings only confirms the configured port; the command must show the expected process listening to confirm it's open. For local use, loopback binding is usually sufficient—there's no need to enable Allow LAN.

lsof -nP -iTCP:7890 -sTCP:LISTEN

System proxy not working? Trace a fresh connection

  1. Check system settings. In legacy Clash for Windows, enable the system proxy under General → System Proxy. On Windows 11, check Settings → Network & internet → Proxy; if using a manual proxy, make sure the address and port match the client. On macOS, check System Settings → Network → Wi‑Fi → Details for the current network → Proxies. For a wired connection, check the corresponding network service.
  2. Check whether the request reaches the core. Keep rule mode enabled, open a site in a new browser tab, and check the client's connection list. Choose a page that will make a fresh request rather than relying on a cached page. If the domain appears in the connection list with the DIRECT policy, the request reached the core and was routed directly by a rule; the system proxy toggle is working.
  3. Separate app issues from upstream issues. If the browser appears in the connection list but a terminal tool doesn't, check whether that tool reads the operating system proxy settings or has its own proxy configuration. If the client logs the request and shows a proxy group but the connection times out, check the selected node, network, and logs first. Don't assume a timeout is caused by the port or firewall.

You can also bypass the system proxy settings and test the local HTTP proxy directly. In Windows 11 PowerShell, run curl.exe -I --max-time 10 --proxy http://127.0.0.1:7890 https://example.com; on macOS, replace curl.exe with curl. Use the current HTTP or mixed port. If you get an HTTP status from the destination, that explicit proxy request succeeded. To tell whether it went direct or through a node, check the client's rule match and outbound connection logs.

Android VPN permissions and firewall prompts

Android: Verify the system VPN connection first

Android clients typically use the system VpnService to handle traffic. After importing and selecting a configuration, tap Start in the client and approve Android's VPN connection prompt. Then check the active connection on the system VPN page. A common path is Settings → Network & internet → VPN; if your manufacturer's menus differ, search Settings for VPN. Seeing a list of nodes only confirms the configuration can be read—open a webpage and check the client's connection log too.

If your phone already has a work VPN, a filtering app that uses the VPN interface, or another client set to Always-on VPN, check the active connection and device management policies first. Android generally can't keep two such VPN connections active for the same user at once. If only one or two apps don't appear in the logs, check the client's per-app proxy list. If the connection drops only after the screen has been locked for several minutes, check the app's background and battery restrictions first.

Windows and macOS: Distinguish local access from LAN traffic

When Windows Firewall prompts you, first check whether the client is trying to listen on a LAN address. A browser connecting to a client on the same computer through 127.0.0.1 generally doesn't need inbound network access for this test. If the browser reports a refused connection and nothing is listening on the port, fix the core startup issue first; a firewall exception can't make a stopped process listen.

On Windows 11, check the active network profile under Windows Security → Firewall & network protection. On macOS, check System Settings → Network → Firewall. If the local port is reachable but an upstream request is blocked by policy, note the client process name, error time, and connection destination, then ask your device administrator to review the rules. Don't troubleshoot by turning off the entire firewall.

Startup not working? Check the app, core, and traffic routing separately

Startup options usually launch the app after sign-in; they don't necessarily restore the system proxy or ensure the core or TUN is ready. Verify that the configuration works when started manually before enabling startup, or a reboot will simply repeat the same configuration error.

  • Windows 11: In legacy Clash for Windows, check General → Start with Windows. If the app uses the standard startup-app registration, also check its status under Settings → Apps → Startup. If you've moved a portable version, make sure the old startup entry doesn't still point to its previous location, then register it again through the client.
  • macOS: First enable the client's login startup option, then look for Login Items or Login Items & Extensions under System Settings → General. Distinguish between opening an app at login and allowing background items to run; the app opening normally doesn't mean its required background item is enabled.
  • Android: If the client supports it, you can select Always-on VPN on the system VPN page. First verify that a regular connection reconnects, then consider enabling Block connections without VPN. If enabled, the device may temporarily lose internet access when the VPN isn't connected.

After setup, restart the device. Once you've signed in or unlocked it, don't open the client manually yet. On desktop, check the menu bar or system tray, the local listening port, and the system proxy target in that order; on Android, check the active VPN connection. Then make a fresh request and check the connection log. If the icon appears but the port isn't open, check the core logs. If the port is listening but no system proxy is set, check whether proxy restoration at startup is configured. After exiting the client, if the system still points to its now-closed local port, restore the settings you recorded before installation rather than leaving a dead address in place.

Download Clash