`whoport` – which agent is using localhost:3000?

4 pointsposted 7 hours ago
by cnord

4 Comments

cnord

7 hours ago

Wrote a script with `lsof` + `ps` to see which agents are using which ports. Might be interesting to throw in your dotfiles!

ventana

7 hours ago

netstat and/or lsof will normally take care of that, but sure, everyone makes their own tools these days!

cnord

6 hours ago

what's the go-to command from your shell history to do that with netstat? :)

ventana

6 hours ago

On Linux, that would be netstat -lpn (from my memory, not from the shell history) :) On Mac, netstat won't show the pids, so it would be lsof.