How to find what is using a port on Linux
Identify the process listening on a port on Linux with PortPilot, ss, or lsof.
Linux tells you who owns a socket via ss, lsof, or an agent that already enumerated listeners.
With PortPilot
- Install and run
portpilot ports(or the desktop Ports view). portpilot port <n>shows process identity, bind address, and relations (Docker publish, reverse proxy) when detected.- Pair the host if you want the same view in the website.
Classic commands
ss -lptn 'sport = :3000'
sudo lsof -iTCP:3000 -sTCP:LISTENPortPilot keeps history when the process later disappears — ss does not.