Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Intro to Java Web Development with Spark Diving into Web Development Meet Spark

java.net.BindException: Address already in use: bind

My localhost:4567/ webpage would not run.

And I was getting this error. I found THE SOLUTION at :

http://therealdanvega.com/blog/2015/04/16/windows-kill-process-by-port-number

I assume others may run into the problem during this video in future so I am posting it here.

1 Answer

It's nice of you to post your solution but you don't need to go through all of that. All it means is that in IntelliJ you already had the server running and tried to run a second instance. Just stop the previous one and lunch it back again. Optionally you can go to Edit configurations... and tick the box Single instance only so you won't run into that problem in the future.

Thank you but it was not a second instance running through IntelliJ. I had been working on an outside html page using the localhost with a separate program unrelated to this project. Others may run into this problem as well in the future if they, like me are working on multiple projects at once.