Skip to Content

Find out how many connections you have from a single IP

MSameer's picture

Ever wondered how many connections you have from each single IP ? netstat -tn | grep :80 | awk '{print $5}' | sed -e 's/:.*//' | sort | uniq -c | sort -nr | head -n 25

Credits:

=== MSameer: I use: netstat -nt|tr -s " "|cut -d \ -f 5|grep :|cut -d : -f 1|sort -n | uniq -c|sort -n



Dr. Radut | book