Debugging Connections

To find number of unique connections per IP address, sorted from max to min:

netstat -antu | grep :80 | grep -v LISTEN | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn

To exclude localhost connections, add grep -v 127.0.0.1 in the end.