7890 is not a random port
Clash-family cores have shipped the same defaults for years, and every one of them can collide with the next client you install.
| Port | Role | Typical config key |
|---|---|---|
| 7890 | Mixed proxy: HTTP and SOCKS on one port | mixed-port |
| 7891 | SOCKS, on configurations that split them | socks-port |
| 7892 | HTTP, on configurations that split them | port |
| 9090 | External controller, an HTTP API | external-controller |
When the message names 7890, the core could not bind the mixed port. That is a single, specific failure: the address was already held by another process. It is not a permissions problem, not a configuration syntax problem, and not a node problem — those produce different messages.
The two messages people confuse
listen tcp 127.0.0.1:7890: bind: address already in use
That is the collision. Something holds the port. Compare it with these, which are not collisions:
bind: permission denied— the port is below 1024, or a privileged bind was refused. Different cause, different fix.bind: cannot assign requested address— the bind address does not exist on this machine, usually a configured listen address that is not a local IP.- No bind message at all, and the app shows a red core — the core never got as far as binding, so look higher in the log.
Only the first one means "another process has it". Treating the other two as collisions wastes the most time in this topic, because killing processes never fixes them.
Find the owner before deciding anything
Two commands, one per platform family.
Windows. The PID is the last column.
netstat -ano | findstr :7890
tasklist /FI "PID eq 12345"
macOS and Linux.
lsof -nP -iTCP:7890 -sTCP:LISTEN
The name in the output decides the next step. There are only four realistic owners:
- A leftover core from the same client. Most common. The GUI was closed or crashed, the core kept running. Restarting the app then fails to bind because its own previous instance still holds the port.
- Another Clash client. Clash for Windows, ClashX, a second fork, or a portable copy on a USB stick. Both configured for the default port, only one can win.
- Docker or a dev server. A published container port or a local service that happens to use 7890.
- Another proxy tool entirely. A corporate agent, a testing harness, an SSH tunnel bound to the same port.
Why the leftover process survives the app closing
This is the case worth understanding, because it explains why "I closed it and reopened it" does not help.
Clash Verge Rev runs the GUI and the core as separate processes. In service mode the core is started by the system service under a different account, and closing the window does not stop it — that is the design, so the proxy keeps working while the interface is closed. If the GUI is then killed, or the machine sleeps and the interface fails to reconnect, the core remains bound to 7890 with nothing in front of it.
The same shape appears on Windows when the app is terminated from Task Manager instead of through its own quit action, and on macOS when a helper process outlives the app bundle.
Two consequences follow:
- Task Manager or Activity Monitor set to "apps" will not show the core, because it is not an app. Look at all processes, not the foreground list.
- In service mode the core may run under a system account, so it appears under a different user and sometimes a different session. A filter by your own username hides it.
Change the port, or clear the port
Both work. They are not equally good, and the choice depends on who owns the port.
Clear it, when the owner is your own leftover core
This is the correct fix when the PID belongs to a core from the same client. Changing the port would leave two cores running, both connected, both consuming the subscription, and the log would then show duplicate connections that look like a provider problem. End the process, then start the app and confirm it binds. On macOS the same collision shows up between the TUN core and the proxy listener, which has its own set of rules about which one to move.
Change it, when the owner is something you want to keep
A Docker container, a colleague's tool, a corporate agent — do not kill those. Move Clash Verge Rev to a free port instead. Two places decide the value, and changing only one is why people report that the port "came back":
- The application's own port setting.
- The
mixed-portkey in the configuration the app generates or the profile it loads. A profile that sets its own port overrides the interface value on every reload.
Set both, then reload and confirm in the log that the core bound the new value. If the log still shows 7890, something is still supplying the old one — usually the active profile.
After the port changes, three things still point at the old one
Changing the port is not finished when the core binds. The rest of the system learned the old value.
- The system proxy setting. On Windows this is the registry proxy configuration per user; on macOS it is the network service's proxy entry. Both can hold 7890 from a previous configuration. The symptom is a core that runs cleanly while the browser reports no connectivity.
- Applications with their own proxy settings. Terminals, package managers, Electron apps and some IDEs read their own configuration. They do not follow the system setting, so they keep failing after everything else works.
- Scripts and environment variables. A shell profile exporting an HTTP proxy to 7890 survives every restart. So does a TUN configuration that excludes a specific port, or a rule that routes traffic to the local listener by number.
A useful check is to confirm the port from the outside rather than from the application: request a page through the new port explicitly and see whether it answers. If the request succeeds and the browser still fails, the remaining problem is one of the three above, not the core.
A short decision order
- Read the exact message. Confirm it says
address already in useand notpermission denied. - Find the PID for the port. Note the process name.
- If it is your own client's core, end it and restart the app. Done.
- If it is anything else, change the port in the interface and in the profile, reload, and confirm the bind in the log.
- Update the system proxy, the per-application settings and any environment variables.
- Verify from outside the application by making a request through the new port.
Steps 5 and 6 are the ones skipped most often, and they are the reason a correct port change still looks like a failure.
Frequently asked
Is port 7890 used by Clash Verge Rev specifically?
It is the Clash-family default, not specific to one client. Any Clash-derived core that has not been given an explicit port will try 7890 for the mixed listener, which is why two such clients installed side by side collide.
I closed the app but the port is still held. Why?
In service mode the core runs as a separate process started by the system service, and closing the window does not stop it. That is deliberate, so the proxy survives closing the interface. End the core process explicitly, or stop the service.
Can I run two Clash clients at the same time on different ports?
You can bind different ports, but both will install a system proxy and both will try to capture traffic if TUN is enabled. One of them will win silently and the log of the other will show traffic that never arrives. Run one capture path at a time.
Does changing the port break the subscription?
No. Subscription content describes nodes, not local ports. But a profile can carry its own mixed-port value, and that value overrides the interface setting on reload — which looks like the port change being reverted.
The core binds fine now but the browser still has no internet.
The bind and the routing are separate. Check the system proxy setting, then any application-level proxy configuration, then environment variables. A core that binds cleanly and a browser that fails almost always means the system proxy still names the old port.