Is there a way to scan an entire network using nmap?
What I want to do is scan my network for all the devices that are currently connected to it.
Scan a network and find out which servers and devices are up and running
nmap -sP 192.168.1.0/24
Scan a Single Host
Scan multiple IP address or subnet
nmap 192.168.1.1 192.168.1.2 192.168.1.3
Scan by Excluding a Host
nmap 192.168.1.0/24 --exclude 192.168.1.10
This will Exclude the Host while Scanning
Fast Nmap Scanning for a Network range
nmap -F 192.168.1.10/24
To See Packets send and receving using Nmap
nmap --packet-trace 192.168.1.10
Scan for a Port
nmap -p 22 192.168.1.10
scan for multiple ports
nmap -p 80,22,21,111
Sacn all Ports Using Nmap
nmap -p "*" 192.168.1.10
Hope this will Help you.
If you need to know more just run the command