ipconfig ( check the local IP )
Windows IP configuration Ethernet Adapter Bluetooth Network Connection: Media Status . . . . . . . . . . . : Media Disconnected Connect to a specific DNS suffix. . . . . . . : Ethernet Adapter Local Area Connection: Media Status . . . . . . . . . . . : Media Disconnected Connect to a specific DNS suffix. . . . . . . :
1. netstat -ano ( view the usage of all ports on the machine )
Active connection Protocol Local Address External Address Status PID TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 11316 TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 332 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 548 TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING 608 TCP 0.0.0.0:1028 0.0.0.0:0 LISTENING 1108 TCP 0.0.0.0:1029 0.0.0.0:0 LISTENING 648 TCP 0.0.0.0:1038 0.0.0.0:0 LISTENING 616 TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 2728 TCP 0.0.0.0:5678 0.0.0.0:0 LISTENING 9316 TCP 0.0.0.0:10000 0.0.0.0:0 LISTENING 1756 TCP 0.0.0.0:10001 0.0.0.0:0 LISTENING 9316 TCP 0.0.0.0:12192 0.0.0.0:0 LISTENING 1436 TCP 0.0.0.0:13896 0.0.0.0:0 LISTENING 9316 TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING 7436 TCP 127.0.0.1:3306 127.0.0.1:7628 ESTABLISHED 2728 TCP 127.0.0.1:3306 127.0.0.1:7633 ESTABLISHED 2728
2. netstat -ano|findstr "8009" ( to view the usage of the specified port )
TCP 192.168.2.104:8009 61.48.3.241:13523 ESTABLISHED 9316
3. tasklist|findstr "9316" ( View the process information to which the specified port belongs )
ThunderPlatform.exe 9316 Console 1 67,792 K
4. taskkill /f /t /im ThunderPlatform.exe ( kill the specified process )
Success: Process with PID 9316 (which is a child of PID 8376) terminated.