---
name: microsoft-ts-ms-sql-verify-open-ports
title: How do I verify that the ports are open?
description: Use the PowerShell `Test-NetConnection` command to verify that ports are open. This command also supports ping test, TCP test, route tracing, and route selection diagnostics.
last-updated: 2021-05-25
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/microsoft?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

{:tsSymptoms: .tsSymptoms}
{:tsCauses: .tsCauses}
{:tsResolve: .tsResolve}
{:shortdesc: .shortdesc}
{:screen: .screen}
{:support: data-reuse='support'}
{:codeblock: .codeblock}
{:pre: .pre}
{:note:.deprecated}
{:troubleshoot: data-hd-content-type='troubleshoot'}

# How do I verify that the ports are open?
{: #mssql-trouble-ports}
{: troubleshoot}
{: support}

Use the PowerShell `Test-NetConnection` command to verify that ports are open. This command also supports ping test, TCP test, route tracing, and route selection diagnostics.
{: shortdesc}

To verify that the ports are open, enter the following command:

`Test-NetConnection -ComputerName <name> -Port <port> -InformationLevel "Detailed"`
{: pre}

For more information, refer to [Test-NetConnection](https://docs.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2019-ps){: external}.