This answer suggests netstat as an equivalent to nmap and also states that nmap for windows does not work.
But I use nmap for an specific purpose and that is to see if a port of a network is open or not like this:
nmap -p port ipAnd I learnt this command from here
1 Answer
The Windows equivalent to nmap is nmap. You can download a pre-built installer, complete with the CLI tools and the Npcap driver needed for advanced scanning options.
The reason the answerer says nmap won't work on Windows is because that thread is using it for a different purpose: instead of scanning a remote system, they discuss scanning "localhost". This was not reliable on Windows (depending on which scan mode one used) because the loopback interface works differently there – but it does not apply to your question. Scanning remote devices works the same way on all systems.
For only checking whether a TCP port accepts connections or not, there exist various "netcat"-type tools: nc.exe -v -v <host> <port> from different sources; plink.exe -v -raw -p <port> <host> from PuTTY. They will either connect successfully or show an error message of some kind.