cmp.is

Find ports in use

0 Comments

Ah yes, Stackoverflow helping me out again.

https://stackoverflow.com/questions/4421633/who-is-listening-on-a-given-tcp-port-on-mac-os-x#4421674

Depending on your version of Mac OS X, use one of these:

PORT=8000
lsof -n -i4TCP:$PORT | grep LISTEN
lsof -n -iTCP:$PORT | grep LISTEN
lsof -n -i:$PORT | grep LISTEN

Any issues or suggestions? Tell me on github.

0 Comments