See every dev server running on your Mac
Updated · 2 min read
One command lists every program that listens on a port, with its process number:
lsof -nP -iTCP -sTCP:LISTENnetstat -an | grep LISTEN shows the ports too, but not which program holds them.
Read the list
You'll see more than dev servers. A rough guide to the COMMAND column (lsof cuts names to nine letters):
| Command | Usually |
|---|---|
node, bun, deno, python3, ruby, php, java |
Dev servers and tools you started |
ControlCe on 5000 and 7000 |
AirPlay Receiver, part of macOS |
rapportd, sharingd, launchd |
macOS itself |
Dropbox, Spotify, Code Helper and the like |
Apps you have open; leave them alone |
com.docker… |
Ports published by Docker containers |
Ports from 49152 up are usually temporary ones that apps open for themselves.
Only the dev servers
lsof -nP -iTCP -sTCP:LISTEN | grep -E '^(node|bun|deno|python|ruby|php|java)'Which project is that node?
ps -p 48213 -o command=
lsof -a -p 48213 -d cwdThe first prints the command, the second the folder it runs in. Stop one you don't need with kill 48213.
Why servers get left behind
Closing a terminal tab doesn't always stop what runs in it. A server started by a script, an editor or an AI agent may have no tab at all. Either way it keeps its port and its memory until you stop it or restart your Mac.
How Portroom handles it
Every dev server on your Mac, in one list
Processes shows dev servers that don’t belong to any of your projects, with folder, command, port, CPU and memory. It lists only clear dev servers (Node.js, Bun, Deno, Python, Ruby, PHP, Java and other dev tools), only your own, never system processes or apps.
Each one can be stopped with two clicks, added as a project, or ignored if you run it on purpose.




Something wrong or out of date on this page? Write to support@portroom.dev.