how to check all open TCP connections
Hi all,
What is the command to check all open TCP connections?? Thanks. |
Hi L1nuxn00b703, Welcome to LQ. There may be a better way, but this should do for now.
Code:
$ netstat -a |
netstat -anp --tcp --udp will show you all open tcp and udp connections. do not specify --udp and it will show you just tcp
|
Quote:
|
For open (established) tcp connections, try:
# netstat -tn To additionally get the associated PID for each connection, use: # netstat -tnp |
Thanks all!!!
|
No of TCP connections
how to check/measure all open TCP connections for a particular machine using its IP address?
and can anyone send me the code to calculate/find the num of tcp connections? |
how to check all open TCP connections for a particular machine?
|
All times are GMT -5. The time now is 03:43 PM. |