8080 port already taken issue when trying to redeploy project from Spring Tool Suite IDE
It sometimes happen even when we stop running processes in IDE with help of Red button , we continue to get same error.
It was resolved with following steps,
Check what processes are running at available ports
netstat -ao |find /i "listening"
We get following
TCP 0.0.0.0:7981 machinename:0 LISTENING 2428TCP 0.0.0.0:7982 machinename:0 LISTENING 2428TCP 0.0.0.0:8080 machinename:0 LISTENING 12704TCP 0.0.0.0:8500 machinename:0 LISTENING 2428
i.e. Port Numbers and what Process Id they are listening to
Stop process running at your port number(In this case it is 8080 & Process Id is 12704)
Taskkill /F /IM 12704
(Note: Mention correct Process Id)
For more information follow these links Link1 and Link2.
My Issue was resolved with this, Hope this helps !
For Mac users(OS X El Capitan
):
You need to kill the port that localhost:8080
is running on.
To do this, you need to do two commands in the terminal :N
sudo lsof -i tcp:8080kill -15 PID
NB! PID
IS A NUMBER PROVIDED BY THE FIRST COMMAND.
The first command gives you the PID
for the localhost:8080
.
Replace the PID
in the second command with the PID
that the first command gives you to kill the process running on localhost:8080
.