How to check the number of protocol connections made in a server

Here is a simple tip to check the number of protocol connections made by HTTP or MySQL.
We know port 80 is used by the HTTP server and port 3306 is used by the MySQL server, by default. So here is the command to check the number of connections:

The above command is for the HTTP server. Similarly, type 3306 instead of 80 to know the connection made for the MySQL server.
To know the IP addresses that have made requests to port 80 of your server, run the following command:

 

Vijayan J

Thanks for stopping by guys! I’m Vijayan and Techpulse is my beloved brainchild.
Currently working as a PHP developer in a digital marketing start-up, I’m overly passionate about not just learning new things but also putting those into practice. I swear by a quote I once came across…
‘What separates successful people from unsuccessful people is the former’s ability to execute’.
Feel free to reach out to me if you have any questions, suggestions or feedback. Hoping to see more of you here!