windows查看端口号占用情况

1、win+R输入cmd,打开命令窗口。

2、 执行如下命令:netstat -ano | findstr "端口号"。

3、 在步骤2中返回的信息中,找到PID(进程ID)。

4、 执行命令:tasklist | findstr "进程ID"。