Active Connections Utility | \ windows \system32\netstat.exe |
This tool displays protocol statistics and current TCP/IP network connections. See Section 7.2 in Chapter 7 for an example. Type netstat by itself to list the active incoming and outgoing network connections, or use these options:
netstat [-a] [-e] [-nc] [-o] [-p proto ] [-r] [-s] [ interval ]
Option | Description |
---|---|
-a | Display all connections and open ports. |
-e | Display Ethernet statistics; can be combined with -s . |
-n | Display addresses and ports in numerical format (e.g. 192.168.0.1:88). |
-o | Display the process that owns each listed connection. |
-p proto | Show the connections corresponding the protocol; proto can be IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6. |
-r | Display the routing table. |
-s | Display statistics for each protocol. By default, statistics are shown for all protocols, but this can be filtered with the -p option. |
interval | Repeatedly run netstat, pausing interval seconds between each display. Press Ctrl-C to stop the display at any time. If omitted, netstat will display the current statistics once and then quit. |