Display diagnostic information for a connection (Windows only).
# To test a connection and display detailed results:
Test-NetConnection -InformationLevel Detailed
# To test a connection to a remote host using the specified port number:
Test-NetConnection -ComputerName <ip_or_hostname> -Port <port_number>