Go4Hosting
https://go4hosting.in/forum/

How Can I Check The Number Of Connections From An IP
https://go4hosting.in/forum/viewtopic.php?f=5&t=175891
Page 1 of 1

Author:  Nishant Singha [ Wed Jul 27, 2016 4:15 pm ]
Post subject:  How Can I Check The Number Of Connections From An IP

How Can I Check The Number Of Connections From An IP To A Port On My Dedicated Server?

Author:  admin [ Thu Jul 28, 2016 12:04 pm ]
Post subject:  Re: How Can I Check The Number Of Connections From An IP

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 :PORT|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.

Author:  jacobwallace [ Fri Aug 05, 2016 3:41 pm ]
Post subject:  Re: How Can I Check The Number Of Connections From An IP

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

This command to check the number of connections from an IP.

Page 1 of 1 All times are UTC + 5:30 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/