1. Windows See all ports netstat -nao | more
2. Port query syntax specified occupancy netstat -aon | findstr "Tip of the port," such as netstat -nao | findstr 10050 | more
3. queries corresponding PID process
After the above steps, PID we get to 5220, then we can enter the command [tasklist | findstr "5220"], as shown below