win + r open the input cmd enter
ipconfig: View ip configuration information
" Ipconfig / all " and press Enter on the keyboard, (Note: The ipconfig command is to view IP configuration information, the parameter " all " means to view all configuration information of all network cards)
netstat -aon | findstr, indicating the port number to be viewed, such as:
On the far right is the process ID of this program: 4;
Knowing the process ID, we only need to find out which program is 4; continue to enter the following command: tasklist | findstr "4", 4 is the previous process ID.
Close the process taskkill / F / IM xxxx .exe
View port status netstat -aon