Debugging Connections

Engineering Nov 14, 2016

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.

Srujan

You should go to about section on this site.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.