Issue: ODBC connection fails, when Windows Firewall is on.
Resolution: Creating Inbound and Outbound Rule for Windows Firewall on the Server.
We need to create Inbound Rule which will allow Sqlserver.exe to be accessed through the firewall.
Select Inbound Rules > click New Rule
3 Select This program path. Default for Sqlservr.exe.
C:\ProgramFiles\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Binn\sqlservr.ex
4. Click Next.
5 Action > select Allow the connection, click Next.
6. Profile dialog box, select the profile you need, click Next.
7. Name dialog box >, type a name and description for this rule, and click Finish.
Creation of Outbound Rule
1. Windows Firewall > Advanced Security, select Outbound rules, click on the New Rule
3., Select TCP. Select Specific local ports, type the port: 1433 (default Port). Click Next.
6. Type a name and description for this rule, click Finish.