How can I perform a network test of TCP ports on a Windows server?
91
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 13:01 PM
Objective
How can I perform a network test of TCP ports on a Windows server?
Environment
N/A Privileged Access Manager (PAM, self-hosted);Privilege Cloud;Remote Access (formerly Alero)
Procedure
There are two methods available in PowerShell, depending on OS version:
- For Server 2012 and up, run the following command:
- tnc <address> -port <port>
- For Server 2008:
- New-Object System.Net.Sockets.TcpClient('<address>',<port>)
Additional Information
Details
Q:How can I perform a network test of TCP ports on a Windows server?
A:
There are two methods available in PowerShell, depending on OS version:
- For Server 2012 and up, run the following command:
- tnc <address> -port <port>
- For Server 2008:
- New-Object System.Net.Sockets.TcpClient('<address>',<port>)