ODBC connection for testing Availability Group Listener
Converting my comment to answer :

You can use SQLCMD.exe -S &lt;AG listener&gt; -D &lt;AG database&gt; -E. 

You may want to specify AGlistener,port_no to see if you can connect to the listener.