How can I free a “daemon” TCP port listener, after its owning process exited?

前端 未结 2 1892
盖世英雄少女心
盖世英雄少女心 2021-01-05 14:33

Background

I have a .net 4.0 WCF application that listens on net.tcp port 667. (Windows 7 machine)
At some point the application exits ungracefully (the user k

2条回答
  •  遥遥无期
    2021-01-05 15:20

    It happened to me as well, and actually, I found it is those sub-processes that holding the port. My solution is use Process Explorer to search for the Non-existing PID, and kill all the processes list, then the port will be free.

提交回复
热议问题