netstat

Windows CMD · Network · available in the simulator

What it does

Displays network connections, ports, and statistics.

Syntax

netstat [-a] [-b] [-n] [-o] [-r] [-s] [intervalo]

Options and parameters

  • -a

    Displays all active connections and listening ports.

  • -b

    Displays the executable involved in creating each connection; requires administrator privileges.

    netstat -abno
  • -n

    Displays addresses and port numbers in numerical form.

  • -o

    Displays the process ID associated with each connection.

    netstat -ano
  • -e

    Displays Ethernet statistics.

  • -r

    Displays the routing table.

  • -s

    Displays statistics by protocol.

  • -p

    Displays connections for the specified protocol.

  • -f

    Displays the fully qualified domain name for remote addresses.

Usage examples

  • netstat -ano
  • netstat -abno
Practise netstat

Related commands