Skip to content

Instantly share code, notes, and snippets.

@philfreo
Created August 31, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philfreo/678ea6a9336037bb492f to your computer and use it in GitHub Desktop.
Save philfreo/678ea6a9336037bb492f to your computer and use it in GitHub Desktop.
See what local processes are listening on any IP address
netstat -na | grep LISTEN | grep -v 127.0.0.1 | grep -v ::1
@kamokuda
Copy link

If you're only interested in listening TCP sockets (and are on Linux), you can do netstat -ltn | grep -v ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment