close

[Solved] Web server failed to start. Port 8080 was already in use

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to call webAPI from gradle project. But I am facing following error Web server failed to start. Port 8080 was already in use in java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Web server failed to start. Port 8080 was already in use Error Occurs ?

I am trying to call webAPI from gradle project. But I am facing following error.

Web server failed to start. Port 8080 was already in use.

How To Solve Web server failed to start. Port 8080 was already in use Error ?

  1. How To Solve Web server failed to start. Port 8080 was already in use Error ?

    To Solve Web server failed to start. Port 8080 was already in use Error Here You can change the default port of your application in application.properties by adding the following line: server.port = 3000 After changing port your error will be solved. Second solution is By killing that port process will solve your error. If You are on windows then just Use this command. First of all Open CMD as run as administrator. and then Tun this command in your terminal: netstat -a -o -n You can see Port at Local Address column after : sign. For Example First Local Address is 0.0.0.0:80 so its port is 80. Then, select the process id(not port) that your port running and type This command and hit enter. taskkill /F /PID <process_id_here>. Now your error is solved.

  2. Web server failed to start. Port 8080 was already in use

    To Solve Web server failed to start. Port 8080 was already in use Error Here You can change the default port of your application in application.properties by adding the following line: server.port = 3000 After changing port your error will be solved. Second solution is By killing that port process will solve your error. If You are on windows then just Use this command. First of all Open CMD as run as administrator. and then Tun this command in your terminal: netstat -a -o -n You can see Port at Local Address column after : sign. For Example First Local Address is 0.0.0.0:80 so its port is 80. Then, select the process id(not port) that your port running and type This command and hit enter. taskkill /F /PID <process_id_here>. Now your error is solved.

Solution 1: Change Port

Here You can change the default port of your application in application.properties by adding the following line.

server.port = 3000 # for example

After changing port your error will be solved.

Solution 2: kill that port

By killing that port process will solve your error. If You are on windows then just Use this command. First of all Open CMD as run as administrator. and then Tun this command in your terminal.

netstat -a -o -n

Output will be something like this image.

You can see Port at Local Address column after : sign. For Example First Local Address is 0.0.0.0:80 so its port is 80.

Then, select the process id(not port) that your port running and type This command and hit enter.

taskkill /F /PID <process_id_here>

Now your error is solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment