windows CMD里查看端口和对应的应用

netstat -ano

netstat -ano|findstr 8080
在结果中找到8080字样的,然后看他使用的是pid
就是应用到底是啥

[quote]

C:\Users\dell>netstat -ano|findstr 8080
TCP 192.168.8.138:49176 101.227.139.187:8080 ESTABLISHED 2796
TCP 192.168.8.138:50799 180.163.32.172:8080 ESTABLISHED 1652
TCP 192.168.8.138:54472 180.163.25.150:8080 ESTABLISHED 11724
TCP 192.168.8.138:60838 101.226.222.56:8080 CLOSE_WAIT 11724

C:\Users\dell>tasklist|findstr 2796
TsService.exe 2796 Services 0 18,320 K

C:\Users\dell>tasklist|findstr 11724
QQBrowser.exe 11724 Console 1 97,076 K

C:\Users\dell>tasklist|findstr 1652
QQBrowser.exe 1652 Console 1 130,788 K


[/quote]

但是要用找到的pid ,在查看是那个应用

tasklist|findstr 11724

你可能感兴趣的:(windows,cmd)