An Nmap scan result provides a detailed snapshot of a target host or network security posture. At its core, Nmap is output that confirms whether a host is active and then carefully lists each scanned port, providing details such as the port number, its state, the running service, etc. When Nmap is enabled, it shows the version of the service. This information helps security professionals assess what services are exposed, identify outdated or vulnerable software, and determine the potential attack surface of the host.
Structure of Nmap Results
Here is the basic structure of Nmap results when you put the IP (203.115.7.170)
Starting Nmap 7.80 ( https://nmap.org ) at 2025-08-02 15:08 IST
Nmap scan report for 203.115.7.170
Host is up (0.095s latency).
Not shown: 995 closed ports
PORT STATE SERVICE VERSION
23/tcp open telnet Cisco IOS telnetd
1720/tcp filtered h323q931
2000/tcp filtered cisco-sccp
5060/tcp filtered sip
5061/tcp filtered sip-tls
Service Info: OS: IOS; Device: switch; CPE: cpe:/o:cisco:iosNmap Port States
Nmap classifies ports into six states, depending on how the target responds.

Letâs explore how Nmap classifies ports into specific states. To demonstrate this, weâll use sample results from actual port scans performed with Nmap.
1. Open
If a target host is accepting connections on a port, it indicates that a service like HTTP, SSH, or FTP is actively running and listening. While open ports are essential for network functionality, each one also presents a potential entry point for attackers. From a security perspective, itâs important to minimize open ports and regularly monitor them to reduce the attack surface and detect unauthorized access.
Syntax
nmap -p 22 <target IP>Example
nmap -p 23 159.168........
2. Closed
If a port is reachable but no application is listening, it is classified as "closed." This indicates that the host is up and responding, even though no service is currently using that port. While closed ports are not immediately exploitable, they still provide useful information to attackers during reconnaissance, such as confirming that the system is online or identifying potential future services. To enhance security, systems should be configured to minimize such responses or use firewalls to drop unsolicited requests.
Syntax
nmap -p23 <target IP>Example
nmap -p 23 159.168........
3. Filtered
When Nmap reports a port as "filtered," it means it cannot determine whether the port is open or closed because a firewall, router, or other security device is blocking the probe. No response or an error response is received, preventing accurate detection. This is often seen in well-secured or hardened environments where access is tightly controlled to prevent reconnaissance and attacks. While filtered ports offer better protection, they may also require careful tuning to avoid accidentally blocking legitimate traffic.
Syntax
nmap -Pn -p 22 <target IP>Example
nmap -Pn -p 22 192.168.1.1
4. Unfiltered
When a port is marked as "unfiltered" in Nmap, it means the port is accessible and not blocked by a firewall, but Nmap cannot determine whether itâs open or closed typically seen with TCP ACK scans (-sA). This state suggests that the firewall is allowing packets through but isnât giving enough information about the actual port status.
Syntax
nmap -sA -Pn -p 80 <target IP>Example
nmap -sA Pn -p 80 159.168.1.10
5. Open | Filtered
When Nmap reports a port as âopen|filtered,â it means it cannot tell if the port is open or simply filtered by a firewall. This state usually occurs during UDP scans (-sU)
Syntax
sudo nmap -sU -p 161 <target IP>Example
sudo nmap -sU -p 161 192.161.1.1
6. Closed | Filtered
When Nmap reports a port as âclosed|filtered,â it means it canât tell if the port is closed or filtered. This state occurs rarely and mainly with special scans like the IP Protocol Scan (-sO)
Syntax
sudo nmap -sO -p 1 <target IP>Example
sudo nmap -sO -p 1 44.228.249.3Summary
Here is a short state and meaning summary table for easily understanding in Nmap.
| State | Meaning | Purpose / Implication |
|---|---|---|
| open | Port accepts connections | A service (like HTTP, SSH, FTP) is actively running and listening |
| closed | Port is accessible, but no service is listening | Host is reachable, but there's no app bound to that port |
| filtered | Nmap canât determine port status | Packet is blocked by a firewall/router; no response received |
| unfiltered | Port is reachable, but status is unclear | Nmap knows the port is accessible, but canât say if itâs open or closed; common in ACK scans (-sA) |
| open|filtered | filtered | Nmap canât tell if the port is open or filtered |
| closed|filtered | filtered | Nmap canât tell if the port is closed or filtered |
Advanced Scan Port Commands in Nmap
Here is some Basic Port Commands in Nmap to help you quickly understand and use port scanning options effectively:
TCP SYN Stealth Scan
It is one of the most popular and efficient Nmap scan types. It's often called a âhalf-openâ scan because it doesn't complete the full TCP handshake.
Example:
sudo nmap -sS -Pn 103.16.155.26
Scan a range of ports
Scanning a range of ports means checking multiple consecutive ports (e.g., 1 to 1000) on a target system to find which ones are open, closed, or filtered. This is useful to discover running services that may not use standard ports.
Example:
sudo nmap -sS -Pn 1-1000 10.143.85.1
Scan all ports (1 to 65535)
To find hidden or non-standard services and also find bypass basic firewall configurations that only protect common ports. It is used to find out for deep vulnerability assessment or penetration testing.
Example:
nmap -p- 10.143.85.1UDP port scan
A UDP port scan checks which UDP ports (1â65535) on a target system are open and potentially running services. Most services run over TCP, but many important ones use UDP. Since UDP is connectionless, it's harder to detect and block, making it a favorite for attackers and security testing.
Example
sudo nmap -sS -sU -p T:22,80,443,U:53,161 10.143.85.102
Scan multiple IPs or subnets
It is used to scan more than one host to identify vulnerabilities, detect services, or audit firewall configurations. Nmap supports scanning multiple IPs, IP ranges, and entire subnets in a single command.
Example
nmap 10.143.85.102 220.247.220.225 203.115.7.170
Aggressive scan with version & OS detection
An Aggressive Scan in Nmap enables a set of powerful features that gather detailed information about a target system. Itâs triggered using the -A option and combines several scan types into one command.
- OS Detection (
-O) - Version Detection (
-sV) - Script Scanning (
-sC) - Traceroute
Example


