Introduction
Sometimes it fails to open a port, and it prompts that it is occupied, and I don't know what process is occupying the port. Let's use the command line to find out the process that occupies the port.
solution
Take port 1080 as an example
Enter the following command on the command line to find out the PID of the occupied port, and the found pid is 4680
netstat -ano | findstr "10086"
Find out specific process information based on PID 4680
tasklist | findstr "4680"
You can see that the program occupying port 1080 is qq.exe