Table of Contents

About

A socket in the context of TCP.

A TCP socket is a session identifier for each TCP connection and is the combination of:

  • a local address:
    • source host address,
    • source port,
  • a remote address
    • destination host address,
    • and destination port.

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.

Netstat Windows

Adress

In tcp, a socket address is the combination of

Type

Remote

A remote socket is the socket of the client.

Local

A local socket is the socket of the server

Management

List

See connection list

State

See connection state