LKBEN11569: Which ports are needed for ODBC and SQL Server.
Symptom
You need to connect an application which uses ODBC to the database.
Cause
You might have to open some firewall ports.
Solution
To communicate with SQL Server you need at least port 1433. To find and connect to the database you also need UDP 137, 138 and TCP 139 for NetBIOS over TCP. The ICMP is usefull for troubleshooting. For using Open Database Connectivity on SQL Server you can use the list below. For ODBC connections to postgres you open port 5432. Please not these are the default ports, your configuration might be different.
The following ports should do the job:
- TCP 1433 (SQL Server)
- TCP 5432 (Postgresql)
- TCP 139
- UDP 137
- UDP 138
Have fun.
Disclaimer:
The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!About the Author
Author:
- Keskon GmbH & Co. KGWim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.
Latest update: 10/05/2022