Nocser Technology | Main Page
Please Login or Register

Knowledgebase

Check the most IP connect to server

netstat -an | sort +4 | grep :80 | awk '{print $5}' | sed -e s/':.*'/''/g | sort | uniq -c | sort -k 1 -nr | head -n 20

or

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

or

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n


Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Install php on CentOS (Views: 747)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter