Get number of connections of determinated port

1.1k Views Asked by At

Looking for a linux function that returns the count of connections in a port.

Was researching about the "lsof", but it only prints connections in a door, and does not return the sum of all connections, for example: if I have two connections at port 80, it will return 2, and not the connections.

1

There are 1 best solutions below

0
On BEST ANSWER

Did you try netstat?