Using "netstat" to check TCP addresses on Windows
Optimized for Firefox 55.0.3
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
- Acronyms / Glossary
- Woodsmall's Recommended Technical Books
- Bioinformatics / Pharma Information and Terms
- BUGS / RECALLS / SCAMS,... Page
- Buses & Networks, other
- Connectors, Pinouts & Wiring Info
- DATABASE Info
- Digital - DVD, Music, Photography, Printers, Recording, Video
- DOS
- Encryption, Compression, RFID, Smart Cards, AI, & Fuzzy Logic
- Ethernet, 802.11x, Fast Ethernet, Gigabit Ethernet, isoEthernet
- Fibre Channel
- DOS/Windows to Linux/Unix ASCII File Conversion - Converts end-of-line characters - "FLIP"
- GRAPHICS INFO
- Hoaxes
- Home Security & Maintenance
- HOTEL/MOTEL INFO
- HOUSE & TAX INFO
- IP, IPsec, IPv4, IPv6, FCIP, iFCP, PPP, SoIP, TCP, TCP/IP, TOE, VoIP
- LEGACY computer LANGUAGES / Architectures
- Linux
- MAPS
- NetWare
- Network, Buses, USB & Communications Info
- NEWS LINKS
- NEWS - Current Technical
- NORTH CAROLINA INFO
- Organizations
- PERSONAL USE: airlines, cars, discount, tires, Financial, Fix-it, ETC
- Pharma / Bioinformatics
- Programming, Agile, C, C++, Design, Algorithms, Patterns, OO, Refactoring, ADO
- QA
- Recommended Computer Security Steps
- REFERENCES
- References - Other, Postage, Converters, Dictionaries, Languages
- SAN / NAS / SATA / Storage / CIM / Device Discovery
- SCSI / iSCSI / RAID / SAS / SMI-S
- Searching
- Secure Connections
- Security, Computer
- Standards
- Technical, Mostly Computer, Info
- Testing
- TIME, TIME ZONE INFO
- TOOLS (power, hand, wood)
- TRAFFIC **
- TRAVEL INFO
- UML
- UNIX
- Virus Info
- Vista
- VMware
- WEATHER & TIME INFO
- Complete Web Development
- Windows 2003
- Windows 2008
- Windows 7
- Windows Tips
- Wireless / PDA / Handhelds
- XP Info
- Contact David Woodsmall
- David Woodsmall - Main Web page