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

Taught in

References