flclash.st
English
简体中文繁體中文EnglishРусскийفارسی

HomeWorkshopPort check

Port check

Enter the mixed, SOCKS, Redir, TProxy and external controller ports to check that they lie within 1024–49151, do not repeat and do not collide with common software defaults, and get commands for Windows, macOS and Linux that show what holds each port.

Checks that each port is within FlClash's allowed 1024–49151 and that none repeat, and lists the commands to see what holds a port on all three systems.

Why check ports

When FlClash fails to start, or the system proxy is on but nothing loads, a taken port is often the reason. The usual cause is several proxy apps installed at once, or a development server sitting on 8080 or 9090.

Harbour cranes: one ship per berth, one program per port
Harbour cranes: one ship per berth, one program per port Slottsviken51, CC BY-SA 4.0

The checks

CheckBasis
RangeFlClash requires ports between 1024 and 49151
RepeatsNo two ports may share a number
Common holders7890, 7897, 10808, 9090 and others are often used by other software

Finding who holds a port

The tool builds three commands for the ports you enter:

  • Windows uses PowerShell's Get-NetTCPConnection and shows the process name;
  • macOS uses lsof;
  • Linux uses ss, which needs sudo to see other users' processes.

If the process is FlClashCore, that is FlClash itself; if it is something else, either close it or give FlClash another port.

After changing a port

Change the mixed port and the system proxy follows automatically; programs where you set the proxy by hand (browser extensions, http_proxy in a terminal) need changing yourself.

Can I use port 80 or 443?

FlClash does not accept ports below 1024, and systems usually need administrator rights to listen on them.

Does the external controller port need to be in the same range?

This tool does not check its range, but it still must not repeat another port.

Read alongside

This page covers: Clash port check, port already in use, port 7890 in use