​From the Start MenuClick Start, type PowerShell, and then click Windows PowerShell
Test-NetConnection command
Using IP address
Test-NetConnection -ComputerName 192.168.1.1 -Port 443
For example, if your computer IP address is name "192.168.1.1" and you wanted to test port "1920", it would look like this:
Test-NetConnection -ComputerName 192.168.1.1 -Port 1920
or
Using Computer Name
Test-NetConnection -ComputerName hostname -Port 443
For example, if your computer is name "HoustonServer" and you wanted to test port "1920", it would look like this:
Test-NetConnection -ComputerName HoustonServer -Port 1920
if open you will get True like this: