Check if windows Port is in use and windows Port is in use
Start ----> RUN ----> cmd, or the window + R key combination to bring up the command window
Run netstat-ano to list all ports. In the list, we observe the occupied port, for example, 49157. First find it.
View the PID corresponding to the occupied port, enter the command: netstat-aon | findstr "49157", Press enter, and write down the last digit, that is, PID, Which is 2720
Continue to input tasklist | findstr "2720". Press enter to check which process or program occupies port 2720. The result is svchost.exe.
Alternatively, open the task manager and switch to the process tab. In the PID column, check who the process is. If the PID column is not displayed, for example:
Click view ---> Select column, tick the PID (process identifier), and click OK.
The description is that the main process of Windows is exactly the same as that shown in the preceding command.
End the process: select the process in the task manager and click the "End Process" button, or enter taskkill/f/t/im Tencentdl.exe In the cmd command window.
From: http://jingyan.baidu.com/article/3c48dd34491d47e10be358b8.html