In windows 10, you can just use the command line utility netstat
.
For general connections, use:
netstat -a
To get the output :
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:80 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:135 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:443 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:445 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:902 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:912 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:5040 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:5357 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:7680 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:49664 DESKTOP-VH14G96:0 LISTENING
TCP 0.0.0.0:49665 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:49666 DESKTOP-V14G86:0 LISTENING
TCP 0.0.0.0:49667 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:49668 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:49669 DESKTOP-VH14G86:0 LISTENING
TCP 0.0.0.0:52145 DESKTOP-VH14G86:0 LISTENING
TCP 127.0.0.1:1434 DESKTOP-VH14G86:0 LISTENING
TCP 127.0.0.1:8307 DESKTOP-VH14G86:0 LISTENING
TCP 127.0.0.1:49905 DESKTOP-VH14G86:0 LISTENING
TCP 127.0.0.1:58238 DESKTOP-VH14G86:58239 ESTABLISHED
TCP 127.0.0.1:58239 DESKTOP-VH14G86:58238 ESTABLISHED
TCP 127.0.0.1:58244 DESKTOP-VH14G86:58245 ESTABLISHED
TCP 127.0.0.1:58245 DESKTOP-VH14G86:58244 ESTABLISHED
TCP 172.16.226.163:139 DESKTOP-VH14G86:0 LISTENING
If you know the port in which Sql Server listens, say port 1434, enter netstat -ano|findstr ":1434"
:
C:\WINDOWS\system32>netstat -ano| findstr ":1434"
TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 1860
TCP [::1]:1434 [::]:0 LISTENING 1860
UDP 0.0.0.0:1434 *:* 4072
UDP [::]:1434 *:* 4072