List Open ports on Mac OS X

July 16th, 2009 | Author: Sunny

Found this on the web. I used to use fport to see which port is open on my machine, but it only works for Windows. So, this will be helpful for any of you if you are looking for the same information.

open terminal windows, and type: sudo -lsof -i -P | grep -i “listen”

P.S.
| grep -i “listen” <— this is optional… but help you to grep which port is listening


Leave a Reply

You must be logged in to post a comment.