Skip to content


Links: 300 home

Scanning hosts


Multiple IP addresses

# multiple IP addresses
nmap ip1 ip2

Range of IP addresses

# range of IP addresses

# exclude certain IPs 
nmap --exclude

Viewing service or port information

nmap -sV

Detecting the operating system

nmap -A

Scan an entire subnet


The above command will take a lot of time depending on the number of devices in the network. To speed it up we can use the following option.

nmap -sP

Faster scans

  • T5 is one of the timing templates for nmap.
    • It is the fastest.
    • There might be some inaccuracies.
T3 is the default when no option is specified.
nmap -T5

Last updated: 2022-07-26