Mac ::: Using lsof to output listening apps
Posted by: fidel in mac, tags: listen, lsof, netstat, port, terminalBesides netstat which is not that helpful if you need to know the appname you can use lsof
As root enter the following in Terminal:
lsof -i
An example output could look like this:
COMMANDÂ Â PIDÂ USERÂ Â FDÂ Â TYPEÂ Â Â DEVICE SIZE/OFF NODE NAME
firefox-b 488 fidel  85u IPv4 0×6dcaa68     0t0 TCP 192.168.x.y:RandomPort->www.youtube.com:http (ESTABLISHED)
Cog      494 fidel   4u IPv4 0×688066c     0t0 TCP 192.168.x.y:RandomPort->apache2-grog.miata.dreamhost.com:http (CLOSE_WAIT)






Entries (RSS)