How can you find out which process is listening on

2018-12-31 04:17发布

How can you find out which process is listening on a port on Windows?

26条回答
冷夜・残月
2楼-- · 2018-12-31 05:11

To get a list of all the owning process ID associated with each connection:

netstat -ao |find /i "listening"

If want to kill any process have the id and use this command, so that port become free

Taskkill /F /IM pidof a process
查看更多
无色无味的生活
3楼-- · 2018-12-31 05:11

I recommend CurrPorts from NirSoft.

CurrPorts can filter the displayed results. TCPView doesn't have this feature.

Note: You can right click a process's socket connection and select "Close Selected TCP Connections" (You can also do this in TCPView). This often fixes connectivity issues I have with Outlook and Lync after I switch VPNs. With CurrPorts, you can also close connections from the command line with the "/close" parameter.

查看更多
登录 后发表回答