Find SQL Server Port Number: Quick Guide
To view the port number of the SQL Server instance, you can use one of the following methods:
- Utilizing SQL Server Configuration Manager:
- Open SQL Server Configuration Manager.
- Select SQL Server Network Configuration in the left-hand panel.
- Choose the example you want to view the port number.
- On the right panel, you can see the port number that is being used in this instance.
- Using SQL Server Management Studio:
- Connect to the SQL Server instance.
- Right-click on the instance in the Object Explorer and select Properties.
- Select the “Connections” tab in the properties window.
- In the IP address section, you can see the port number used by the instance.
- Query using Transact-SQL:
- Open up SQL Server Management Studio
- Connect to the SQL Server instance.
- Execute the following query:
SELECT DISTINCT(local_net_address), local_tcp_port
FROM sys.dm_exec_connections
This will return the port number currently being used by the SQL Server instance.