Eclipse port occupied( : address already in use: bind) solution

An error occurred when starting Tomcat in Eclipse: the port is already occupied.

This is because when Tomcat is on, eclipse closes abnormally, causing Tomcat to occupy the port all the time.


Enter the command in the CMD window–

Netstat – ano | findstr 8080 (8080 refers to the occupied port number)

After the command is executed, you can get the PID of the process that occupies the changed port number

Then enter the command in the CMD window–

Taskkill – PID – F from the last command


Read More: