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 ================================ =