Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: Read it as three questions per row: what is listening, on which addresses, and whose is it. The command from the local-scan guide — ss -tlnp — lists TCP listeners (-t), numeric addresses (-n), listening sockets only (-l), and the owning process (-p). The risk lives in the address column: a row showing 0.0.0.0 or * accepts connections from every interface, while 127.0.0.1 accepts only the machine itself. The process column tells you whether the row is a name you chose or a surprise. HomeShield's companion script produces this same census classified and readable; this guide teaches the raw skill underneath it, for the day you are on a machine with nothing installed.
A listening socket is a program's open ear: the operating system has registered that this process accepts incoming connections on this address and port. The ss output is the machine's table of ears. Anything not in the table cannot be connected to at all; anything in it can be connected to from whatever networks its address allows.
A typical line carries the state (LISTEN), the receive/send queues (usually zeros to ignore), the local address and port, the peer address (wildcards, for listeners), and the process in parentheses with its PID. Read left to right with the three questions. The port identifies the service's conventional home — some ports you will recognise (the proxy's, the server's you configured), others you will look up or identify from the process name. The process entry is the row's signature: a name you installed and run on purpose, or a stranger in your own house.
Run the command with sufficient privileges (sudo on most systems) or the process column comes back blank for other users' processes — a census with the names redacted is only half a census. The guide's suggested | head -40 trims a long list to a screen; on a busy machine, drop the head and read it all — the risky row does not promise to be in the first forty.
Four shapes matter. 127.0.0.1 (or ::1): this machine only — the safe bind, reachable by local programs and by tunnel processes running locally, by nothing else. A LAN address (192.168.x.x): that network only — household-reachable, a considered choice for household services. 0.0.0.0 or *: all interfaces — every network the machine joins can knock, including the internet whenever a path exists. [::]: the IPv6 all-interfaces form, easy to overlook beside its IPv4 twin and exactly as wide — see the IPv6 guide for why this row fools people.
Sort the output mentally by that column. The all-interfaces rows are your audit list; each needs to be the designated public component (a proxy), a deliberate LAN service whose bind you can narrow, or a finding. The localhost rows are your reassurance list; glance at them for surprises of identity rather than reach.
For each all-interfaces row, the verdict process is short: name the service in plain words ('the family AI server'), state its intended audience ('this machine only', 'the house', 'the internet through the proxy'), and compare intention with the row's actual reach. Mismatches are the findings. A server intended for its own machine sitting on 0.0.0.0 is a bind fix. A service you cannot name at all is an investigation — the process's parent, its install date, and its files will identify it, and the logs guide's habits help.
Write the verdicts down in the census itself — annotate the output and file it. Next month's census diffs against it, and the diff is the audit: rows added, rows widened, rows that should have died still listening. The companion formalises this annotation with its bind classifications; the raw command plus a pen achieves the same with more character.
Certain rows recur in home-server households. The MCP server's own port — which you chose at setup — asks whether its bind matches its audience. A web dashboard's port asks the CORS and auth questions from their guides. A database port (the notes app's, the automation platform's) asks why a data store is listening on a network at all, when its only legitimate caller is usually the app beside it on the same machine — databases belong on localhost in almost every home architecture. A remote-desktop or file-sharing port asks whether its convenience is still in use.
Unfamiliar high ports are most often ephemeral services of legitimate software — update agents, sync tools, discovery beacons. Identify before you condemn; but identification is not optional. 'Probably fine' is how the ghost servers in this series' examples survived for years — every one of them was, at some point, glanced at and waved through.
The skill's end state is fluency at census speed: run the command, sort by the address column, name every wide row, flag the newcomers. Ten minutes, monthly, on each machine that hosts anything. The companion script remains the better tool for the household file (classified, formatted, parseable into the combined report), and ss remains the skill for every other situation — a relative's machine you are helping with, a fresh box with nothing installed, a server whose tooling you do not yet trust.
Either way, the discipline is identical and it is the discipline that matters: the machine's ears are countable, the count is small, and a household that reads the list monthly cannot be surprised by its own computer for long.
Example — fictional, for illustration. A fictional household member, Sam, runs ss -tlnp on the family's Linux mini PC and works the twelve rows with this guide open. The verdicts sort quickly. Expected (7 rows): the proxy on its public port (all interfaces, intended — it is the designated door), the MCP server on 127.0.0.1, the SSH service on the LAN address, and four localhost system services. Narrow it (3 rows): a media server, a sync tool, and a dashboard all sit on 0.0.0.0 though only the house uses them — all three accept a LAN bind, and get one. Investigate (2 rows): an unfamiliar process on a high port resolves, via its parent and package, to a printer utility installed with the printer three years ago; and a database port belongs to a notes app whose only client is the app on the same machine. The printer utility is removed; the database is rebound to localhost after a config change and a restart.
The filed census shows the transformation in three numbers: rows 12 → 11, all-interfaces rows 5 → 1, unexplained rows 2 → 0. Sam's annotation at the bottom is the guide's thesis in handwriting: 'Every row has a name and a reason now. The proxy is the only wide one, and it is wide on purpose.'
Companion reading for this topic: What Does the HomeShield Companion Script Actually List on Your Machine? · How Do You List Listening Ports on a Windows Home Server? · Why Is IPv6 the Exposure Route Home Servers Forget? · How Does Docker Port Publishing Expose a Home MCP Server?.
Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free check on the same address and compare the result with the one you started from, work through the local-scan guide for the inside of the house, and see plans if you want the watching done on a schedule. A change you have not re-measured is a hope, not a fix.
-t limits to TCP, -l to listening sockets (the open ears), -n shows numeric addresses and ports instead of resolving names (faster, and honest — no friendly names hiding the real bind), and -p shows the owning process. Together they print exactly the census this guide reads. Add sudo or the process column hides other users' processes.
[::] is the IPv6 all-interfaces bind; many services listen on both 0.0.0.0 (IPv4 everywhere) and [::] (IPv6 everywhere) as a pair. Count the pair as one service with a wide bind — and remember the IPv6 half when you narrow: a service rebound on IPv4 but still wide on [::] is half-fixed, a state the IPv6 guide exists to catch.
Almost always a privileges issue: re-run with sudo. If it persists, the socket may be owned by the kernel or a container runtime — check the machine's container list next, since container-published ports have their own census habits (see the Docker guide). A listener you truly cannot attribute is a finding in itself; do not wave it through.
Only via what shares the machine: a localhost service is reachable by every local program and by tunnel processes running locally. That is the intended audience for most home servers. The question to ask of localhost rows is identity, not reach — is this the service I think it is, in the version I think it is?
The companion automates this exact census — the same socket information, with binds classified (all interfaces / this machine only / one network address), tunnel processes listed, and output shaped for the combined report. Learn ss for fluency; use the companion for the household file. They are the same audit at two levels of convenience.
HomeShield MCP uses cookies to run the site and, through Google AdSense, to serve ads. Accept or decline non-essential cookies. Details are in the privacy policy.