Check out example codes for "sql server check port number". It will help you in understanding the concepts better.

Code Example 1

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].

Learn ReactJs, React Native from akashmittal.com