Get IPs connected to your server

This will list you the IPs connected to port 80.

netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

Read detailed instructions of it in http://www.mkyong.com/linux/list-all-ip-addresses-connected-to-your-server/

Leave a Reply

Your email address will not be published. Required fields are marked *


*