Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Linux Commands / IT Support Guides

Find Linux listening sockets with ss

A failed remote connection may be caused by a service binding only to loopback. Inspect local listeners before opening additional network access.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

ss -lntp

How to read the result

The command shows listening TCP sockets with numeric addresses and ports. Process information may be limited without additional privileges. A 127.0.0.1 binding differs from a wildcard or interface-specific address.

What to do next

Find the expected port, identify its service and compare the bind address with the intended client path. If no listener exists, investigate startup logs before firewall rules.

Before you make a change

The example does not list UDP sockets. A listener proves a socket exists, not that the application can complete a valid request.

Source & further reading

Linux manual — ss

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles