Caused by: java.net.BindException: Address already in use: bind
14,442
You can change your application's port number by providing something like server.port=4567
in your application.properties
.
OR
You can follow the steps as mentioned in http://www.codeman.in/blog/windows-kill-process-by-port-number-157 to kill process running on a port number:-
Author by
user10411549
Updated on June 09, 2022Comments
-
user10411549 almost 2 years
I am trying to run a spring boot application by clicking on Run as -> Spring Boot App. I am getting the error as :
Caused by: java.net.BindException: Address already in use: bind
When I use netstat command, I see the below without process Ids:
netstat -na | find "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING TCP [::]:8080 [::]:0 LISTENING
Notice - I am running my code on windows machine
How do I kill these processes?
-
user10411549 over 5 yearsHello, I forgot to mention I am running this code on my Windows machine. So, I am unable to run the above command lsof -i