Two commands are used to find the program that occupies one of your ports.

Source: Internet
Author: User

Two commands are used to find the program that occupies one of your ports.

Two commands are used to find the program that occupies one of your ports.

Start ----> RUN ----> cmd, or the window + R key combination to bring up the command window

1. netstat-aon | findstr "49157"

View the PID corresponding to the occupied port. Replace the following number with the port you want to view. Enter the command, press enter, and write down the last digit, that is, the PID, Which is 6252.

2. tasklist | findstr "6252"

Check the program name corresponding to the occupied port. Replace the following number with the PID you want to view;

| This symbol is a pipeline operator. It passes the output of the preceding command to the findstr command;

Findstr is a built-in command in the Window system. It is used to search for rows containing certain strings in one or more specified file files (or controlled by parameters/V, print the complete information of the row or the file name of the query string.

Netstat is a console command and a very useful tool for monitoring TCP/IP networks. It can display the route table, the actual network connection, and the status information of each network interface device. Netstat is used to display statistics related to IP, TCP, UDP, and ICMP protocols. It is generally used to check the network connection of each port on the local machine.

Tasklist "is a command under winxp, win2003, vista, win7, and win8. It is used to display all processes running on a local computer or remote computer with multiple execution parameters.

============================ I am a separator ================================ =

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.