NEED SOME HELP
CLICK HERE OR CALL US ON
hosting provider in india 1-800-212-2022
web hosting services in USA 1-888-288-3570
Have questions? Let us answer them all!

Go4hosting
FORUM

Go4hosting offers top-notch services, such as dedicated server hosting, VPS hosting, Co- location,Web hosting,
Email hosting, and Cloud Computing solutions. All the services offered by Go4hosting are efficient, reliable,
andcost-effective. , remaining essentially unchanged.

It is currently Sun Dec 22, 2024 7:05 am

All times are UTC + 5:30 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jul 27, 2016 4:15 pm 
Offline

Joined: Wed Apr 13, 2016 11:29 am
Posts: 203
How Can I Check The Number Of Connections From An IP To A Port On My Dedicated Server?


Top
 Profile  
 
PostPosted: Thu Jul 28, 2016 12:04 pm 
Offline
Site Admin

Joined: Sat Jan 04, 2014 12:08 pm
Posts: 231
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.

_________________
Our Service Pages:
Zimbra Mail Hosting | Cloud Hosting India | VPS Hosting India | Colocation India | Dedicated Server India


Top
 Profile  
 
PostPosted: Fri Aug 05, 2016 3:41 pm 
Offline

Joined: Thu Dec 04, 2014 12:02 am
Posts: 21
Location: Hyderabad
# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 5:30 hours


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: