Win7 How to see if a port is occupied

Source: Internet
Author: User

1, start----"Run----" cmd, or window+r key combination, pull out the command window.

2, Input command: Netstat-ano, list all the conditions of the port. In the list we observe the port being occupied, for example 49157, to find it first.

3, view the use of the corresponding PID port, input command: Netstat-aon|findstr "49157", enter, note the last digit, that is, PID, here is 2720.

4, continue to enter Tasklist|findstr "2720", return, see which process or program occupies 2720 ports, the result is: Svchost.exe.

5, or we open Task Manager, switch to the Process tab, in the PID column to view 2720 of the corresponding process is who, if not see the PID column, the following figure:

6, then we click to view---"Select the column, the PID (process indicator) before the tick, click OK.

7, so we saw the PID of this column identification, look at 2720 of the corresponding process is who, if not, we put the following show all the user's process in front of the tick, you can see, The image name is Svchost.exe, which describes that the main process of Windows is exactly the same as the command view above.

8. End the process: Select the process in Task Manager Click the "End Process" button, or in the cmd command window, enter: taskkill/f/t/im Tencentdl.exe.

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.