netscrew.dev/playbooks/port-states
Networking concepts

Port states — open, closed, filtered, and what the common ports mean

A TCP port can answer three ways. Each one tells you something different about the host, its firewall and what's running.

Read it offline, in your terminal:n -h port-states

n check and n ports <host> try to open a TCP connection to each port. Three outcomes:

| State | What happened | What it means |

|---|---|---|

| open | the handshake completed | a service is listening and the firewall lets you in |

| closed | the host answered *reset* | the host is up and reachable, nothing listens there, no firewall in the way |

| filtered | nothing came back | a firewall dropped the packet — on the host, the router, or in between |

*Closed* is informative: it proves reachability. *Filtered* everywhere usually means a host firewall that drops everything except what it explicitly allows (Windows Defender Firewall on a public profile behaves like this).

The ports netscrew checks first, and why

Scope

Netscrew scans ports on machines you own or administer. Wide audits (all 65 535 ports) are opt-in with --full and are intended for your own hosts.