Check access to specific port on a server

When adding a new source system, often you have to open a firewall to that server in order to connect.
The ping command will only show if that server is reachable, but not if a specific port is open.

In order to test if a specific port is open you can use this Powershell command:

Test-NetConnection <ip_address> -p <port_number>

Read more here:
https://devconnected.com/how-to-ping-specific-port-number/#:~:text=The%20easiest%20way%20to%20ping,specific%20port%20to%20be%20pinged.&text=The%20%E2%80%9Ctelnet%E2%80%9D%20command%20is%20valid,Windows%20and%20Unix%20operating%20systems.

Leave a Comment