Current location - Quotes Website - Collection of slogans - Dos command to view port status
Dos command to view port status
Netstat displays protocol statistics and current TCP/IP network connections.

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

-a shows all connections and listening ports.

-b display.

Executable component. In some cases, executable components are known.

There are multiple independent components, and in these cases,

A series of components involved in creating a connection or listening port.

Be displayed. In this case, the executable component name

In [] at the bottom, at the top is the component it calls.

Wait until the TCP/IP part. Please note this option.

If you don't have enough permissions, it may take a long time.

It may fail.

-e Displays Ethernet statistics. This option can be used with-s.

Options are grouped together.

-n Displays the address and port number as numbers.

-o Displays the owning process ID associated with each connection.

-p proto shows the connection of the protocol specified by proto; Proto can be

One of the following protocols: TCP, UDP, TCPv6 or UDPv6.

If used with the -s option to display statistics by protocol, proto can be the following protocol.

One:

IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP or UDPv6.

-r displays the routing table.

-s displays statistics by protocol. By default, IP is displayed,

Statistical information of IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP and UDPv6;

The p option is used to specify a subset of the default cases.

When the -v option is used with the -b option, the information contained in is displayed.

This creates a connection or listening port for all executable components.

Component.

Interval redisplays the selected statistics between each display.

Pause interval (seconds). Press CTRL+C to stop the restart.

Show statistics. If omitted, netstat will display the current

Configuration information (displayed only once)