A home network usually has more on it than its owner can name: a smart plug, an old printer, a TV that opened a port nobody asked for. nmap lists them in seconds. It also prints a service name next to every open port, and that label is a guess based on the port number, which a test below shows getting two out of two wrong. Every scan here ran with nmap 7.94 against a small lab network of three containers built for the purpose on a private 172.30.0.0/24 subnet, so the results could be checked against what was actually running.
Scan only what is yours
The rule first
Nmap’s own book, in its chapter on legal issues, says the best way to avoid controversy is to always secure written authorization from the target network’s representatives before scanning, and notes that scanning a person’s own machine or the networks they administer is rarely a problem. A home network that belongs to the person scanning it is the clear case. A neighbor’s Wi-Fi, an employer’s network without permission, or a range of internet addresses is not. Laws on unauthorized scanning differ by place, so when in doubt, scanning only one’s own equipment is the safe line.
The lab
The test network had three hosts: a web server on 172.30.0.10 listening on port 80, a “NAS” stand-in on 172.30.0.20 with a web page on port 8080 and a plain listener on port 445, and a quiet host on 172.30.0.30 with nothing obvious running. Nmap ran from the gateway address, 172.30.0.1, the way it would from a laptop on the same Wi-Fi.

Step one: who is on the network
The ping sweep
-sn asks nmap to find live hosts without scanning any ports:
$ nmap -sn 172.30.0.0/24
Nmap scan report for 172.30.0.10
Host is up (0.000012s latency).
MAC Address: 1E:F7:48:61:0E:8B (Unknown)
...
Nmap done: 256 IP addresses (4 hosts up) scanned in 1.86 seconds
It found all three lab hosts plus the gateway, out of 256 addresses, in under two seconds.
Reading the MAC line
On the same local network, nmap also reports each device’s hardware (MAC) address and, where it recognizes the manufacturer prefix, a vendor name. The lab containers use randomly generated addresses, so all three came back as (Unknown). On a real home network, that column is often the quickest way to tell which unnamed address is the printer and which is the smart TV. Phones that randomize their Wi-Fi address will also show (Unknown), so an unrecognized device is not necessarily an intruder.
Step two: what each device is listening on
The default scan
Run with no options other than the targets, nmap scans the most common TCP ports on each host:
Nmap scan report for 172.30.0.10
Not shown: 999 closed tcp ports (reset)
PORT STATE SERVICE
80/tcp open http
Nmap scan report for 172.30.0.20
Not shown: 998 closed tcp ports (reset)
PORT STATE SERVICE
445/tcp open microsoft-ds
8080/tcp open http-proxy
Nmap scan report for 172.30.0.30
All 1000 scanned ports on 172.30.0.30 are in ignored states.
All three hosts were scanned in 0.13 seconds.
Only 1,000 ports, by design
Nmap’s reference guide says that by default it scans the most common 1,000 ports for each protocol. That covers most ordinary services. It does not cover everything, as the quiet host showed later.

The SERVICE column is a guess
Two labels, both wrong
The default scan said port 445 on the NAS was microsoft-ds, the Windows file-sharing service, and port 8080 was http-proxy. Neither was true. Port 445 was a bare nc listener that accepted a connection and said nothing, and port 8080 was an ordinary web server, not a proxy.
Why
Nmap’s documentation explains that without version detection it names ports using its nmap-services database of about 2,200 well-known services, reporting that a port probably corresponds to the service usually found there. That is a lookup by port number. Anything can listen on any port.
Asking the service itself
-sV turns on version detection, which connects and sends probes to see how each service actually responds:
PORT STATE SERVICE VERSION
80/tcp open http
445/tcp open tcpwrapped
8080/tcp open http-proxy
Port 445 changed to tcpwrapped, meaning the connection was accepted and then closed without the service identifying itself, which is accurate for a listener that says nothing. For the two web servers, nmap collected their real responses, including HTTP/1.1 200 OK and the page content, but did not recognize the small BusyBox web server and printed a fingerprint for submission instead. It kept the guessed http-proxy name on 8080. The full scan of six ports took 92 seconds, compared with a fraction of a second without -sV. Version detection is slower because it waits on real conversations.
Ports the default scan never looks at
The hidden listener
Two more listeners were started on the quiet host: one on port 40000, and one on port 2222 behind a firewall rule that silently dropped incoming packets. The default scan found only one of them:
Not shown: 999 closed tcp ports (reset)
2222/tcp filtered EtherNetIP-1
Port 40000 is not among the 1,000 most common ports, so the default scan never tried it.
Scanning everything
-p- scans all ports from 1 to 65,535:
Not shown: 65533 closed tcp ports (reset)
2222/tcp filtered EtherNetIP-1
40000/tcp open safetynetp
On the lab network it took 1.8 seconds. Over real Wi-Fi a full scan is much slower, but it is the only way to be sure nothing is listening on an unusual port. Note the label again: safetynetp is simply what the database lists for port 40000.

