Which program is occupied by Windows query port

Source: Internet
Author: User

TCPView on it.

If the 03 system NETSTAT-ANBP TCP

Cmd=>netstat-ano

C:>netstat-aon|findstr "80"

can identify the process number on which the port is being used

C:>TASKLIST|FINDSTR "Process Number"

We can see what the program is.

Netstat-ano

Use this command to view the PID of the Open port program

And then

Tasklist? findstr "PID"

You can see what process it is.

You're going to list all the 80, and for example 61.80.1.44:2002 will be listed as follows:

Netstat-ano|find ":"---The front dot add a space to prevent like: 8000 and so on list.

Check the process is the same, should not use findstr, you should directly use the tasklist filter parameters, you can get absolutely accurate results, such as:

Tasklist/fi the "PID eq process Number"---in order to achieve accurate results.

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.