Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

JupyterDash - OSError: Address 'http://127.0.0.1:2222' already in use. Try passing a different port to run_server

Hi,

I am getting the error below:

OSError: Address ‘http://127.0.0.1:2222’ already in use.
Try passing a different port to run_server.

Can anyone help with a way round this?

Thank you

Hi,

As the error message suggest, just pass a different port when running the application:

app.run_server(port=2223)

The port can also be set via the environment variable PORT.

During development, this error is very likely to be happen because the application is running in another terminal.

1 Like

I have tried other port and it keeps on bringing the same error message.

That’s odd… Can you run on the default port 8050?

It’s bringing same error

I see… I am not familiar with jupyter-dash, but I can see a similar issue being reported on GitHub. Please take a look there if any of the comments help. Note that most comments point out that the issue is not related to the ports, but something else.

1 Like

So I set the External Stylesheet to be a list and it seems to be working fine based on the GitHub link you shared.

Thank you so much