open, closed and filtered
What each state means
Nmap’s port-scanning guide lists six port states. The three that matter most at home:
- open: an application is accepting connections on the port.
- closed: the port is reachable and answers, but no application is listening.
- filtered: nmap cannot determine whether the port is open because packet filtering prevents its probes from reaching it.
Seeing filtered in action
Port 2222 had a real listener behind it, but the firewall rule dropped nmap’s packets, so nmap got no answer at all and reported filtered. A closed port answers with a reset immediately; a filtered one goes silent. When the rule was removed, the same port would show open. On a home network, filtered usually means a device’s own firewall is doing its job, and occasionally that a router or firewall rule is blocking something that was supposed to work.
UDP adds a fourth answer
Everything above is TCP. Many home devices also listen on UDP, for discovery, DNS or streaming, and UDP scanning (-sU) works differently because UDP has no handshake. Three ports were tested on a local address: one with a program that received packets and never replied, one with a program that answered every packet, and one with nothing listening:
6000/udp open|filtered X11
6001/udp open X11:1
6002/udp closed X11:2
Only the service that answered could be proven open. Nmap’s guide explains that when no response comes back after retries, the port is classified open|filtered: it could be open, or a filter could be eating the packets. A silent service and a firewall look the same from outside.
And it is slow
A UDP scan of the 100 most common ports on one lab host, all closed, took 107.6 seconds, against a fraction of a second for TCP. The same guide gives the reason: closed UDP ports answer with an ICMP “port unreachable” message, and many hosts rate-limit those messages, Linux in particular, so nmap has to slow down to match. Scanning UDP across a whole home network is a job to start and walk away from.
Without root
The scans above ran as root. Run as an ordinary user, the same TCP scan still worked and found port 80 open, because nmap falls back to completing full connections; the guide notes unprivileged users can only run connect scans. The UDP scan refused outright: You requested a scan type which requires root privileges.
Saving a scan to compare later
A scan is most useful the second time, when it can show what changed. The -oG option writes a compact one-line-per-host format that plain diff can compare. Two scans of the same address were saved, the second after a new web server was started on port 8082:
< Ports: 8081/open/tcp//blackice-icecap/// Ignored State: closed (100)
> Ports: 8081/open/tcp//blackice-icecap///, 8082/open/tcp//blackice-alerts/// Ignored State: closed (99)
The new port stood out immediately, again with a meaningless database label: both ports were Python’s built-in web server. Saving a baseline scan of a home network after setting it up, and re-running it every few months, turns nmap from a one-off curiosity into a way of noticing that a new device or an update has opened something.
A home checklist
A short routine covers most of what a home scan is for: run nmap -sn on the home subnet and account for every address; run a default scan on each unfamiliar device; run -p- on anything that should be exposing nothing, such as a smart plug or camera; and use -sV on any open port whose label does not make sense. The earlier post on subnet masks and CIDR explains how to work out the right address range to give nmap, and the tcpdump post shows how to watch what a device actually sends.
Sources
- Legal Issues, Nmap Network Scanning (nmap.org): https://nmap.org/book/legal-issues.html
- Port Specification and Scan Order, Nmap Reference Guide: https://nmap.org/book/man-port-specification.html
- Service and Version Detection, Nmap Reference Guide: https://nmap.org/book/man-version-detection.html
- Port Scanning Basics, Nmap Reference Guide: https://nmap.org/book/man-port-scanning-basics.html
