Nmap for windows nmap to identify an open port as being an RDP listener For example this is the IP range: 12.0.0.0-12.255.255.255 default port is 3389, i want to scan the entire Ip range with ALL open ports between: 1024 and 49151 So the final result must look like this,is just an example: 12.0.0.8:3389 12.0.255.220:3333 12.8.10.100:2008 12.12.200.18:4489 This is my code, it's just an attempt to scan,the code is incomplete: nmap -Pn -p 1024-49151 12.0.0.0-12.255.255.255 thanks Nmap scan report for mail.mondoimpex.ro (83.166.221.114) Host is up (0.029s latency). PORT STATE SERVICE 3389/tcp open ms-term-serv