windows查看某个端口状态,以及占用的程序

windows查看所有端口状态:

netstat -ano
协议类型,ip地址+端口号,发送到外部的地址,状态,PID即进程号。
windows查看某个端口状态,以及占用的程序筛选出来我们想要的端口:如443
netstat -ano|findstr “443”
windows查看某个端口状态,以及占用的程序找到对应的PID,如第一行对应的8776,进程号为8776,表示这个进程正在占用这个端口。

找到占用的程序:
tasklist即列举所有正在运行的进程,|后面跟筛选条件。
tasklist|findstr “8776”
windows查看某个端口状态,以及占用的程序
结果如图,占用程序是我的vmware。