How to check which process the port is occupied under win10 system

  In the win10 system , we sometimes need to use some ports, but we find that the used port is occupied by other programs, which makes it impossible to open the port, but we don’t know how to check which process the port is occupied. The method is very simple. Let me explain to you the specific steps to check which process the port is occupied by under the win10 system.

1. Press win+R, click the run page, write cmd and press Enter, and click the command line page;

![Insert image description here](https://img-blog.csdnimg.cn/20201211131907293.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4f16color,sizeFF_NubmV0L,size

2. Use the command to view the port, here to view port 443;

netstat -aon|findstr "443"

![Insert the picture description here](https://img-blog.csdnimg.cn/20201211131738926.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4f16color,sizeFF,size_FuMV0L)
How to check which process the port is occupied under win10 system

3. Here, you can see that the local port 433 is occupied by the process with PID 4452;

![Insert the picture description here](https://img-blog.csdnimg.cn/20201211131752329.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4f16color,sizeFF_NubmV0L,size
How to check which process the port is occupied under win10 system

4. Then, use the tasklist command to view the process;

tasklist|findstr "4452"

![Insert image description here](https://img-blog.csdnimg.cn/20201211131805316.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4f16color,sizeFF_NubmV0L)

How to check which process the port is occupied under win10 system

5. You can see that port 443 is occupied by the vmware-host.exe program;

![Insert the picture description here](https://img-blog.csdnimg.cn/2020121113182231.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FF,sizeN16fmV0L3FF)

How to check which process the port is occupied under win10 system

6. Then, you can use the taskkill statement to end the process, where you probably need administrator privileges to end the statement normally;

![](https://img-blog.csdnimg.cn/20201211131838856.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NfMTU2,size_16,color_FFFFFF,t_70)

taskkill /f /t /im vmware-hostd.exe

How to check which process the port is occupied under win10 system

7. Use netstat -aon|findstr "443" again to check and find that port 443 is not occupied.

How to check which process the port is occupied under win10 system

  What I have introduced to you above is the detailed operation steps of how to check which process the port is occupied under the win10 system. You can refer to the above method steps to operate.

Guess you like

Origin blog.csdn.net/s_156/article/details/111033373