1. Netstat-ano Show all ports corresponding to PID in Task Manager, open Task Manager to query occupation process through PID
Appendix: On the command line, enter netstat/? You can view information about the netstat.
C:\Documents and Settings\administrator>netstat/?
Displays protocol statistics and current TCP/IP network connections.
NETSTAT [-A] [-b] [-e] [-n] [-O] [-P proto] [-r] [-S] [-t] [-v] [interval]
-a displays all connections and listening ports.
The-b display is included in creating each connection or listening port
The executable component. In some cases, the executable component is known
has multiple independent components, and in these cases
A sequence of components that are included in creating a connection or listening port
are displayed. In this case, the name of the executable component
At the bottom of [], the top is the component that it calls,
Wait until the TCP/IP section. Note this option
May take a long time if you don't have sufficient permissions
May fail.
-e Displays Ethernet statistics. This option can be used with the-s
Combination of options.
-N Displays the address and port number in digital form.
-O Displays the owning process ID associated with each connection.
-p proto shows the connection proto the specified protocol; proto can be
One of the following protocols: TCP, UDP, TCPv6, or UDPV6.
If used with the-s option to display per-protocol statistics, Proto can be one of the following protocols:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPV6.
-r Displays the routing table.
-S displays statistical information by protocol. By default, the display IP,
IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPV6 statistics;
The-p option specifies a subset of the default conditions.
-T displays the current connection offload status.
-V is used with the-B option to display the containing
How Windows looks at the ports used by the program