We are explaining the process of checking number of connections from an IP to a port on a dedicated server. In order to do this you should be logged in to the dedicated server via SSH as a root user. Please follow the steps as mentioned below:
You need to execute command as given below. In the command you need to replace ‘PORT’ with the actual port for which the information is being sought and replace ‘IP_ADDRESS’ with actual IP address.
netstat -plan|grep
ORT|awk {‘print $5’}|cut -d: -f 1|sort|uniq -c|sort -nk 1 |grep IP_ADDRESS
Once you have executed the command, you will receive a list of IP addresses that are accessing servers presently on the specific port and also the number of connections on that port. These are the
IP addresses that are connected on FTP with help of account from your
dedicated server.
We hope that information provided above is able to satisfy your query. Please note that you can always contact our technical experts for any further assistance, that may be required by you.