UnixDroid

Networking · Beginner

Nmap tutorial for beginners

Make a map of the devices and services on your own network

Nmap screen demo — an illustration with sample data

What is Nmap?

Nmap (Network Mapper) is a free tool that finds devices on a network and shows which services they run. Administrators use it to keep an inventory and to spot services that should not be open.

How Nmap works

  1. 1

    Discover

    Find which of your devices are switched on.

  2. 2

    Check ports

    See which doors are open on a device.

  3. 3

    Identify services

    Learn which program and version answers.

  4. 4

    Fix

    Close or update what you do not need.

What does it do?

It sends small network messages and reads the replies to learn which devices answer and which ports are open.

What is a port?

A numbered door on a computer. Port 443 usually serves secure websites, port 22 remote logins.

Practise safely

Start with your own computer (localhost), then your own home lab.

Nmap first steps

nmap --version

Check the installation

nmap localhost

See open ports on your own computer

nmap -sV localhost

Show service versions on your own computer

nmap -sn 192.168.1.0/24

List devices on your own home network

man nmap

Read the manual

Use Nmap safely and legally

Scan only devices you own or have written permission to test. On office or college networks always ask the administrator first.

Practise only on your own computer, your own network or a lab that gives you permission. Using security tools on systems that are not yours can be a crime (in India under the IT Act).

Nmap — common questions

What is Nmap used for?

Nmap (Network Mapper) is a free tool that finds devices on a network and shows which services they run. Administrators use it to keep an inventory and to spot services that should not be open.

Nmap kya hai?

Nmap ek network mapping tool hai jisse aap apne network ke devices aur unki open services dekh sakte ho.

Is Nmap legal?

The tool is legal; scanning systems without permission may not be.

Does Nmap have a GUI?

Yes, Zenmap is its graphical version.

Related topics: nmap tutorial · nmap kya hai · nmap commands for beginners · network scanning basics