Find SQL Server Default Port Number
There are several ways to view the default port number of SQL Server.
- View SQL Server Configuration Manager:
- Open SQL Server Configuration Manager.
- Select “SQL Server Network Configuration” in the left-side panel.
- Select “protocol” and locate the “TCP/IP” protocol.
- Right-click on the “TCP/IP” protocol and select “Properties”.
- Navigate to the “IPAll” section under the “IP Address” tab and locate the “TCP Port” field, which is the default port number.
- Check the SQL Server configuration file:
- Open the “…\MSSQL\Binn” folder in the SQL Server installation directory.
- Locate the “sqlservr.exe.config” file, usually found in the “C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Binn” directory.
- Open the file, search for the “tcp” and “
” fields, which is the default port number. - Check the registry:
- Enter “regedit” in the Run dialog box to open the Registry Editor.
- Navigate to the path “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\
\MSSQLServer\SuperSocketNetLib\Tcp”. - The value of the “TcpPort” field indicates the default port number.