Skip to content
Commitpedia
Log in Join & edit

Nmap: the network mapper for inventorying your own network

Nmap is the long-standing open source tool for discovering hosts, open ports, services and operating systems on a network you administer, used to inventory systems and verify that firewall rules behave as intended.

Drafted with AI from official documentation. Scripts were run in a test environment and repository links verified. Awaiting a human check. Did it work for you? Last edited Outdated?

Edit history of Nmap: the network mapper for inventorying your own network: 1 recorded edit
Edit history · 1 edit
Type
Repo
Edits
1
Editors
1
First issued
15 Oct 2026
Last edit
15 Oct 2026
Source
nmap/nmap

nmap/nmap

Stars
13.8k
Forks
2.9k
Language
C
Licence
NOASSERTION
Last push
15 Oct 2026

On GitHub: Nmap - the Network Mapper. Github mirror of official SVN repository.

Open on GitHub

Nmap (about 14,000 stars on GitHub, with the canonical source at nmap.org) is the Network Mapper, first published by Gordon Lyon, known as Fyodor, in 1997 and developed continuously since. It is one of the oldest security tools still in daily use and is written in C and C++ with scripting in Lua. Lyon’s company Nmap Software LLC maintains it, with a group of long-term contributors. The GitHub repository is a mirror of the project’s own Subversion repository, which is why its star count understates how widely the tool is used.

What it does

Nmap sends packets to a range of addresses and ports and interprets the answers. From them it tells you which hosts are up, which TCP and UDP ports are open, closed or filtered, which services and versions are listening, and often which operating system is running. The Nmap Scripting Engine (NSE) adds several hundred Lua scripts for tasks such as reading TLS certificates, listing SMB shares, checking for default credentials or detecting a specific vulnerability. Companion tools in the same package include ncat (a network Swiss army knife), ndiff (compare two scans), nping (packet generation) and the Zenmap graphical front end.

Who it is for

  • Administrators who need an inventory of what is actually reachable on their network, as opposed to what the documentation claims.
  • Anyone who has just written a firewall rule and wants to confirm from the outside that a port really is closed.
  • Developers checking which ports their own container or virtual machine exposes.
  • Security professionals performing authorised assessments, where Nmap is usually the first tool run.

How to install and try it

Check before you run this

  • Runs with administrator rights. Make sure you understand every line.
sudo apt install nmap
nmap --version
nmap -sV 192.168.1.0/24

The third command scans every address in a home or lab network for common ports and tries to identify the services. Running as root enables faster SYN scans and OS detection. Packages exist for every major distribution, Homebrew and Windows installers are on the official site, and the reference guide explains scan types, timing and output formats such as XML and grepable text.

Use it responsibly

Scan only networks and hosts you own or are explicitly authorised to scan. Port scans are noisy, set off intrusion detection systems and, against addresses that are not yours, may violate your provider’s terms or the law. Inside your own network, prefer narrow ranges and the default timing so that embedded devices are not overwhelmed.

Credit

Nmap was created by Gordon Lyon and is maintained by Nmap Software LLC and its contributors. It is published under the Nmap Public Source License, a GPL-derived licence with additional terms; the official site explains the conditions and offers a commercial licence for products that embed Nmap.

Did this work for you?

No votes yet. Be the first.

If it did not work, the report form below tells the editors what went wrong.

See also

  • 0266 What is a port? A port is a numbered door on a computer that lets one machine run many network services at the same time. Beginner · Explains an idea · Any system Article DNS, IP addresses & ports 15 Oct 2026
  • 0274 What is DNS? DNS is the internet's phone book: it turns names like example.com into the IP addresses computers actually use. Beginner · Explains an idea · Any system Article DNS, IP addresses & ports 15 Oct 2026
  • 0275 What is an IP address? An IP address is the unique number that identifies a device on a network so data knows where to go. Beginner · Explains an idea · Any system Article DNS, IP addresses & ports 15 Oct 2026
  • 0341 DNS, IP addresses and ports explained for beginners An IP address says which machine, a port says which program on it, and DNS turns names into addresses. The three ideas… Beginner · Explains an idea · Linux, macOS Article DNS, IP addresses & ports 15 Oct 2026
  • 0342 Which process is using a port, and how to free it Find the program behind a busy port with ss, lsof or fuser, decide whether to stop it properly or kill it, and… Beginner · Step by step · Linux, macOS Article DNS, IP addresses & ports · Networking & firewalls 15 Oct 2026
  • 0343 Fix: Connection refused and Connection timed out, what each one means Refused means the host answered and nothing is listening there. Timed out means no answer at all, usually a firewall or wrong… Beginner · Fixes an error · Linux, macOS Article DNS, IP addresses & ports · Firewalls 15 Oct 2026

History

Every saved edit is kept. The plot on the sleeve draws one line per edit. Open any edit to see exactly what changed.

  1. Dominik +2,779 chars

Report a problem

Something wrong, unsafe or copied? Tell the editors.
What is wrong?