Can not connect to Availability Group Listener from other subnet

Tân. Trần Nhật 1 Reputation point

Hi everybody,
I'm currently setting up an Always on Availability Group but got stuck at some point.
Specifically, I configured AG on the subnet and my listener has IP I tried to test my AG and everything is ok when I ping, connect to the listener in the same subnet (

However, I configure my application tier on the subnet, and when I use the connection string to connect to the listener, it gave me fails. Additionally, my app joins to DNS and tried to connect to the listener with the DNS name instead.

On all servers, the firewall is disabled and the network rule is allowed for all.

Can connect to the listener from other subnets?

Thank you everyone for helping me!

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
11,620 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CathyJi-MSFT 21,061 Reputation points Microsoft Vendor

    Hi @Tân. Trần Nhật ,

    Suggest you using listener IP address in connection string to connect to SQL server AG when your application and SQL server AG are in different subnet. Can they ping each other successfully? Please test port connectivity using TELNET to the server and port from the client machine.  What the error message that you got when the connection failed?

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments