How to check if a port is occupied by a program in Windows

Source: Internet
Author: User

Source:
Http://blog.chinaunix.net/u2/88533/showart_1815741.html

Sometimes installProgramThe XX port is occupied. You can run the CMD command to check which program is occupied.

1. view the PID of the program corresponding to the port in netstat-ano, for example, C: \> netstat-anoactive connectionsproto local address.   Foreign address   State   PID
TCP   0.0.0.0: 135   0.0.0.0: 0   Listening   1760
TCP   0.0.0.0: 445   0.0.0.0: 0   Listening   4
TCP   0.0.0.0: 2967   0.0.0.0: 0   Listening   660
TCP   0.0.0.0: 3389   0.0.0.0: 0   Listening   1712
TCP   0.0.0.0: 3934   0.0.0.0: 0   Listening   728
TCP   0.0.0.0: 10700   0.0.0.0: 0   Listening   4920
TCP   10.186.20.116: 21      0.0.0.0: 0          

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.