The doors this device opens
What it is
A computer "opens a door" when it keeps a spot (a port) where other devices can talk to it. As with the doors of a house, each open door has a rule about who may come in. Right after a fresh start NanumOS has no door open toward the internet. One door is on for devices inside your own home network (screen sharing, same network and Wire only); everything else opens only when you turn it on.
What to do now: type doctor in the Terminal, or ask the assistant "which doors are open?". The line "Doors open to the outside" shows what is open right now and who can reach it.
How to use it
| When you turn on | Door | Who can reach it | Where to turn it off |
|---|---|---|---|
| Remote screen (Settings › Sharing) | 5900 | devices on the same network or Wire, with the pairing code | Settings › Sharing |
| Other devices (Zeus door) | 7311 | paired devices only | Settings › Sharing › Connected devices |
| Exchange | 7321 | paired phones only | Settings › Services |
| File receiving (Send nearby) | 47760-47762 | the same network, only while receiving | close the receive window |
| Folder sharing (SMB, Settings › File Sharing) | 445 | devices on the chosen network or Wire, with the account and password | Settings › File Sharing |
Remote terminal (sshd) | 22 | people whose key you registered | press q in the Terminal |
- To see the open doors: the "Doors open to the outside" line of
doctor, orcat /proc/listeners(one door per line:tcp 5900 any). loopbackmeans the door can be reached from this device only, so from outside it is the same as closed.- An unknown door shows as "caution". Unless it is a virtual-machine forward you made or a program you started, turn off the program that opened it.
- Even with a door open, while the firewall is on only connections a rule or a service you turned on allows get in (Firewall).
How it works
Every place that can open a door is written in one sheet, docs/contracts/LISTENERS.md; adding a new door to the code fails the tests until it is written there. The kernel lists the open doors in /proc/listeners and and the desktop writes one log line (GUI listeners ...) whenever they change. The "Doors open to the outside" line reads that list and the code decides whether each door is a known one and whether an inside-only door is open outward (the model does not make that up).
Technical details
- On a machine whose own address is public, screen sharing does not listen at all (
rfbs_tick). - Tests:
tests/node_listeners.py(boots x86 and arm64 and knocks on the ports from the host),tests/test_listeners_static.py(the ledger of bind/listen sites in the code),tests/mac_app.py --only-listeners(the Mac app has no TCP door outside loopback by default).
NanumOS 0.1.8349 · 2026-11-16