sudo netstat -apc | grep -i esta
sudo watch -d -n0 "netstat -atp | grep ESTA" # better
# Display IP address of high number of connections on port 80
sudo netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn | head
# Display IP address connected to port 80
sudo netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | sed -e 's/::ffff://' | cut -f1 -d: | sort | uniq -c | sort -rn | head
# Display remote IP address with port 80
sudo netstat -antu | grep :80 | grep -v LISTEN | awk '{print $5}'