Using nmap to scan a subnet for a specific open port

Written by James McDonald

January 27, 2012

Today I booted up a box and it’s DHCP assigend IP Address had moved so I had to find it again using this helpful
Use nmap to scan for ssh servers blog post.

After downloading the command line nmap for Windows from

I ran:

# locate ssh servers
# for a range of hosts on a subnet
nmap -p22 --open -sV 

# for the entire subnet
nmap -p22 --open -sV

# locate ssh, web and https servers on the entire subnet
nmap -p22,80,443 --open -sV 

No Problemo.


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Network speed test host to host

On Ubuntu / Debian apt-get install iperf3 On Windows download it from Make...

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...