# A Hacker Scanned the Entire Internet for Port 0 and Found 1.1 Million Devices Hiding There

Original title: Port 0: The Port That Does Not Exist

> Hacker News story 50403063 · language: en · submitted 2026-11-07
> Web version: https://zeli.app/story/50403063
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 59 · by [NewCzech](<https://news.ycombinator.com/user?id=NewCzech>) · 💬 26
[original](<https://acid.vegas/blog/the-port-that-does-not-exist/>) · [HN discussion](<https://news.ycombinator.com/item?id=50403063>)

## Summary

Port 0 is reserved, ignored by browsers, and rejected by most tools, so nobody looks there. The author redirected an IRC network onto port 0 with a single iptables rule, then used masscan to SYN-scan all of IPv4 for it. Over 1.1 million addresses completed the handshake and stayed silent; nearly all the rest were F5 BIG-IP load balancers complaining in RST packets. The survivors were ordinary SSH, MySQL, telnet, and router logins, mostly embedded gear whose NAT rules shipped with the external port left at zero.

## Key quote

> Linux uses "destination port is 0" as its internal marker for "this socket isn't connected to anything." A socket that really is connected to port 0 trips that check, so getpeername() returns ENOTCONN on a working connection.

## HN discussion (26 comments)

### [afn](<https://news.ycombinator.com/item?id=50403788>)

> https://web.archive.org/web/20261106234640/https://acid.vega...

### [greggsy](<https://news.ycombinator.com/item?id=50403653>)

> I saw the URL and immediately thought it was about Acid Pro DAW or Vegas video editor is used to use back in the early 00’s.

### [99harry](<https://news.ycombinator.com/item?id=50404468>)

> Sometimes I have scripts that automatically assign ports starting from 30000. How would that work? Would I have to bind to port 0 multiple times until I randomly get a port in that range?

---

## Cite

- Page: https://zeli.app/story/50403063
- Date: 2026-11-07
- Source: acid.vegas (https://acid.vegas/blog/the-port-that-does-not-exist/)
- Hacker News: https://news.ycombinator.com/item?id=50403063

## Other languages

- zh: https://zeli.app/zh/story/50403063 · markdown: https://zeli.app/zh/story/50403063.md
- ja: https://zeli.app/ja/story/50403063 · markdown: https://zeli.app/ja/story/50403063.md
- ko: https://zeli.app/ko/story/50403063 · markdown: https://zeli.app/ko/story/50403063.md
- de: https://zeli.app/de/story/50403063 · markdown: https://zeli.app/de/story/50403063.md
- es: https://zeli.app/es/story/50403063 · markdown: https://zeli.app/es/story/50403063.md
- ru: https://zeli.app/ru/story/50403063 · markdown: https://zeli.app/ru/story/50403063.md
