View port usage in windows!

Source: Internet
Author: User

 

How can I check which programs on the local machine occupy the ports? (Windows)

1. Open the console and run the netstat-ano command to list the port usage of the program. The result is similar to the following:
Active connections

PROTO local address foreign address State PID
TCP 0.0.0.0: 135 0.0.0.0: 0 listening 1608
TCP 0.0.0.0: 445 0.0.0.0: 0 listening 4
TCP 0.0.0.0: 2401 0.0.0.0: 0 listening 1116
TCP 0.0.0.0: 3306 0.0.0.0: 0 listening 1956
TCP 0.0.0.0: 8010 0.0.0.0: 0 listening 324
TCP 0.0.0.0: 8088 0.0.0.0: 0 listening 324
TCP 127.0.0.1: 1031 127.0.0.1: 1032 established 628
TCP 127.0.0.1: 1032 127.0.0.1: 1031 established 628
TCP 127.0.0.1: 2402 0.0.0.0: 0 listening 1044
TCP 127.0.0.1: 5432 0.0.0.0: 0 listening 1012
TCP 127.0.0.1: 5432 127.0.0.1: 8094 established 1012
TCP 127.0.0.1: 7897 127.0.0.1: 7898 established 1388
TCP 127.0.0.1: 7898 127.0.0.1: 7897 established 1388
TCP 127.0.0.1: 8005 0.0.0.0: 0 listening 324
TCP 127.0.0.1: 8094 127.0.0.1: 5432 established 324
TCP 192.168.0.20: 139 0.0.0.0: 0 listening 4
TCP 192.168.0.20: 7873 209.85.137.125: 5222 established 3820
TCP 192.168.0.20: 8091 207.46.109.14: 80 established 2880
TCP 192.168.0.20: 8163 63.245.209.31: 443 established 1388
TCP 192.168.0.20: 8164 63.245.209.31: 443 established 1388
UDP 0.0.0.0: 445 *: * 4
UDP 0.0.0.0: 500 *: * 1328
UDP 0.0.0.0: 4500 *: * 1328
UDP 0.0.0.0: 5353 *: * 1044
UDP 0.0.0.0: 7867 *: * 344
UDP 0.0.0.0: 7884 *: * 2880
UDP 127.0.0.1: 1030 *: * 1012
UDP 127.0.0.1: 5304 *: * 3820
UDP 127.0.0.1: 7885 *: * 2880
UDP 127.0.0.1: 8095 *: * 3476
UDP 127.0.0.1: 8140 *: * 3184
UDP 192.168.0.20: 137 *: * 4
UDP 192.168.0.20: 138 *: * 4
UDP 192.168.0.20: 15069 *: * 2880
2. Use the task manager to view the application name corresponding to the PID. By default, the task manager does not display the PID of the application. In the Task Manager window, select the "process" tab and click "Select column" under the "View" menu ", then select the PID to display. Select the process to be aborted Based on the PID, and end the process, or execute the ntsd-C q-p pid value.

3. The tasklist command can also query port usage.

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.