Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Nmap Cheatsheet

Scan for a single port on a range of IP addresses.

nmap -p $PORT_NUMBER 192.168.1.*

If you want to scan all IPs from to, you could use a - like so:

nmap -p 80 192.168.0-2.*


Last updated: 28th December 2020
First published: 28th December 2020