Instantly share code, notes, and snippets.
Linux:
$ netstat | grep <port>
Mac OS X:
$ lsof -i :<port>