Concepts / Ports, sockets and UDP

Ports, sockets and UDP

Socket

Also called listening, ss -tln, 0.0.0.0, four-tuple

An address plus a port; a connection is named by both ends' sockets.

A server listens on a socket: 0.0.0.0:80 on every address, 127.0.0.1:8080 on loopback only. ss -tln lists listening TCP sockets. A connection is identified by four numbers: source address and port, destination address and port.

See it on real machines

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Start this lab, free