The Windows 11 system reported that the port number was occupied when it was restarted due to the abnormal shutdown of the magic Internet access, and recorded the previously forgotten operations related to killing the process through the port.
Enter in the command line (win+r, enter cmd):
netstat -ano
You can see the ip address and port number being used by the machine as shown in the figure:
Enter in the command line (win+r, enter cmd):
netstat -ano | findstr “1089”
You can find the process using this port, 58852 is the port number.
Enter in the command line (win+r, enter cmd):
taskskill /pid 58852 -f
You can kill the process occupied by the magic Internet access.
Magic Internet access on Linux or Mac system:
- Open a terminal.
- Run the following command to find the process ID using the specified port:
lsof -i :<port number>
- Find the corresponding process ID (PID) in the output.
- Run the following command to kill the process:
kill <process ID>
Note that administrator or root privileges are required to use these commands.