Quick Actions
netstat
Description
Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics, and IPv6 statistics.
Command
netstat
Examples
Show all active connections and listening ports
netstat -a
Show connections and the executables that created them
netstat -b
Show connections with their process IDs (PIDs)
netstat -ano
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-a |
string | No | Displays all active TCP connections and the TCP and UDP ports on which the computer is listening. |
-b |
string | No | Displays the executable involved in creating each connection or listening port. (Requires elevation). |
-n |
string | No | Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names. |
-o |
string | No | Displays active TCP connections and includes the process ID (PID) for each connection. |
Command Info
Category:
Networking
Type:
Windows
Views:
12
Status:
Active
Tags
windows
cmd
networking
ports
tcp
connections