Beginner guide

How to run an Nmap scan and read the results

Nmap asks devices on a network “which doors are open?” and writes down the answers. Start small, scan only what you are allowed to, and save the result so you can read it calmly afterwards.

1. Install Nmap

Get it from the official Nmap download page. Check it works by typing nmap --version in a terminal.

Windows
Download the installer from nmap.org and keep the Npcap option ticked. Run scans from Command Prompt or PowerShell; some scan types need “Run as administrator”.
macOS
Use the .dmg from nmap.org, or Homebrew: brew install nmap. Prefix scans with sudo for SYN, UDP and OS detection.
Linux
Install from your package manager, e.g. sudo apt install nmap or sudo dnf install nmap. Use sudo for raw-packet scans.

2. Find your network range

Look up your own address: ipconfig on Windows, ip addr on Linux, or System Settings → Network on macOS. If you are 192.168.1.37 with mask 255.255.255.0, your home network is 192.168.1.0/24—the 254 addresses from .1 to .254. The examples below use made-up addresses; replace them with yours.

3. Run a first scan and save it

Pick one line, from gentlest to most detailed. Every example ends with -oX so Nmap saves an XML file Pktivo can open.

nmap -sn -oX hosts.xml 192.168.1.0/24
Which devices are up? Host discovery only, no port scan. Gentle first step.
nmap -oX scan.xml 192.168.1.20
The 1,000 most common TCP ports on one device.
nmap -sV -oX scan.xml 192.168.1.0/24
Common ports plus service and version detection for your whole home subnet.
sudo nmap -sS -sV -O -oX scan.xml 192.168.1.20
SYN scan, versions and an OS guess. Needs administrator rights.
nmap -p 22,80,443 -oX scan.xml 192.168.1.20
Only the ports you list. Faster and quieter.

A /24 scan with -sV can take a few minutes. Press Enter or Space while it runs to see progress. The file is saved in the folder your terminal is in.

4. Open the file in Scan Map

Go to Scan Map, choose Open scan file or drag the file in. You get a host list, a map grouped by subnet, a ports and services table and host details. Nothing is uploaded; the file is cleared when you close the tab.

5. Understand port states

Each port gets one state. These describe what Nmap saw from where you stood, at that moment.

open
A program answered on this port. That is a service you can identify—and should check is meant to be reachable.
closed
The device answered, but nothing is listening on this port. The host is up.
filtered
No clear answer, usually because a firewall dropped the probe. Nmap cannot tell whether a service is behind it.
open|filtered
Common for UDP: no reply, which can mean open or blocked. Not proof either way.
unfiltered
Seen with ACK scans (-sA): the port is reachable, but Nmap cannot say if it is open or closed.

6. Read services and versions carefully

With -sV, Nmap shows names like ssh OpenSSH 9.6 or http nginx. A version is a strong hint, not a guarantee—services can hide or fake banners. An OS guess is a best match with a confidence level. Before worrying about an old version, check whether your vendor has already patched it.

Ask three questions per open port: Do I know what this is? Should it be reachable from here? Is it up to date? Remote desktop, file sharing or databases open to a whole network deserve a closer look.

7. Useful options as you grow

-sV
Ask services for their name and version.
-O
Guess the operating system (needs administrator rights).
-p 1-1024 / -p-
Choose ports: a range, or all 65,535.
-T3 / -T4
Timing. T3 is the default; T4 is faster on reliable networks. Avoid T5 on networks you share.
-Pn
Skip the “is it up?” check—useful when a firewall blocks pings, but slower.
--script default
Run the safe default scripts for extra details.
-oX file.xml
Save XML. This is the file Pktivo Scan Map opens. -oA saves XML, normal and grepable together.

Try the Scan simulator tab in Scan Map to see which packets each scan type sends and to build a command with checkboxes.

8. Compare scans over time

Run the same command again next week and save it under a new name. In Scan Map’s Compare scans tab, load both to see new devices, devices that disappeared, newly open ports and changed versions. A change is a reason to check, not proof of a problem—devices sleep, phones leave and updates change versions.

9. Watch the scan with Wireshark (optional)

To see what a scan really sends, start a Wireshark capture, run a small scan against one of your own devices, stop the capture and open it in the packet viewer. Filter with tcp.flags.syn == 1 to see the probes.

Build the basics

Ports, TCP handshakes and subnets make Nmap results much easier to read. Learn them in the free course.

Pktivo on GitHub
Report bug/Give feedback