Skip to content

Instantly share code, notes, and snippets.

@xhlwill
Last active June 6, 2017 04:35
Show Gist options
  • Save xhlwill/48edcaf83c9bbe74b198aa101e5d04bb to your computer and use it in GitHub Desktop.
Save xhlwill/48edcaf83c9bbe74b198aa101e5d04bb to your computer and use it in GitHub Desktop.
find processes that uses my tcp port
# You can try netstat
netstat -vanp tcp | grep 3000
# For OSX El Capitan and newer (or if your netstat doesn't support -p), use lsof
lsof -i tcp:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment