Current location - Quotes Website - Collection of slogans - What is the command to view the port?
What is the command to view the port?
Check the local listening port? And the connection usually uses netstat? [Form adjectives and nouns]

2.netstat? The-ano command can view the current usage of all ports on this machine.

netstat? -ano contains PID number. You can check which program called xxx port by comparing the PID number with the task manager.

And netstat -anb checks the process corresponding to the port.

The following figure

3. Enter netstat at the command line? /You can view information about netstat.

C:\ document? And then what? Set up \ Administrator & gtnetstat? /?

Show protocol statistics and current? TCP/IP? Network connection.

NETSTAT? [-a]? [-b]? [-e]? [-n]? [-o]? 【-p? proto]? [-r]? [-s]? [-t]? 【-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

At the bottom? []? At the top is the component it calls.

Wait, until? 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. Constitute noun plural

Options are grouped together.

-n Displays the address and port number as numbers.

-o Displays the owning process associated with each connection? Id card.

-p? Prototype display? proto? Specify the connection of the protocol; proto? It can be

One of the following agreements:? TCP、UDP、TCPv6? Or? UDPv6 .

If you use it? -s? Option to display statistics by protocol. Can be one of the following protocols:

IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP? Or? UDPv6 .

-r displays the routing table.

-s displays statistics by protocol. By default, show? Intellectual property rights,

IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP? And then what? UDPv6? Statistical information of;

-p? Option is used to specify a subset of default cases.

-t shows the current connection unloading status.

-v and? -B? Option is used together to display the information contained in the.

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

Component.

Interval redisplays the selected statistics between each display.

Pause interval (seconds). News? CTRL+C? Stop restarting

Show statistics. If omitted, netstat? Show current

Configuration information (displayed only once)