Windows上查看端口对应的应用程序

时间:2021-12-04 20:50:53

首先用下面的命令查看端口对应程序的进程号

netstat -aon | findstr "<PORT>"

然后用下面的命令查看进程号对应的应用程序

tasklist|findstr "<PID>"