Windows view a workaround for a port being occupied

Source: Internet
Author: User
1. Start----"Run----" cmd, bring up the command window.
2, enter the command: Netstat-ano, list all the conditions of the port. In the list we look at the occupied port, such as 49153, and find it first.
3, view the occupied port corresponding PID, input command: Netstat-aon|findstr "49153", enter, note the last digit, namely PID, here is 1008.
4, continue to input tasklist|findstr "1008", enter, to see which process or program occupies 1008 ports, the result is: Svchost.exe.
5, or we open the Task Manager can also be based on the PID to find the process. Open Task Manager switch to the Process tab, the default is not to open the PID column, if you do not see the PID column, such as the PID (process identifier) before the tick, click OK.
6. We can see the PID column when we are sure
7, we look at 1008 corresponding process is who, if not, we put the following show all users of the process front of the tick, you can see that the image name is Svchost.exe, the description is, the main process of Windows, and the above command to view the exact same.
8, if we determine that this process is not used, we can right-click on the process Manager to shut down. Because this process is a system process we can not shut down, if the computer opened the application occupies the other port, it is not useful to use the above method to find and close.

Windows view a workaround for a port being occupied

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.