

# lsof -i :80 | grep LISTEN View Established Connections Only You can use the lsof command follows to list more information about open ports: Udp6 0 0 :::53 :::* 1343/named Display All TCP Sockets

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name Sample outputs: Active Internet connections (only servers) Sample outputs: Recv-Q Send-Q Local Address:Port Peer Address:Port
NETWORK CONNECTION WINDOWS
Or you can use the netstat command as follows:ģ96 resets received for embryonic SYN_RECV socketsĢ packets pruned from receive queue because of socket buffer overrunģ ICMP packets dropped because they were out-of-windowĢ166428 TCP sockets finished time wait in fast timerĢ773 time wait sockets recycled by time stampġ1 packets rejects in established connections because of timestampĢ98 delayed acks further delayed because of locked socketġ6413851 packets directly queued to recvmsg prequeue.Ħ27914668 packets directly received from backlogġ146535624 packets directly received from prequeueġ0588802 packets header predicted and directly queued to userĨ646100 acknowledgments not containing data receivedĥ times recovered from packet loss due to fast retransmitĥ96 times recovered from packet loss due to SACK dataĭetected reordering 4 times using time stampħ congestion windows partially recovered using Hoe heuristicĢ08 congestion windows recovered after partial ackĢ26 packets collapsed in receive queue due to low socket bufferģ4 connections reset due to unexpected dataġ84 connections reset due to early user close tcptrack and iftop commands: Displays information about TCP connections it sees on a network interface and display bandwidth usage on an interface by host respectively.ĭisplay Currently Established, Closed, Orphaned and Waiting TCP sockets, enter:.netstat command: It can display network connections, routing tables, interfaces and much more.ss command: It dump socket (network connection) statistics such as all TCP / UDP connections, established connection per protocol (e.g., display all established ssh connections), display all the tcp sockets in various state such as ESTABLISHED or FIN-WAIT-1 and so on.
