Loading

How to Test Network Connectivity Using PowerShell on Windows

Publish Date: Aug 1, 2025
Task

GOAL

To test if a local machine can access a remote host on a certain TCP port in an OS Windows environment.

Steps
Open PowerShell command prompt and run the following command: 
Test-NetConnection <REMOTE_HOST> -Port <REMOTE_PORT>
A successful connection output will look like this:
PS C:\Users\Administrator> Test-NetConnection data-authenticator.anypoint.mulesoft.com -Port 443


ComputerName     : data-authenticator.anypoint.mulesoft.com
RemoteAddress    : 52.45.117.199
RemotePort       : 443
InterfaceAlias   : Ethernet 3
SourceAddress    : 172.31.4.38
TcpTestSucceeded : True

USEFUL LINKS:

Network connectivity testing

Disclaimer: This article involves products and technologies which do not form part of the MuleSoft product set. Technical assistance for such products is limited to this article.

 

Knowledge Article Number

001116742

 
Loading
Salesforce Help | Article