Nmapfor Windows, macOS, Linux

Network discovery and security auditing tool with a powerful scripting engine.

  • Open source
  • NPSL license
  • By Nmap Project

Scan and capture only on networks you own or have written permission to assess. Read the authorization checklist.

Nmap overview

Nmap (short for Network Mapper) is the tool most working admins reach for when they need to know exactly what is on a network and what it is running. It is made by the Nmap Project, the long-running open-source effort started by Gordon Lyon (you will see him online as “Fyodor”). If you look after a small or mid-sized office network, here is the honest positioning: Nmap is the most capable free scanner you can install, and also the one most likely to make you feel out of your depth on day one. It rewards people who are comfortable at a command line and don’t mind reading documentation.

In a corporate network, Nmap helps administrators track down problems that surface as vague complaints — “something changed” or “that server stopped responding.” It maps what is actually running, confirms whether firewall rules are doing what the documentation says they do, and catches rogue services or devices that should not be on the network. When an incident happens, a quick Nmap scan gives the admin a factual starting point instead of guesswork.

What Nmap actually does

At its core, Nmap answers three questions: which hosts on this network are alive, which ports on those hosts are open, and what is listening behind those ports. It sends carefully shaped packets, watches how each machine responds, and builds a picture from the replies.

Beyond that basic sweep, it does service and version detection — so instead of “port 443 is open” you get “this looks like a specific web server, roughly this version.” It attempts OS fingerprinting by comparing response quirks against a large database. And it ships the Nmap Scripting Engine (NSE), a library of scripts (written in Lua) that automate everything from grabbing banners to checking for well-known misconfigurations. There is an official graphical front end, Zenmap, plus companion utilities like Ncat, Nping, and Ndiff for comparing two scans to see what changed.

How administrators use it

Auditing firewall rules after a change window. After the firewall team pushes new ACLs, run nmap -sS -p 1-1024 <subnet> against the affected subnets and compare the results to a baseline you saved before the change. Ndiff will highlight any port that is now open or closed that should not be. This takes five minutes and catches misapplied rules before users start reporting broken access.

Inventorying services before a patching cycle. Before rolling out OS patches across a server fleet, scan the target hosts with version detection (nmap -sV) to confirm exactly which services and versions are running. The output tells you whether anything unexpected appeared since the last audit — a rogue web server on a workstation, an old SSH daemon nobody retired — so you know what you are actually patching.

Tracking network drift with scheduled scans. Save a scan command in a cron job that runs weekly against your production VLANs and writes the result to a dated XML file. Use ndiff to compare this week’s scan to last week’s. Any new host or newly opened port shows up as a one-line diff — a simple, free change-detection system for a team with no monitoring budget.

Verifying a segmentation project. When the network team finishes splitting a flat LAN into isolated VLANs, scan from one VLAN toward the others to confirm that inter-VLAN traffic is blocked as designed. Nmap’s output will show filtered or closed ports where access should be denied, giving you concrete proof that the segmentation policy is enforced rather than trusting the diagram alone.

Where it shines

Depth. Nothing else on the free end of the spectrum tells you as much about a host. When you need to inventory services for patching, confirm a firewall is actually blocking what you think it blocks, or check what a new device is exposing, Nmap gives you a level of detail that GUI point-and-click scanners simply don’t.

Scriptability and repeatability. Because it is command-line first, you can save a scan as a one-line command, drop it in a cron job or a script, and run the exact same audit next month. Pair that with Ndiff and you have a lightweight way to spot “something new opened a port that wasn’t open before” — genuinely useful for a small team with no monitoring budget.

It’s everywhere and well documented. Nmap has been around for decades, so almost any problem you hit has already been answered somewhere, and its reference material is thorough and free.

Where it falls short

The learning curve is real. The flags are terse, the output is dense, and it is easy to run a scan that is slower than it needs to be or that misses hosts because you picked the wrong discovery method. If you just want a table of “what’s on my Wi-Fi right now,” Nmap is more tool than you need and the first hour can be frustrating.

It is not a monitoring system. Nmap takes a snapshot; it does not watch your network continuously, alert you, or keep a tidy asset database over time. You bolt that on yourself with scripts, or you use a different category of product.

Aggressive scans can upset things. Version detection and heavy NSE scripts can trip intrusion-detection systems or, rarely, disturb fragile devices like old printers or industrial gear. On a production network you scan deliberately, not with every option turned up.

Who it’s for

Reach for Nmap if you are the technical person on a team, you are comfortable in a terminal (or willing to get there), and you want one free tool that will still be useful as your questions get harder. It is ideal for security-minded audits, verifying firewall rules, and building repeatable checks. If you are an office manager who just needs to see which devices are connected, or you want a friendly Windows helpdesk tool, you will likely be happier starting somewhere gentler and keeping Nmap in reserve.

Licensing and cost

Nmap is free and open-source, distributed under the Nmap Public Source License (NPSL) — a license the project maintains that draws on the GPL with some added terms. For ordinary in-house use you can download and run it at no cost. If you plan to redistribute it or bundle it inside a commercial product, read the license text carefully or contact the project, because those scenarios have specific conditions.

How it compares

Angry IP Scanner is the friendlier cross-platform alternative: a graphical tool that gives you a fast host-and-port table in seconds. It trades Nmap’s depth and scripting for approachability, and it is the sensible pick when you don’t need service fingerprinting.

Advanced IP Scanner is Windows-only freeware aimed at helpdesk work — device discovery, shared folders, remote actions — with almost no learning curve. It cannot do what NSE does, but for “who is on the LAN and can I remote in,” it is quicker to results.

Wireshark is not really a competitor; it answers a different question. Where Nmap maps hosts and ports, Wireshark inspects the actual packets when you need to understand why a connection is failing. Many admins keep both.

Getting it safely

Get Nmap from the Nmap Project’s official site (nmap.org) or from a trusted operating-system package repository. We are an independent review portal — we host nothing and distribute no installers. Because scanners are a favorite thing for bad actors to trojan, always confirm you have the genuine file: see our short guide on how to verify a download. And scan only networks you own or have written permission to assess — start with our authorization checklist before you point it at anything.

How to verify what you got. The Nmap project publishes SHA-256 checksums and GPG signatures alongside every release on nmap.org. After obtaining the installer or tarball, compare its SHA-256 hash against the one listed on the official page (on Windows: certutil -hashfile nmap-setup.exe SHA256; on Linux/macOS: sha256sum or shasum -a 256). For stronger assurance, verify the GPG signature using the Nmap project’s signing key, which is published on the site and on public keyservers. If the hash does not match or the signature fails, delete the file — you do not have the genuine build.

FAQ

Is Nmap safe to run on my own network? Yes, on networks you control. A basic discovery scan is gentle. Just be a little careful with aggressive version detection or heavy scripts against fragile devices, and avoid blasting a production network during business hours.

Do I have to use the command line? Not strictly — Zenmap, the official GUI, wraps common scans in a visual interface and even shows you the command it builds. But you will get the most out of Nmap once you are comfortable typing scans directly.

Is Nmap enough on its own for network monitoring? No. It is a scanner, not a monitor. It tells you what is there right now. For ongoing alerts and history you would add scripting or move to a dedicated monitoring product.