I am so used to using

netstat -antp

on a Linux box. Same does not work on a Mac OS X. However, there is an alternative:

sudo lsof -i -P

And of course you can pipe the output to grep, if you are looking for something in