Netstat

From DevOps Notebook

Get connections per IP sorted

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n