Go: Windows netstat command to view port usage

Source: Internet
Author: User

Netstat-ano

Find display Netstat-ano|findstr "Find content, port number IP address, etc."

In the Windows System netstat command can know the view port, process occupation, then under the netstat command how to do it! Now let's take a look!

Target: In a Windows environment, use the netstat command to see if a port number is occupied and which process is occupied.

Action: The operation is divided into two steps: (1) Check that the port is occupied by that PID; method one: Targeted view port, using command

Netstat–ano|findstr "< port number >", the last column is PID. The port number in the figure is 1068, and the corresponding PID is 3840.

(a) Figure

Method Two: View all, and then find the corresponding port and PID.

(b) Figure

The 5 columns in the first picture are the 5 columns corresponding to the above (a) figure.

(2) View the process name of the PID.

Method One: Always use the command to find, Tasklist|findstr ""

(c) Figure

As can be seen from the (c) figure, the PID 3840 corresponds to the process name Msnmsgr.exe.

Method Two: View with Task Manager.

Bring up the Task Manager and select columns, such as the D chart.

(d) Figure

View the PID corresponding process name. As shown in (e) Msnmsgr.exe

(e) Figure

Appendix: On the command line, enter netstat/? You can view information about the netstat.

C:documents and Settingsadministrator>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

To create a connection or listen port for all executable components

Component.

Interval Displays the selected statistics, between each display

Pause interval (in seconds). Press CTRL + C to stop re-

Displays statistics. If omitted, Netstat displays the current

Configuration information (show only once)

Http://www.3lian.com/edu/2013/08-03/86406.html

Go: Windows netstat command to view port usage

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.