Hacker News
new
top
best
ask
show
job
`whoport` – which agent is using localhost:3000?
(
clairenord.com
)
4 points
by
cnord
2 hours ago
2 comments
ventana
2 hours ago
netstat and/or lsof will normally take care of that, but sure, everyone makes their own tools these days!
cnord
an hour ago
what's the go-to command from your shell history to do that with netstat? :)
ventana
an hour 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.
cnord
2 hours ago
Wrote a script with `lsof` + `ps` to see which agents are using which ports. Might be interesting to throw in your dotfiles!