netstat

Definition of netstat in The Network Encyclopedia.

What is netstat?

A TCP/IP utility that displays the current TCP/IP connectivity status and statistics. Netstat is available on a computer running Microsoft Windows if the TCP/IP protocol stack has been installed on that machine. You can run netstat from the command prompt to get current TCP/IP statistics and connections for the local machine. You can also view statistics on a per-protocol basis for Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Internet Protocol (IP), or Internet Control Message Protocol (ICMP).

Netstat provides information on:

  • IP addresses and port numbers of TCP/IP connections, including client and server connections. Either host names or IP addresses can be displayed. For example, netstat -a displays all connections and listening ports (for TCP and UDP).
  • Ethernet statistics, including bytes sent and received, directed and broadcast frames sent and received, discards, and errors.
  • The routing table for the local machine.