My use case is to check open ports on multiple servers, so when I try:
nmap -iL list.txt
then nmap only scans for some particular ports whether they are open or closed, but when I try:
namp -p 1-1000 192.168.1.1
it checks for every single port whether it is open or not but it is limited to only one IP/server.
I want to perform a scan on multiple servers at one time.
The following did not work:
nmap -p 1-1000 192.168.1.1/20
It gave error.