How can I count all connections (clients) that are connected to the specified port on my (remote) server?
Lets say port number is gonna be: 3306 (MySQL port), so how to count how many clients are connected to this port during the same time?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look, I know I’d do this in linux:
netstat -anp | grep ":3306.*ESTABLISHED" | wc -lI expect it to work in FreeBSD as well…. let me know the result!