Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

up vote 5 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.

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

does wireshark work on os x?

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

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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