Windows finds which program occupies the specified port

Source: Internet
Author: User

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

eg, See which program occupies the port number 61078

1, see the port number is 61079 by which PID occupied: Netstat–ano|findstr "< port number >"

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/77/15/wKiom1Zi5B3CFyDoAABXe83umGg876.png "title=" qq.png "alt=" Wkiom1zi5b3cfydoaabxe83umgg876.png "/>

From the results, you can find that port 61078 is occupied by the PID 5576 process.

2, through the PID to find the corresponding process name

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/77/15/wKiom1Zi5QDwS6QXAABXQ_eZh0E895.png "title=" Qq2.png "alt=" Wkiom1zi5qdws6qxaabxq_ezh0e895.png "/>

From the results can be judged that the PID 5576 process named YoukuMediaCenter.exe

3. View the installation directory for the process by using Task Manager

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/13/wKioL1Zi5jixqg3OAACOz84jTBg034.png "title=" 36020151205212412373.png "alt=" Wkiol1zi5jixqg3oaacoz84jtbg034.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/77/15/wKiom1Zi5geyYMJUAAFtAOD9t2c644.png "title=" 36020151205212544875.png "alt=" Wkiom1zi5geyymjuaaftaod9t2c644.png "/>

This article is from "I am not a rookie" blog, please be sure to keep this source http://pvbutler.blog.51cto.com/7662323/1719930

Windows finds which program occupies the specified port

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.