I Install SQL server in my system and I have to check on which port number SQL is working in my system
You can also use this query
USE MASTER GO xp_readerrorlog 0, 1, N'Server is listening on' GO
Source : sqlauthority blog