4

What ports does SQL Server use on Linux? I want to be sure I'm forwarding the ports required when I run it in a container.

1 Answer 1

5

Assuming the defaults, there are two ports SQL Server listens on which can be verified with netstat -ln,

While my install was only listening for TCP connections, /etc/services shows entries for UDP too,

ms-sql-s        1433/tcp                        # Microsoft SQL Server
ms-sql-s        1433/udp
ms-sql-m        1434/tcp                        # Microsoft SQL Monitor
ms-sql-m        1434/udp

The "Microsoft SQL Monitor" is the DAC connection.

The log also shows similar information,

spid19s     Server is listening on [ 'any' <ipv6> 1433].
spid19s     Server is listening on [ 'any' <ipv4> 1433].
Server      Server is listening on [ ::1 <ipv6> 1434].
Server      Server is listening on [ 127.0.0.1 <ipv4> 1434].
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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