FeaturesPricingFAQDEDownload for macOS
HOW-TO

What is running on a port on a Mac: find the process

You want to know what is using a port, or what is listening on your Mac right now. The Terminal answers both.

Skip lsof. Rungeist lists it for you.Download free trialWatch it both ways

See it both ways

In the Terminal2 commands, then read the output
$
COMMAND PID USER NAME
rapportd 645 you *:61440 (LISTEN)
ControlCe 712 you *:7000 (LISTEN)
node 41074 you *:3000 (LISTEN)
node 41200 you *:5173 (LISTEN)
postgres 9120 you 127.0.0.1:5432 (LISTEN)
$
Output shortened.
In Rungeistone glance, grouped by project
rungeist4 servers4 servers
checkout-api
~/Development/checkout-api
:3000node0.4%41 MB2h 4m
:5432postgres:16container2h 4m
moss-atlas
~/Development/moss-atlas
:5173vite0.2%36 MB1h 18m
tin-canary
~/Development/tin-canary
:5199node0.1%31 MB4h 12m
Filter servers…

One port

lsof -nP -iTCP:3000 -sTCP:LISTEN

-n skips DNS lookups, -P keeps port numbers numeric, -iTCP:3000 selects TCP on port 3000 and -sTCP:LISTEN keeps only listeners.

Everything that is listening

lsof -nP -iTCP -sTCP:LISTEN

This lists every TCP listener with its command, PID, user and address. Expect system services such as rapportd. Look for node, vite, python or ruby.

Which project does a process belong to?

ps -p 41074 -o pid,ppid,etime,command
lsof -a -p 41074 -d cwd

The first line shows how long it has been running (etime) and its full command. The second shows the folder it was started from (cwd), which usually tells you the project.

Processes of other users

sudo lsof -nP -iTCP:3000 -sTCP:LISTEN

Without sudo, lsof only shows your own processes.

Docker containers

docker ps --format 'table {{.Names}}\t{{.Ports}}'

Containers publish ports through Docker, so this lists them by name with their ports.

All of that, in one list

Rungeist shows the dev servers running from your project folders in your menu bar, grouped by project, with the port, memory, CPU and uptime. Open one, restart it or stop it with a click.

Download free trialBuy for $14.99

More guides

  • Kill the process on port 3000
  • Fix EADDRINUSE
  • All how-to guides
  • Rungeist for Mac

See what is running, at a glance

  • Every dev server, grouped by project
  • Port, memory, CPU and uptime
  • Open, restart or stop with a click
Download free trialBuy for $14.99

7-day free trial · no account

rungeist© 2026 · Built for macOSFind Rungeist on Product HuntImprintPrivacyTermsWithdrawalChangelogBuilding with AIHow-to guides