Skip to content

Instantly share code, notes, and snippets.

@ellman
Last active January 4, 2016 05:39
Show Gist options
  • Save ellman/8576781 to your computer and use it in GitHub Desktop.
Save ellman/8576781 to your computer and use it in GitHub Desktop.
Count number of connections to specific port using NETSTAT
netstat -anp | grep -w <PORT> | grep ESTABLISHED | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment