Is there an equivalent tool/shell command for Mac (preferably integrated with the OS) that has the functionality of the Windows command-line
netstat -b -n? (displays active network connections, with the application that created them and source/dest IP+Port)
OS X has a
...see the man page for more.
As already been pointed out, netstat is also available on Mac OS X as a command line tool.
If you prefer a GUI tool integrated with the OS, then you can use network utility located here:
Besides netstat, it allows easy access to other network utilities as well. A good overview on the network utility can be found in the article "How to use Network Utility".
lsof lists open files, so if a process is on last-ack say, they wont be listed
netstat will not give pids on osx
utility does not work as suggested
so no answers are correct
there is no way as far as i can see to duplicate the functioning of cports on the mac
all other answers are misleading