How to check who is occupied by a port in Windows

When we start the application, we often find that the port we need to use is occupied by other programs, but we don't know who is occupied by it. At this time, we need to find out the "real culprit". How to do it?

 

  Step 1: Start---->Run---->cmd, or window+R key combination, bring up the command window

 

Step 2: Enter the command: netstat -ano to list the status of all ports. In the list we observe the occupied port, such as 49157, and find it first.

Step 3: View process details. Enter tasklist|findstr "2720", press Enter, check which process or program occupies port 2720, the result is: svchost.exe

 

Step 4: 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 command window of cmd.



 
 
 


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326389050&siteId=291194637