Protocol Statistics and Current TCP/IP Network Connections Displayed under Vista

  

Problem Description

How do I display protocol statistics and current TCP/IP network connections under Vista?

Solution

Use the NETSTAT command to view protocol statistics and current TCP/IP network connections,

NETSTAT [-a] [-b] [- e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-t] [interval]

-a Displays all connections and listening ports.

-b Displays the executables involved in creating each connection or listening port. In some cases, known executables host multiple independent components, in which case the sequence of components involved in creating a connection or listening port is displayed. In this case, the name of the executable is at the bottom [...], and the component it calls is at the top until it reaches TCP/IP. Note that this option can be time consuming and can fail if you do not have sufficient permissions.

-e Display Ethernet statistics. This option can be combined with the -s option.

-f Displays the fully qualified domain name (FQDN) of the external address.

-n Displays the address and port number in numeric form.

-o Displays the process IDs associated with each connection.

-p Displays the connection of the protocol specified by proto; proto can be any of the following: TCP, UDP, TCPv6 or UDPv6. If used with the -s option to display statistics for each protocol, proto can be any of the following: IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.

-r Display the routing table.

-s Displays statistics for each protocol. By default, statistics for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6 are displayed; the -p option can be used to specify the default subnet.

-t Displays the current connection uninstall status.
interval Redisplays the selected statistics, the number of seconds between pauses between displays, press CTRL+C to stop redisplaying statistics.

Copyright © Windows knowledge All Rights Reserved