Windows view all the ports and ports corresponding to the program

Source: Internet
Author: User

Step one, Windows view all ports

Click Start in the lower left corner of the computer, then select the Run option, and then in the popup window, enter the "cmd" command to make the command prompt. Then we enter "Netstat-ano" in the window and press ENTER, which will show all the port usage. :

Step two, query the specified port occupancy

In the window, continue to enter the "Netstat-aon|findstr" Prompt Port "", for example, the prompt port is 9088, then the input command is "NETSTAT-AON|FINDSTR" 9088 "", enter after you can see the list of PID, Then, according to the PID in the computer's Task Manager to view the corresponding appropriation program, and then to close.

Step three, query PID corresponding to the process

If, after the above steps, we get a PID of 968, then we can enter the command "TASKLIST|FINDSTR" 968 ", in the first line to display the name is the program name, so we understand that the program occupies the port.

Step four, then we enter the command "taskkill/f/t/im program name" can be.

Windows view all the ports and ports corresponding to 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.