How to list TCP/IP connections per remote IP, ordered by count:
$ netstat -ntu | awk '{print $5}' | cut -d: -f1 -s | sort | uniq -c | sort -nk1 -r
How to list TCP/IP connections per remote IP, ordered by count:
$ netstat -ntu | awk '{print $5}' | cut -d: -f1 -s | sort | uniq -c | sort -nk1 -r