Skip to content

Instantly share code, notes, and snippets.

@aantonw
Created December 30, 2015 03:03
Show Gist options
  • Save aantonw/09a5d2af210d6b02b9fc to your computer and use it in GitHub Desktop.
Save aantonw/09a5d2af210d6b02b9fc to your computer and use it in GitHub Desktop.
OS X lsof get listen ports
sudo lsof -iTCP -sTCP:LISTEN -P -n #tcp
sudo lsof -iUDP -P -n | egrep -v '(127|::1)' #udp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment