Test remote port open on Windows

It’s important to know how to test if a remote port is available or not. Here is how to test a port on windows machine.

Simply run below command in powershell.

Test-NetConnection -ComputerName [IP/FQND] -Port [Port]

or shorten version

tnc -ComputerName [IP/FQND] -Port [Port]

Here is a sample of a success.

Here is a sample of a fail.

Sometimes powershell get stuck, just hit Enter a few times so the result will return.

Leave a comment

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