PID exists in netstat but does not exist in task manager

前端 未结 4 1181
不思量自难忘°
不思量自难忘° 2020-12-24 10:46

I have discovered a running process with PID 26376 listening on port 9001 and 9002 as when I try to run my program(as a service) which binds to that port it fails.

B

相关标签:
4条回答
  • 2020-12-24 11:05

    Another option is to bounce the NIC associated with the connection. Be careful if you are doing this over RDP, you'll want to script it so the NIC will come back online or you'll lock yourself out and will need console access.

    This link explains how to do it with CMD and powershell:

    https://www.windowscentral.com/how-enable-or-disable-wi-fi-and-ethernet-network-adapters-windows-10

    0 讨论(0)
  • 2020-12-24 11:08

    (improved from @mfck's answer)

    1. kill all processes named cmd.exe
    2. kill all processes named conhost.exe
    0 讨论(0)
  • 2020-12-24 11:17

    You don't need Task Manager for tracking this. Just run netstat -b which will display the exe associated with the PID..

    0 讨论(0)
  • 2020-12-24 11:30

    Well, in my case killing all the conhost.exe instances owned by the same user as the initial process released the port.

    0 讨论(0)
提交回复
热议问题