netstat

Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

To display the number of active connections on port 80
copy
26
4
netstat -an |grep :80 |wc -lTo display the number of active connections on port 80

details |

Result:

2

Options: