Monday, June 22, 2009

Netstat Status Messages Explained

This article is the continuation of the last post (Netstat Explained). Here I am trying to give the explanation for the Netstat Status messages.
 
CLOSE_WAIT: The socket connection has been closed by the remote peer, and the system is waiting for the local application to close its half of the connection.
 
CLOSED: The socket is not in use.

ESTABLISHED: The socket has an established connection between a local application and a remote peer.

FIN_WAIT_1: The socket connection has been closed by the local application, the remote peer has not yet acknowledged the close, and the system is waiting for it to close its half of the connection.

FIN_WAIT_2: The socket connection has been closed by the local application, the remote peer has acknowledged the close, and the system is waiting for it to close its half of the connection.

LAST_ACK: The socket connection has been closed by the remote peer, the local application has closed its half of the connection, and the system is waiting for the remote peer to acknowledge the close.

LISTEN: The socket is listening for incoming connections. Unconnected listening sockets like these are only displayed when using the -a option.

SYN_RECEIVED: The socket has passively received a connection request from a remote peer.
 

SYN_SEND: The socket is actively trying to establish a connection to a Remote peer.


TIMED_WAIT: The socket connection has been closed by the local Application, the remote peer has closed its half of the connection, and the system is waiting to be sure that the remote peer received the last Acknowledgement.

UNKONOWN: The state of the socket is unknown.


This Article can be found at the blog section of www.dileepk.info

No comments: