TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cookbook:test_netconnection

This is an old revision of the document!


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                                                            WARNING: TCP connect to (XXX.XXX.XXX.XXX : 5000) failed                                                                                                                                                                                                                                                                                                                                    ComputerName           : baylor.tapetrack.com                                                                                 RemoteAddress          : XXX.XXX.XXX.XXX                                                                                       RemotePort             : 5000                                                                                                 InterfaceAlias         : Wi-Fi                                                                                                SourceAddress          : XXX.XXX.XXX.XXX                                                                                         PingSucceeded          : True                                                                                                 PingReplyDetails (RTT) : 221 ms                                                                                               TcpTestSucceeded       : False  

{{tag> connection ping

cookbook/test_netconnection.1759282446.txt.gz · Last modified: 2025/10/01 01:34 by Scott Cunliffe