Connections on server per IP

Show connections on server per IP

Network stats
netstat -ntu | awk '{ print $5 }' | cut -d : -f 1 | sort | uniq -c | sort -n
netstat -tupan | awk -F '[: ]+' '{print $6}' |sort |uniq -c |sort -n

If netstat is not found, install it by
apt-get install net-tools

Apache stats
links http://localhost:7080/server-status -dump |awk '{print $11}'|sort |uniq -c |sort -n