A socket in the context of TCP.
A TCP socket is a session identifier for each TCP connection and is the combination of:
It's used interchangeability with the term TCP connection as one connection is equal to one socket.
The output of netstat showing a socket Id with its state.
In tcp, a socket address is the combination of
A remote socket is the socket of the client.
A local socket is the socket of the server
See connection list
See connection state