Post

The Port That Does Not Exist

TCP port 0 is reserved and normally means “choose an ephemeral port” to bind(), but it can still appear on the wire and a NAT rule can forward it to an ordinary service. An internet-wide scan found exposed devices and services there, including phone systems that streamed call records without authentication.

The author notes an important measurement caveat: many SYN-ACKs came from dense address blocks and appear to be edge devices answering for whole ranges, not individual servers. Linux’s getpeername() also reports a working connection to port 0 as unconnected, illustrating how tooling assumptions can obscure what is reachable.