Knowledge Base Article

How can I check the number of connections from an IP to a port on my Dedicated server?

First you need to login to your Dedicated server as root via SSH. Then type the following command to see the number of connections the selected IP address has made to your server on a certain port:

netstat -plan|grep :PORT|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 |grep IP_ADDRESS

Replace PORT and IP_ADDRESS with the correct values. You will then receive information about the number of connections this IP has made to your server.



Rating

Please indicate if this article was helpful for you.

rating :  5.0 from 5
views :  956
votes :  1

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!