Windows Commands / IT Support Guides
Test a specific TCP service with Test-NetConnection
Check whether Windows can open a TCP connection to one host and port.
Environment and inputs: Windows 11 · Command Prompt unless PowerShell is specified
Understand the problem
Use the authorized hostname and port of the affected service. The example uses port 443, which is commonly used for HTTPS.
Run the command
Run the shown command in PowerShell. Replace example.com and the port with the service details you need to test.
Test-NetConnection example.com -Port 443 -InformationLevel Detailed
Read the output
Look for TcpTestSucceeded. True means Windows established a TCP connection. Also check RemoteAddress to confirm which IP was tested. A successful TCP connection leaves TLS and application behavior to check separately.
Choose the next step
If the result is False, confirm the destination and port, then check whether the service is listening and whether the expected network path permits the connection.
Before making changes
Record the source computer, tested address, port and result. If TCP succeeds but the application still fails, test it with the normal application client.