up vote 0 down vote favorite
share [g+] share [fb]

How do I see which processes have open TCP/IP ports in Mac OS X?

link|improve this question

65% accept rate
feedback

3 Answers

up vote 1 down vote accepted

One alternative is the use of the lsof utility; specifically, lsof -i 4tcp will list all processes with some sort of TCP IPv4 network sockets open. The manpage of lsof will provide you with detailed information on how to use the utility and how to interpret the output.

link|improve this answer
Thanks, definitely the easiest to use – Zubair Feb 18 '10 at 11:12
feedback

does wireshark work on os x?

link|improve this answer
1  
Yes it does work on OS X. – ayaz Feb 18 '10 at 11:02
+1 for not making a separate question out of this :-) – Cairo Feb 18 '10 at 15:12
feedback

This should be possible in a terminal window using the Netstat command.

And if you like the GUI way more:

With Mac OS X 10.5, the /Applications/Utilities folder contains a network utility called: Network Utility, see tab Netstat for these stats presented in a gui application, along with Ping, Lookup, Traceroute, Whois, Finger and Port Scan.

link|improve this answer
netstat on OS X has no options to list the processes sockets are attached to. – Steve Folly Feb 18 '10 at 23:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.