Port Scanner Output Interpreter
Port scans show up on Network+, PenTest+ and CySA+ — not as a command to memorise, but as output you have to read. Below are six realistic scanner outputs. Read each one, answer its three questions, and get graded on the spot. No scanner is run here: everything on this page is a worked example, and nothing leaves your browser.
Open vs closed vs filtered — the three words that matter
Every port in a scan result is in one of three states. Learn these and half the exam questions answer themselves:
| State | What it means | What the scanner saw |
|---|---|---|
| Open | A service is listening and answered. | A connection succeeded (SYN scan: SYN-ACK came back). |
| Closed | The port is reachable, but no service is listening there. | A reset (RST) came back — the host is up and answering, the door is just shut. |
| Filtered | The scanner got no response at all, so it cannot tell whether the port is open or closed. | Something in the middle — usually a firewall — dropped the probe silently. |
The trap to remember: filtered does not mean closed. A filtered port may have a live service hiding behind a firewall, and a closed port is proof of nothing except that nothing is listening right now. When a question asks what to do next, the safe answer is almost always to investigate the filtered port (or the open service) — never to assume it away.
Two flags you will see in these outputs: -sS is the SYN scan (the default stealth scan: send SYN, wait for SYN-ACK or RST, never complete the handshake), and -sV is version detection (probe each open port and report the service and version it finds).
Scenario 1 — A normal web server
An internal web server at 192.168.1.10. The scan below is the standard Nmap layout: the host, then one line per port with its state and service.
$ nmap -sS 192.168.1.10 Starting Nmap 7.94 ( https://nmap.org ) Nmap scan report for 192.168.1.10 Host is up (0.0012s latency). Not shown: 994 closed tcp ports (reset) PORT STATE SERVICE 21/tcp closed ftp 22/tcp open ssh 23/tcp closed telnet 80/tcp open http 443/tcp open https 3306/tcp filtered mysql Nmap done: 1 IP address (1 host up) scanned in 1.84 seconds
Scenario 2 — Most ports filtered: a firewall is in front
A host at 10.0.0.50. Almost every port comes back filtered — the signature of a firewall dropping probes before they reach the host.
$ nmap -sS 10.0.0.50 Starting Nmap 7.94 ( https://nmap.org ) Nmap scan report for 10.0.0.50 Host is up (0.0041s latency). Not shown: 995 filtered tcp ports (no-response) PORT STATE SERVICE 53/tcp open domain 22/tcp filtered ssh 80/tcp filtered http 443/tcp filtered https 3389/tcp filtered ms-wbt-server Nmap done: 1 IP address (1 host up) scanned in 4.92 seconds
Scenario 3 — An unexpected open port on an internet-facing host
A public-facing server at 203.0.113.45. Three open ports are expected. One is not — read the output before you answer.
$ nmap -sS 203.0.113.45 Starting Nmap 7.94 ( https://nmap.org ) Nmap scan report for 203.0.113.45 Host is up (0.028s latency). Not shown: 995 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 443/tcp open https 445/tcp filtered microsoft-ds 3389/tcp open ms-wbt-server Nmap done: 1 IP address (1 host up) scanned in 2.31 seconds
Scenario 4 — A Masscan fast-scan result
Masscan is built for speed: it can sweep a whole range in seconds and prints only what it found. That speed comes with a trade-off — read what is missing from this output as carefully as what is in it.
$ masscan -p1-10000 198.51.100.23 --rate=10000 Starting masscan 1.3.2 (https://github.com/robertdavidgraham/masscan) Discovered open port 80/tcp on 198.51.100.23 Discovered open port 443/tcp on 198.51.100.23 Discovered open port 22/tcp on 198.51.100.23 # Masscan done in 1.12 seconds
Scenario 5 — Only one port open, the rest closed (not filtered)
A host at 192.168.1.25 with a single service exposed. Note the word in the STATE column — it is closed, and that word is doing real work here.
$ nmap -sS 192.168.1.25 Starting Nmap 7.94 ( https://nmap.org ) Nmap scan report for 192.168.1.25 Host is up (0.0010s latency). Not shown: 995 closed tcp ports (reset) PORT STATE SERVICE 21/tcp closed ftp 22/tcp closed ssh 25/tcp closed smtp 80/tcp closed http 443/tcp open https Nmap done: 1 IP address (1 host up) scanned in 1.52 seconds
Scenario 6 — A version scan finds an old FTP service
The same kind of host as Scenario 1, rescanned with -sV so Nmap probes each open port and reports the service version. One version number should make you stop and check.
$ nmap -sV 192.168.1.40 Starting Nmap 7.94 ( https://nmap.org ) Nmap scan report for 192.168.1.40 Host is up (0.0015s latency). Not shown: 995 closed tcp ports (reset) PORT STATE SERVICE VERSION 21/tcp open ftp vsftpd 2.3.4 22/tcp open ssh OpenSSH 7.2p2 23/tcp filtered telnet 80/tcp open http Apache httpd 2.4.18 445/tcp closed microsoft-ds Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 6.40 seconds
Quick reference — the ports in these scenarios
| Port | Service | Port | Service |
|---|---|---|---|
| 21 | FTP | 110 | POP3 |
| 22 | SSH | 143 | IMAP |
| 23 | Telnet | 443 | HTTPS |
| 25 | SMTP | 445 | SMB (Microsoft-DS) |
| 53 | DNS | 3306 | MySQL |
| 80 | HTTP | 3389 | RDP (ms-wbt-server) |
On the exam, a port number is usually the whole question: if you know 3389 is RDP and 445 is SMB, the "which service is exposed?" questions answer themselves. The Common Ports Quiz drills all of these.
Port states show up on Network+, PenTest+ and CySA+
Reading scan output is a small skill with an outsized exam payoff. Try the free 30-question samples and see where you stand.
Free Network+ SampleFree CySA+ SamplePort scanner FAQ
What does "filtered" mean in an Nmap scan?
Filtered means Nmap got no response to its probe, so it cannot tell whether the port is open or closed. It usually means a firewall is dropping the packets. Never read "filtered" as "closed" — a live service may be hiding behind the filter.
What is the difference between "closed" and "filtered"?
A closed port answered with a reset (RST): the host is reachable and no service is listening there. A filtered port answered with nothing at all. Closed is information; filtered is the absence of information.
What does Nmap -sV do?
-sV is version detection: after finding the open ports, Nmap probes each one and reports the service and version running there, for example "vsftpd 2.3.4" on port 21. That version is what you check against known vulnerabilities — and what tells you a service is out of date and needs patching.
Is it legal to run a port scan?
Only on systems you own or have explicit permission to test. Scanning without authorisation can be illegal and can be treated as the start of an attack. On the exam, "do not scan further without authorisation" is very often the correct next step.