Portal Home > Knowledgebase > Articles Database > How to check connections to my server?


How to check connections to my server?




Posted by azn_romeo_4u, 06-24-2009, 05:28 PM
There use to be a thread on here but because of the wht hack, it didn't get saved...so now I can't go back to it. It was a command in ssh that printed out a number of connections. Like 12,000 or something. Anyone know the command?

Posted by Mr Terrence, 06-24-2009, 05:31 PM
try: netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

Posted by azn_romeo_4u, 06-24-2009, 05:38 PM
nope that wasn't the one. It just prints out the total connections instead of individual ip's.

Posted by Dexqt, 06-24-2009, 05:49 PM
I think you're looking for this one.

Posted by WHR-Abner, 06-24-2009, 06:44 PM
netstat -anp |grep "tcp\|udp"|wc -l ; will print the total number of TCP/UDP connections to your server. Say, if you want to know the no: of connections to any certain service like 'http' use: netstat -apn | grep :80 |wc -l



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Futurehosting (Views: 636)
ETHR.NET offline? (Views: 676)

Language: