how to find port sql server is running on code example
Example: sql server check port number
USE master
GO
xp_readerrorlog 0, 1, N'Server is listening on'
GO
#LogDate ProcessInfo Text
#... Server Server is listening on [ ::1 <ipv6> 1434].
#2.. Server Server is listening on [ 127.0.0.1 <ipv4> 1434].