I think I remember a command line utility that did this, but I can't remember what it's called and a few Google searches turn up nothing.

link|improve this question

feedback

2 Answers

up vote 4 down vote accepted

sudo lsof -i -P | grep -i "listen"

from here: http://juretta.com/log/2007/08/08/list_open_ports_on_your_machine_mac_os_x_/

second google result for "list sockets mac osx"

you could grep tcp or udp instead to get outbound ports instead of listening ports

link|improve this answer
feedback

The easy way is to use Little Snitch, but it's not free (although there is a trial version). http://www.obdev.at/products/littlesnitch/index.html

link|improve this answer
D'oh! Upvote for you... I have Little Snitch installed and I forget it had that capability, thanks. – esqew Jan 2 '11 at 1:47
feedback

Your Answer

 
or
required, but never shown

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