listening socket
A socket that has claimed a local address and port and is waiting to accept incoming connections.
In more detail
ss -ltnp lists TCP listeners with their address, port and process. Listening proves something has claimed the endpoint; it does not prove the application will answer correctly. Check the bind address too, because a loopback listener is unreachable from other hosts.
Example
p=tcp local=0.0.0.0 port=8080 pid=42 records protocol, bind address, port and owning process.Related terms
- network socket — One end of a two-way network connection between programs, identified by an IP address and a port number.
- bind address — The network address a server listens on, which decides who can connect to it.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- socket state — The stage a TCP socket has reached in its lifecycle, such as LISTEN, SYN-SENT, ESTABLISHED or TIME-WAIT.
Taught in
- Ports, Sockets And What Listening Means — Linux Fundamentals & Systems Administration
- The Diagnostic Ladder: Is It Listening, Answering, Arriving — Linux Fundamentals & Systems Administration