====== Testing Connection And Port Access ======
Test-NetConnection is a PowerShell cmdlet used to diagnose network connectivity issues. It’s part of Windows PowerShell 4.0 and later, and provides a more detailed alternative to traditional tools like ping or tracert.
Capabilities:
* Ping a host
* Test TCP port connectivity
* Trace route to a remote host
* Check DNS resolution
* Display interface and source IP info
===== Ping A Host =====
Ping a remote host, replace your-server.com with your servers address.
Test-NetConnection your-server.com
Output:
PS C:\Users\diffl> Test-NetConnection yourserver.com
ComputerName : Your Server
RemoteAddress : XXX.XXX.XXX.XX
InterfaceAlias : Loopback Pseudo-Interface 1
SourceAddress : XXX.XXX.XXX.XX
PingSucceeded : True
PingReplyDetails (RTT) : 220 ms
===== Test TCP Port Connection =====
Ping the remote host adding the port number, TapeTrack operates over port 5000 by default. or next most common on port 443
Test-NetConnection your-server.com -Port 5000
Output:
PS C:\> Test-NetConnection yourserverk.com -P 5000
ComputerName : yourserver.com
RemoteAddress : XXX.XXX.XXX.XXX RemotePort : 5000
InterfaceAlias : Wi-Fi
SourceAddress : XXX.XXX.XXX.XXX PingSucceeded : True
PingReplyDetails (RTT) : 221 ms
TcpTestSucceeded : False
TcpTestSucceeded : False shows the port is blocked, or TapeTrack is not running on that port.
====== See Also ======
* [[troubleshooting:diagnosing_connection_problems|Diagnosing Connection Problems]]
* [[cli:tmss10ping|TMSS10Ping]]
{{tag> connection ping server troubleshooting }}