# From Objects to Functions: IOException 'failed to bind to 0.0.0.0/0.0.0.0:8080

**URL:** <https://forum.devtalk.com/t/from-objects-to-functions-ioexception-failed-to-bind-to-0-0-0-0-0-0-0-0-8080/165819>\
**Category:** PragProg Customers\
**Tags:** book-from-objects-to-functions, question\
**Created:** [12 August 2024 02:35 UTC](https://forum.devtalk.com/t/from-objects-to-functions-ioexception-failed-to-bind-to-0-0-0-0-0-0-0-0-8080/165819 "2024-08-12T02:35:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![systame](https://forum.devtalk.com/user_avatar/forum.devtalk.com/systame/32/6448_2.png) [@systame](https://forum.devtalk.com/u/systame)\
**Post date:** [12 August 2024 02:35 UTC](https://forum.devtalk.com/t/from-objects-to-functions-ioexception-failed-to-bind-to-0-0-0-0-0-0-0-0-8080/165819/1 "2024-08-12T02:35:47Z")

</div>

### @uberto

I’m evaluating a sample of this book to see if I want to buy.

Trying sample code in idea. Tried running ‘Spike.kt’ and get the following error:

```auto
Exception in thread "main" java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080

```

Did some Googling and got nothing useful.

What’s the solution?

---

<div class="post-metadata">

**Author:** ![uberto](https://forum.devtalk.com/user_avatar/forum.devtalk.com/uberto/32/497_2.png) [@uberto](https://forum.devtalk.com/u/uberto)\
**Post date:** [29 August 2024 05:47 UTC](https://forum.devtalk.com/t/from-objects-to-functions-ioexception-failed-to-bind-to-0-0-0-0-0-0-0-0-8080/165819/2 "2024-08-29T05:47:41Z")

</div>

This error means that you cannot open a webserver on port 8080. The likeliest explanation is that you already have a service running on that port, or that could be permission issues, depending on the OS you are running.  
Please try using a different port number.
