Method/Step
- 1
Start----> Run---->cmd, or the WINDOW+R key combination to bring up the command window
- 2
Enter the command: Netstat-ano, which lists all port conditions. In the list we look at the occupied port, such as 49157, and find it first.
- 3
View the PID of the occupied port, input command: Netstat-aon|findstr "49157", enter, note the last digit, namely PID, here is 2720
- 4
Continue entering Tasklist|findstr "2720", enter to see which process or program is taking up 2720 ports, the result is: Svchost.exe
- 5
Or we open the Task Manager, switch to the Process tab, in the PID column to see who the 2720 corresponding process is, if you do not see the PID column, such as:
- 6
Then we click on the view---> select column and click on the front of the PID (process identifier) to make sure.
- 7
So we see the PID of this column identification, look at the 2720 corresponding process is who, if not, we put the following show all users of the process front of the tick, you can see, the image name is Svchost.exe, the description is, the main process of Windows, Fully consistent with the above command view.
- 8
End the process: Select the process in Task Manager to click the "End Process" button, or in the cmd command window, enter: taskkill/f/t/im Tencentdl.exe.
How Windows can see who is occupying a port