直接看代码:
Microsoft Windows [版本 10.0.17763.437]
(c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\vjia>netstat -ano
活动连接
协议 本地地址 外部地址 状态 PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 908
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 6464
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:902 0.0.0.0:0 LISTENING 4612
TCP 0.0.0.0:912 0.0.0.0:0 LISTENING 4612
TCP 0.0.0.0:1080 0.0.0.0:0 LISTENING 11540
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 6248
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 1240
TCP 0.0.0.0:5040 0.0.0.0:0 LISTENING 6404
TCP 0.0.0.0:7680 0.0.0.0:0 LISTENING 5084
TCP 0.0.0.0:18386 0.0.0.0:0 LISTENING 7996
TCP 0.0.0.0:33060 0.0.0.0:0 LISTENING 6248
TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING 724
TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING 1592
TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING 1700
TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING 2996
TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING 3188
TCP 0.0.0.0:49669 0.0.0.0:0 LISTENING 856
TCP 0.0.0.0:49672 0.0.0.0:0 LISTENING 3320
TCP 0.0.0.0:49721 0.0.0.0:0 LISTENING 824
TCP 0.0.0.0:52982 0.0.0.0:0 LISTENING 40880
TCP 0.0.0.0:61520 0.0.0.0:0 LISTENING 31800
TCP 10.10.13.144:139 0.0.0.0:0 LISTENING 4
TCP 10.10.13.144:50148 1.192.193.177:80 ESTABLISHED 4336
TCP 10.10.13.144:50233 213.131.255.28:5938 ESTABLISHED 3660
TCP 10.10.13.144:51718 23.10.0.241:443 CLOSE_WAIT 3280
TCP 10.10.13.144:54955 40.90.190.179:443 ESTABLISHED 3700
TCP 10.10.13.144:55800 108.177.125.188:5228 ESTABLISHED 39700
TCP 10.10.13.144:55836 220.181.163.130:80 ESTABLISHED 29520
TCP 10.10.13.144:55911 220.181.163.183:5287 ESTABLISHED 29520
TCP 10.10.13.144:55928 220.181.163.183:5287 ESTABLISHED 29520
TCP 10.10.13.144:56010 180.163.238.134:443 ESTABLISHED 4336
TCP 10.10.13.144:56805 101.89.15.105:443 ESTABLISHED 10080
TCP 10.10.13.144:57471 211.151.18.40:443 ESTABLISHED 11540
TCP 10.10.13.144:60390 223.252.199.69:6004 ESTABLISHED 4684
TCP 10.10.13.144:62981 140.205.35.18:443 ESTABLISHED 7996
TCP 10.10.13.144:63230 180.149.133.176:80 CLOSE_WAIT 29520
TCP 10.10.13.144:63435 183.2.192.105:80 CLOSE_WAIT 41576
TCP 10.10.13.144:63436 183.2.192.105:80 CLOSE_WAIT 41232
TCP 10.10.13.144:63522 117.48.124.214:80 CLOSE_WAIT 41232
TCP 10.10.13.144:63527 119.147.227.192:80 CLOSE_WAIT 26892
TCP 10.10.13.144:63552 203.100.92.166:5222 ESTABLISHED 26892
TCP 10.10.13.144:63584 121.9.246.106:443 CLOSE_WAIT 26892
TCP 10.10.13.144:63618 120.92.16.252:80 CLOSE_WAIT 26892
TCP 10.10.13.144:63629 121.9.246.106:80 CLOSE_WAIT 26892
TCP 10.10.13.144:65098 106.39.162.48:443 ESTABLISHED 11540
TCP 10.10.13.144:65429 123.58.182.253:80 ESTABLISHED 11540
TCP 10.10.13.144:65433 219.73.56.44:54719 TIME_WAIT 0
TCP 10.10.13.144:65443 219.73.56.44:54719 TIME_WAIT 0
TCP 10.10.13.144:65446 219.73.56.44:54719 TIME_WAIT 0
TCP 10.10.13.144:65473 116.77.73.217:80 TIME_WAIT 0
TCP 10.10.13.144:65474 157.122.99.142:80 TIME_WAIT 0
TCP 10.10.13.144:65475 116.77.66.157:80 TIME_WAIT 0
TCP 10.10.13.144:65476 116.77.66.157:80 CLOSE_WAIT 37824
TCP 10.10.13.144:65477 120.92.124.241:80 TIME_WAIT 0
TCP 10.10.13.144:65478 114.112.66.246:80 TIME_WAIT 0
TCP 10.10.13.144:65479 114.112.66.181:80 TIME_WAIT 0
TCP 10.10.13.144:65480 121.9.246.110:80 TIME_WAIT 0
TCP 10.10.13.144:65481 14.17.64.27:80 TIME_WAIT 0
TCP 10.10.13.144:65482 14.17.64.27:80 TIME_WAIT 0
TCP 10.10.13.144:65483 14.17.64.27:80 TIME_WAIT 0
TCP 10.10.13.144:65484 121.9.246.111:80 TIME_WAIT 0
TCP 10.10.13.144:65485 121.9.246.111:80 TIME_WAIT 0
TCP 10.10.13.144:65496 219.73.56.44:54719 ESTABLISHED 11540
TCP 10.10.13.144:65498 219.73.56.44:54719 ESTABLISHED 11540
TCP 10.10.13.144:65515 10.10.10.251:9100 SYN_SENT 3188
TCP 10.10.13.144:65520 60.205.218.245:443 ESTABLISHED 11540
TCP 10.10.13.144:65526 39.107.149.229:443 ESTABLISHED 11540
TCP 10.10.13.144:65528 47.93.235.54:443 ESTABLISHED 11540
TCP 10.10.13.144:65530 39.107.149.229:443 ESTABLISHED 11540
TCP 10.10.13.144:65531 14.215.177.38:443 FIN_WAIT_1 26892
TCP 10.10.13.144:65533 101.89.15.100:80 TIME_WAIT 0
TCP 10.10.13.144:65534 14.215.177.38:443 FIN_WAIT_1 26892
TCP 127.0.0.1:1080 127.0.0.1:57470 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65097 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65426 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65428 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65432 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65445 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65454 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65460 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65464 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65470 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65495 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65497 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65501 FIN_WAIT_2 11540
TCP 127.0.0.1:1080 127.0.0.1:65505 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65509 TIME_WAIT 0
TCP 127.0.0.1:1080 127.0.0.1:65519 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65525 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65527 ESTABLISHED 11540
TCP 127.0.0.1:1080 127.0.0.1:65529 ESTABLISHED 11540
TCP 127.0.0.1:4012 0.0.0.0:0 LISTENING 27972
TCP 127.0.0.1:4013 0.0.0.0:0 LISTENING 27972
TCP 127.0.0.1:5939 0.0.0.0:0 LISTENING 3660
TCP 127.0.0.1:5939 127.0.0.1:63935 ESTABLISHED 3660
TCP 127.0.0.1:6379 0.0.0.0:0 LISTENING 4524
TCP 127.0.0.1:6942 0.0.0.0:0 LISTENING 31800
TCP 127.0.0.1:7475 0.0.0.0:0 LISTENING 29520
TCP 127.0.0.1:8307 0.0.0.0:0 LISTENING 6464
TCP 127.0.0.1:10000 0.0.0.0:0 LISTENING 8080
TCP 127.0.0.1:27015 0.0.0.0:0 LISTENING 8860
TCP 127.0.0.1:39735 0.0.0.0:0 LISTENING 40880
TCP 127.0.0.1:49727 127.0.0.1:49728 ESTABLISHED 6248
TCP 127.0.0.1:49728 127.0.0.1:49727 ESTABLISHED 6248
TCP 127.0.0.1:50044 127.0.0.1:50045 ESTABLISHED 9440
TCP 127.0.0.1:50045 127.0.0.1:50044 ESTABLISHED 9440
TCP 127.0.0.1:50058 127.0.0.1:50059 ESTABLISHED 12840
TCP 127.0.0.1:50059 127.0.0.1:50058 ESTABLISHED 12840
TCP 127.0.0.1:50069 127.0.0.1:50070 ESTABLISHED 13828
TCP 127.0.0.1:50070 127.0.0.1:50069 ESTABLISHED 13828
TCP 127.0.0.1:50073 127.0.0.1:50074 ESTABLISHED 14092
TCP 127.0.0.1:50074 127.0.0.1:50073 ESTABLISHED 14092
TCP 127.0.0.1:50081 127.0.0.1:50082 ESTABLISHED 14316
TCP 127.0.0.1:50082 127.0.0.1:50081 ESTABLISHED 14316
TCP 127.0.0.1:55026 127.0.0.1:55027 ESTABLISHED 22736
TCP 127.0.0.1:55027 127.0.0.1:55026 ESTABLISHED 22736
TCP 127.0.0.1:55080 127.0.0.1:55081 ESTABLISHED 27980
TCP 127.0.0.1:55081 127.0.0.1:55080 ESTABLISHED 27980
TCP 127.0.0.1:55118 127.0.0.1:55119 ESTABLISHED 12792
TCP 127.0.0.1:55119 127.0.0.1:55118 ESTABLISHED 12792
TCP 127.0.0.1:55154 127.0.0.1:55155 ESTABLISHED 12908
TCP 127.0.0.1:55155 127.0.0.1:55154 ESTABLISHED 12908
TCP 127.0.0.1:55587 0.0.0.0:0 LISTENING 24856
TCP 127.0.0.1:55587 127.0.0.1:65427 ESTABLISHED 24856
TCP 127.0.0.1:55587 127.0.0.1:65459 TIME_WAIT 0
TCP 127.0.0.1:55587 127.0.0.1:65463 TIME_WAIT 0
TCP 127.0.0.1:55587 127.0.0.1:65467 TIME_WAIT 0
TCP 127.0.0.1:55587 127.0.0.1:65504 TIME_WAIT 0
TCP 127.0.0.1:55587 127.0.0.1:65508 TIME_WAIT 0
TCP 127.0.0.1:55587 127.0.0.1:65522 TIME_WAIT 0
TCP 127.0.0.1:57238 127.0.0.1:57239 ESTABLISHED 22844
TCP 127.0.0.1:57239 127.0.0.1:57238 ESTABLISHED 22844
TCP 127.0.0.1:57241 127.0.0.1:61490 ESTABLISHED 22844
TCP 127.0.0.1:57470 127.0.0.1:1080 ESTABLISHED 39700
TCP 127.0.0.1:58147 127.0.0.1:58148 ESTABLISHED 29844
TCP 127.0.0.1:58148 127.0.0.1:58147 ESTABLISHED 29844
TCP 127.0.0.1:61243 127.0.0.1:61244 ESTABLISHED 31800
TCP 127.0.0.1:61244 127.0.0.1:61243 ESTABLISHED 31800
TCP 127.0.0.1:61246 127.0.0.1:61247 ESTABLISHED 31800
TCP 127.0.0.1:61247 127.0.0.1:61246 ESTABLISHED 31800
TCP 127.0.0.1:61490 0.0.0.0:0 LISTENING 31800
TCP 127.0.0.1:61490 127.0.0.1:57241 ESTABLISHED 31800
TCP 127.0.0.1:61490 127.0.0.1:61535 ESTABLISHED 31800
TCP 127.0.0.1:61490 127.0.0.1:61558 ESTABLISHED 31800
TCP 127.0.0.1:61490 127.0.0.1:61633 ESTABLISHED 31800
TCP 127.0.0.1:61520 127.0.0.1:65516 ESTABLISHED 31800
TCP 127.0.0.1:61533 127.0.0.1:61534 ESTABLISHED 31060
TCP 127.0.0.1:61534 127.0.0.1:61533 ESTABLISHED 31060
TCP 127.0.0.1:61535 127.0.0.1:61490 ESTABLISHED 31060
TCP 127.0.0.1:61556 127.0.0.1:61557 ESTABLISHED 31644
TCP 127.0.0.1:61557 127.0.0.1:61556 ESTABLISHED 31644
TCP 127.0.0.1:61558 127.0.0.1:61490 ESTABLISHED 31644
TCP 127.0.0.1:61630 127.0.0.1:61631 ESTABLISHED 33408
TCP 127.0.0.1:61631 127.0.0.1:61630 ESTABLISHED 33408
TCP 127.0.0.1:61633 127.0.0.1:61490 ESTABLISHED 33408
TCP 127.0.0.1:62859 127.0.0.1:62860 ESTABLISHED 27376
TCP 127.0.0.1:62860 127.0.0.1:62859 ESTABLISHED 27376
TCP 127.0.0.1:63342 0.0.0.0:0 LISTENING 31800
TCP 127.0.0.1:63550 127.0.0.1:63551 ESTABLISHED 26892
TCP 127.0.0.1:63551 127.0.0.1:63550 ESTABLISHED 26892
TCP 127.0.0.1:63935 127.0.0.1:5939 ESTABLISHED 8436
TCP 127.0.0.1:63945 127.0.0.1:63946 ESTABLISHED 8436
TCP 127.0.0.1:63946 127.0.0.1:63945 ESTABLISHED 8436
TCP 127.0.0.1:65097 127.0.0.1:1080 ESTABLISHED 29520
TCP 127.0.0.1:65426 127.0.0.1:1080 ESTABLISHED 4684
TCP 127.0.0.1:65427 127.0.0.1:55587 ESTABLISHED 11540
TCP 127.0.0.1:65428 127.0.0.1:1080 ESTABLISHED 24856
TCP 127.0.0.1:65439 127.0.0.1:61520 TIME_WAIT 0
TCP 127.0.0.1:65447 127.0.0.1:61520 TIME_WAIT 0
TCP 127.0.0.1:65452 127.0.0.1:61520 TIME_WAIT 0
TCP 127.0.0.1:65466 127.0.0.1:1080 TIME_WAIT 0
TCP 127.0.0.1:65468 127.0.0.1:61520 TIME_WAIT 0
TCP 127.0.0.1:65493 127.0.0.1:61520 TIME_WAIT 0
TCP 127.0.0.1:65495 127.0.0.1:1080 ESTABLISHED 9440
TCP 127.0.0.1:65497 127.0.0.1:1080 ESTABLISHED 9440
TCP 127.0.0.1:65501 127.0.0.1:1080 CLOSE_WAIT 39700
TCP 127.0.0.1:65512 127.0.0.1:61520 TIME_WAIT 0
TCP 127.0.0.1:65516 127.0.0.1:61520 ESTABLISHED 40880
TCP 127.0.0.1:65517 127.0.0.1:1080 TIME_WAIT 0
TCP 127.0.0.1:65519 127.0.0.1:1080 ESTABLISHED 9440
TCP 127.0.0.1:65521 127.0.0.1:1080 TIME_WAIT 0
TCP 127.0.0.1:65523 127.0.0.1:1080 TIME_WAIT 0
TCP 127.0.0.1:65525 127.0.0.1:1080 ESTABLISHED 9440
TCP 127.0.0.1:65527 127.0.0.1:1080 ESTABLISHED 9440
TCP 127.0.0.1:65529 127.0.0.1:1080 ESTABLISHED 9440
TCP 192.168.20.1:139 0.0.0.0:0 LISTENING 4
TCP 192.168.195.1:139 0.0.0.0:0 LISTENING 4
TCP [::]:135 [::]:0 LISTENING 908
TCP [::]:443 [::]:0 LISTENING 6464
TCP [::]:445 [::]:0 LISTENING 4
TCP [::]:1080 [::]:0 LISTENING 11540
TCP [::]:3306 [::]:0 LISTENING 6248
TCP [::]:3389 [::]:0 LISTENING 1240
TCP [::]:7680 [::]:0 LISTENING 5084
TCP [::]:33060 [::]:0 LISTENING 6248
TCP [::]:49664 [::]:0 LISTENING 724
TCP [::]:49665 [::]:0 LISTENING 1592
TCP [::]:49666 [::]:0 LISTENING 1700
TCP [::]:49667 [::]:0 LISTENING 2996
TCP [::]:49668 [::]:0 LISTENING 3188
TCP [::]:49669 [::]:0 LISTENING 856
TCP [::]:49672 [::]:0 LISTENING 3320
TCP [::]:49721 [::]:0 LISTENING 824
TCP [::]:52982 [::]:0 LISTENING 40880
TCP [::1]:8307 [::]:0 LISTENING 6464
UDP 0.0.0.0:123 *:* 41588
UDP 0.0.0.0:500 *:* 3312
UDP 0.0.0.0:3389 *:* 1240
UDP 0.0.0.0:3600 *:* 4336
UDP 0.0.0.0:3702 *:* 4296
UDP 0.0.0.0:3702 *:* 4296
UDP 0.0.0.0:4500 *:* 3312
UDP 0.0.0.0:5050 *:* 6404
UDP 0.0.0.0:5353 *:* 18524
UDP 0.0.0.0:5353 *:* 18524
UDP 0.0.0.0:5353 *:* 18524
UDP 0.0.0.0:5353 *:* 18524
UDP 0.0.0.0:5353 *:* 2472
UDP 0.0.0.0:5353 *:* 18524
UDP 0.0.0.0:5353 *:* 18524
UDP 0.0.0.0:5355 *:* 2472
UDP 0.0.0.0:7273 *:* 29520
UDP 0.0.0.0:18386 *:* 7996
UDP 0.0.0.0:49186 *:* 4336
UDP 0.0.0.0:50775 *:* 4336
UDP 0.0.0.0:51168 *:* 3660
UDP 0.0.0.0:51170 *:* 3188
UDP 0.0.0.0:51287 *:* 27424
UDP 0.0.0.0:53219 *:* 26892
UDP 0.0.0.0:53944 *:* 10080
UDP 0.0.0.0:57826 *:* 4336
UDP 0.0.0.0:59350 *:* 4336
UDP 0.0.0.0:59373 *:* 4336
UDP 0.0.0.0:62208 *:* 4296
UDP 0.0.0.0:63583 *:* 4336
UDP 0.0.0.0:65418 *:* 27424
UDP 10.10.13.144:137 *:* 4
UDP 10.10.13.144:138 *:* 4
UDP 10.10.13.144:2177 *:* 12660
UDP 127.0.0.1:50972 *:* 8860
UDP 127.0.0.1:50973 *:* 8860
UDP 127.0.0.1:59934 *:* 4132
UDP 192.168.20.1:137 *:* 4
UDP 192.168.20.1:138 *:* 4
UDP 192.168.20.1:2177 *:* 12660
UDP 192.168.20.1:5353 *:* 3660
UDP 192.168.195.1:137 *:* 4
UDP 192.168.195.1:138 *:* 4
UDP 192.168.195.1:2177 *:* 12660
UDP 192.168.195.1:5353 *:* 3660
UDP [::]:123 *:* 41588
UDP [::]:500 *:* 3312
UDP [::]:3389 *:* 1240
UDP [::]:3702 *:* 4296
UDP [::]:3702 *:* 4296
UDP [::]:4500 *:* 3312
UDP [::]:5353 *:* 18524
UDP [::]:5353 *:* 2472
UDP [::]:5353 *:* 18524
UDP [::]:5353 *:* 18524
UDP [::]:5355 *:* 2472
UDP [::]:51169 *:* 3660
UDP [::]:62209 *:* 4296
UDP [fe80::1423:da2b:aa17:a54e%9]:2177 *:* 12660
UDP [fe80::1423:da2b:aa17:a54e%9]:5353 *:* 3660
UDP [fe80::3824:4022:8d15:488b%15]:2177 *:* 12660
UDP [fe80::c5b5:51e9:9bc1:add9%6]:2177 *:* 12660
C:\Users\vjia>netstat -ano|findstr 500
TCP 127.0.0.1:50044 127.0.0.1:50045 ESTABLISHED 9440
TCP 127.0.0.1:50045 127.0.0.1:50044 ESTABLISHED 9440
TCP 127.0.0.1:50058 127.0.0.1:50059 ESTABLISHED 12840
TCP 127.0.0.1:50059 127.0.0.1:50058 ESTABLISHED 12840
TCP 127.0.0.1:50069 127.0.0.1:50070 ESTABLISHED 13828
TCP 127.0.0.1:50070 127.0.0.1:50069 ESTABLISHED 13828
TCP 127.0.0.1:50073 127.0.0.1:50074 ESTABLISHED 14092
TCP 127.0.0.1:50074 127.0.0.1:50073 ESTABLISHED 14092
TCP 127.0.0.1:50081 127.0.0.1:50082 ESTABLISHED 14316
TCP 127.0.0.1:50082 127.0.0.1:50081 ESTABLISHED 14316
UDP 0.0.0.0:500 *:* 3312
UDP 0.0.0.0:4500 *:* 3312
UDP [::]:500 *:* 3312
UDP [::]:4500 *:* 3312
C:\Users\vjia>
一直以为window cmd下这么low , 居然都没有 linux grep的替代者, 原来 findstr就是.