When using the command line in windows how do i check if a remote port is open?
Tell me the easiest way to test windows traffic from a remote machine?
Best Answer
Which version of windows do you have? In powershell this is supported for windows 8 server 2012 and later
Test-NetConnection 128.159.1.1 -Port 80
Some Googling will also turn up alternatives which use the .NET Framework directly (since PowerShell lets you do that) for systems running lower versions of Windows that won't have Test-NetConnection
available.
If you're not averse to using third-party utilities, Nmap is also a very good friend to have and it works from the command line.