snippetbashTip
netstat — Display active TCP connections, ports on which the computer is listening, network adapter statistics
Viewed 0 times
commandnetstatconnectionstcpcliactiveportsdisplay
windows
Problem
How to use the
netstat command: Display active TCP connections, ports on which the computer is listening, network adapter statistics, the IP routing table, IPv4 statistics and IPv6 statistics. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/netstat>.Solution
netstat — Display active TCP connections, ports on which the computer is listening, network adapter statistics, the IP routing table, IPv4 statistics and IPv6 statistics. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/netstat>.Display active TCP connections:
netstatDisplay all active TCP connections and the TCP and UDP ports on which the computer is listening:
netstat -aDisplay network adapter statistics, such as the number of bytes and packets sent and received:
netstat -eDisplay active TCP connections and express addresses and port numbers numerically:
netstat -nDisplay active TCP connections and include the process ID (PID) for each connection:
netstat -oDisplay the contents of the IP routing table:
netstat -rDisplay statistics by protocol:
netstat -sDisplay a list of currently open ports and related IP addresses:
netstat -anCode Snippets
Display active TCP connections
netstatDisplay all active TCP connections and the TCP and UDP ports on which the computer is listening
netstat -aDisplay network adapter statistics, such as the number of bytes and packets sent and received
netstat -eDisplay active TCP connections and express addresses and port numbers numerically
netstat -nDisplay active TCP connections and include the process ID (PID) for each connection
netstat -oContext
tldr-pages: windows/netstat
Revisions (0)
No revisions yet.