How Windows looks at the ports used by the program

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.