Submit a ticketCall us

Training Class Getting Started with SolarWinds Backup - February 28

This course offers customers an introduction to SolarWinds Backup, focusing on configuring the backup technology, taking backups, data restoration and data security. It is a great primer and will get you up to speed quickly on SolarWinds Backup.
Register for class.

Home > Success Center > Orion Platform > Use PowerShell to test that a port is open on a server

Use PowerShell to test that a port is open on a server

Table of contents

Updated: 10/5/2017


How to test that a specific ports is open without using telnet.


  • All modules
  • All Windows Server versions


1. Use the script bellow to check if the port is open.

2. Replace IP_Address_Server with the address of the server you are interested in.

3. Replace port with the port to check (e.g. 17777).

4. Save this script in a text file as porttest.ps1 and run in PowerShell.

$ipaddress = IP_Address_Server
$port = port
$connection = New-Object System.Net.Sockets.TcpClient($ipaddress, $port)
if ($connection.Connected) {
    Write-Host "Success"
else {
    Write-Host "Failed"


Last modified