I am trying to connect to the AG Listener in SSMS.
I choose [Connect]
Then [Database Engine]
I type in the name of the listener I created.
[Windows Authentication]
Click [Connect]

After about 1-minute, I receive the following ERROR message

TITLE: Connect to Server

Cannot connect to SQLListener.


A network-related or instance-specific error occurred while
establishing a connection to SQL Server. The server was not found or
was not accessible. Verify that the instance name is correct and that
SQL Server is configured to allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL Server)

(Microsoft SQL Server, Error: 2)

The system cannot find the file specified

I watched a video on YT where this guy runs through the creation of the AG.
He names his GROUP and his LISTENER
Identical names, and can connect to the Listener, through SSMS.
However, I cannot.
My Group is: SQLGroup
My listener is: SQLListener
(Are they supposed to be identical names?)

I wanted to make sure my Listener port was available and was able to be reached
so I ran the following on the primary SQL Core Server.
The listener is registered in DNS and in AD - Computers as SQLListener.

cmd = netstat -ano|fine "2433"
TCP Listening 252
I did an NSLookup on the SQLListener.

CMD nslookup SQLListener
Server: MasterDC.Domain.local
Name: SQLListener.domain.local
Everything is accurate.

Do I need to open the port 2433 on my work station to add the listener within SSMS?
What is it that I am missing here?


1 Answer 1


When you configure your listener to use a non-default port (any port other than 1433), then you need to specify the port number in the server name when connecting in order to connect successfully.

This is detailed in the documentation here.

  • THANK YOU!!!!!!!!! Why would all the information I read point to the port being 2433?
    – CodingEE
    May 18, 2020 at 2:52
  • 1
    As a guess, security best practise - not using 1433 as this is a known attack vector/open port on SQL Servers. There is some debate as to the effectiveness of not using 1433 but continuing to use SQL Browser, but I won't dive into that here :).
    – HandyD
    May 18, 2020 at 3:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.