Using "netstat" to check TCP addresses on Windows

1/15/2017 - David Woodsmall

Optimized for Firefox 50.1.0

COPYRIGHT 1992 thru 2017 - David R. Woodsmall

C:\>netstat /? Displays protocol statistics and current TCP/IP network connections. NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the -s option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP. -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to specify a subset of the default. interval Redisplays selected statistics, pausing interval seconds between each display. Press CTRL+C to stop redisplaying statistics. If omitted, netstat will print the current configuration information once. C:\>

EXAMPLE

Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\>netstat -an Active Connections Proto Local Address Foreign Address State TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:1043 0.0.0.0:0 LISTENING TCP 0.0.0.0:1084 0.0.0.0:0 LISTENING TCP 0.0.0.0:1171 0.0.0.0:0 LISTENING TCP 0.0.0.0:1230 0.0.0.0:0 LISTENING TCP 0.0.0.0:1232 0.0.0.0:0 LISTENING TCP 0.0.0.0:5679 0.0.0.0:0 LISTENING TCP 127.0.0.1:445 127.0.0.1:1171 ESTABLISHED TCP 127.0.0.1:1081 0.0.0.0:0 LISTENING TCP 127.0.0.1:1081 127.0.0.1:1328 TIME_WAIT TCP 127.0.0.1:1081 127.0.0.1:1330 TIME_WAIT TCP 127.0.0.1:1081 127.0.0.1:1333 TIME_WAIT TCP 127.0.0.1:1171 127.0.0.1:445 ESTABLISHED TCP 127.0.0.1:1335 127.0.0.1:1081 TIME_WAIT TCP 127.0.0.1:1433 0.0.0.0:0 LISTENING TCP 192.168.0.26:139 0.0.0.0:0 LISTENING TCP 192.168.0.26:1082 0.0.0.0:0 LISTENING TCP 192.168.0.26:1082 192.168.0.2:139 ESTABLISHED TCP 192.168.0.26:1230 192.168.0.4:445 ESTABLISHED TCP 192.168.0.26:1232 192.168.0.36:445 ESTABLISHED TCP 192.168.0.26:1329 198.63.55.237:110 TIME_WAIT TCP 192.168.0.26:1331 198.63.55.237:110 TIME_WAIT TCP 192.168.0.26:1334 198.63.55.237:110 TIME_WAIT TCP 192.168.0.26:1336 198.63.55.237:110 TIME_WAIT TCP 192.168.0.26:1433 0.0.0.0:0 LISTENING UDP 0.0.0.0:135 *:* UDP 0.0.0.0:445 *:* UDP 0.0.0.0:1027 *:* UDP 0.0.0.0:1038 *:* UDP 0.0.0.0:1045 *:* UDP 0.0.0.0:1434 *:* UDP 192.168.0.26:137 *:* UDP 192.168.0.26:138 *:* UDP 192.168.0.26:500 *:* C:\>

OTHER INFORMATION