☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

connect to bokeh server from the internet, not only the host

Community Support
wu.tianchen2015
wu.tianchen2015

I run a bokeh server with command

bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: [‘localhost:5006’]

how to set, so that it can be connected from the internet

⌁   Link to post
Havoc_Pennington
Havoc_Pennington

You need to provide the option --host=host:port using the Internet-visible public host and port. If clients connect but are rejected due to a bad Host header, the error message should say what host the client is providing. Add that host with --host.

You may also have to change --address depending on the machine configuration, so you are listening on an Internet-visible interface.

Havoc

···

On Jan 18, 2016, at 8:52 AM, wu.tianchen2015@gmail.com wrote:

I run a bokeh server with command

bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: [‘localhost:5006’]

how to set, so that it can be connected from the internet

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ed1159-7dd8-4130-9185-5705864457b6%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Bryan
Bryan

Additionally, documentation on network configuration is here

  http://bokeh.pydata.org/en/latest/docs/user_guide/cli.html#network-configuration

As well as in the "Running a Bokeh Server" user's guide section.

Bryan

···

On Jan 18, 2016, at 8:10 AM, Havoc Pennington <hpennington@continuum.io> wrote:

You need to provide the option --host=host:port using the Internet-visible public host and port. If clients connect but are rejected due to a bad Host header, the error message should say what host the client is providing. Add that host with --host.

You may also have to change --address depending on the machine configuration, so you are listening on an Internet-visible interface.

Havoc

On Jan 18, 2016, at 8:52 AM, wu.tianchen2015@gmail.com wrote:

I run a bokeh server with command

    bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: ['localhost:5006']

how to set, so that it can be connected from the internet

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ed1159-7dd8-4130-9185-5705864457b6%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/C6B606B2-CFDC-4DE0-8B29-80D7F8B162C7%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
wu.tianchen2015
wu.tianchen2015

Thanks for the answer that helped a lot. But haven’t understand what is the syntax to allow access from any ip-address

bokeh serve example.py --host=...

or

bokeh serve example.py --host=0.0.0.0

doesn’t work

Thanks for the help

···

On Monday, January 18, 2016 at 3:10:59 PM UTC+1, Havoc Pennington wrote:

You need to provide the option --host=host:port using the Internet-visible public host and port. If clients connect but are rejected due to a bad Host header, the error message should say what host the client is providing. Add that host with --host.

You may also have to change --address depending on the machine configuration, so you are listening on an Internet-visible interface.

Havoc

On Jan 18, 2016, at 8:52 AM, wu.tian...@gmail.com wrote:

I run a bokeh server with command

bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: [‘localhost:5006’]

how to set, so that it can be connected from the internet

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ed1159-7dd8-4130-9185-5705864457b6%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post
Havoc_Pennington
Havoc_Pennington

–host isn’t the list of allowed clients, it’s the list of names the clients can use to connect. There isn’t a way to “wildcard” it because it would be insecure (clients could cause bokeh server to generate links to third-party sites)

Havoc

···

On Mon, Jan 18, 2016 at 2:11 PM, wu.tianchen2015@gmail.com wrote:

Thanks for the answer that helped a lot. But haven’t understand what is the syntax to allow access from any ip-address

bokeh serve example.py --host=...

or

bokeh serve example.py --host=0.0.0.0

doesn’t work

Thanks for the help

On Monday, January 18, 2016 at 3:10:59 PM UTC+1, Havoc Pennington wrote:

You need to provide the option --host=host:port using the Internet-visible public host and port. If clients connect but are rejected due to a bad Host header, the error message should say what host the client is providing. Add that host with --host.

You may also have to change --address depending on the machine configuration, so you are listening on an Internet-visible interface.

Havoc

On Jan 18, 2016, at 8:52 AM, wu.tian...@gmail.com wrote:

I run a bokeh server with command

bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: [‘localhost:5006’]

how to set, so that it can be connected from the internet

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ed1159-7dd8-4130-9185-5705864457b6%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5847cd71-232c-4f2a-bef6-95cdab722e28%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–

Havoc Pennington

Senior Software Architect

⌁   Link to post
Bryan
Bryan

Wu,

Another good resource is this section of the user's guide:

  Bokeh server — Bokeh 3.3.2 Documentation

All put together, it outlines basically the exact public deployment we use on AWS.

Bryan

···

On Jan 18, 2016, at 2:28 PM, Havoc Pennington <hpennington@continuum.io> wrote:

--host isn't the list of allowed clients, it's the list of names the clients can use to connect. There isn't a way to "wildcard" it because it would be insecure (clients could cause bokeh server to generate links to third-party sites)

Havoc

On Mon, Jan 18, 2016 at 2:11 PM, <wu.tianchen2015@gmail.com> wrote:
Thanks for the answer that helped a lot. But haven't understand what is the syntax to allow access from any ip-address

bokeh serve example.py --host=*.*.*.*
or
bokeh serve example.py --host=0.0.0.0

doesn't work

Thanks for the help

On Monday, January 18, 2016 at 3:10:59 PM UTC+1, Havoc Pennington wrote:
You need to provide the option --host=host:port using the Internet-visible public host and port. If clients connect but are rejected due to a bad Host header, the error message should say what host the client is providing. Add that host with --host.

You may also have to change --address depending on the machine configuration, so you are listening on an Internet-visible interface.

Havoc

On Jan 18, 2016, at 8:52 AM, wu.tian...@gmail.com wrote:

I run a bokeh server with command

    bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: ['localhost:5006']

how to set, so that it can be connected from the internet

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ed1159-7dd8-4130-9185-5705864457b6%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5847cd71-232c-4f2a-bef6-95cdab722e28%40continuum.io\.

For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
Havoc Pennington
Senior Software Architect

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAC%2B_nE3m3ZHKY1HRgEUQe3nW6042b8Ue2Y5UaBhzR8N3OhYTnQ%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
wu.tianchen2015
wu.tianchen2015

Thanks a lot of for the links

···

On Monday, January 18, 2016 at 9:40:42 PM UTC+1, Bryan Van de ven wrote:

Wu,

Another good resource is this section of the user’s guide:

    [http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#deployment-scenarios](http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#deployment-scenarios)

All put together, it outlines basically the exact public deployment we use on AWS.

Bryan

On Jan 18, 2016, at 2:28 PM, Havoc Pennington hpenn...@continuum.io wrote:

–host isn’t the list of allowed clients, it’s the list of names the clients can use to connect. There isn’t a way to “wildcard” it because it would be insecure (clients could cause bokeh server to generate links to third-party sites)

Havoc

On Mon, Jan 18, 2016 at 2:11 PM, wu.tian...@gmail.com wrote:

Thanks for the answer that helped a lot. But haven’t understand what is the syntax to allow access from any ip-address

bokeh serve example.py --host=...

or

bokeh serve example.py --host=0.0.0.0

doesn’t work

Thanks for the help

On Monday, January 18, 2016 at 3:10:59 PM UTC+1, Havoc Pennington wrote:

You need to provide the option --host=host:port using the Internet-visible public host and port. If clients connect but are rejected due to a bad Host header, the error message should say what host the client is providing. Add that host with --host.

You may also have to change --address depending on the machine configuration, so you are listening on an Internet-visible interface.

Havoc

On Jan 18, 2016, at 8:52 AM, wu.tian...@gmail.com wrote:

I run a bokeh server with command

bokeh serve example.py

on a machine on aws, can not connect to it from internet. get the following error

Allowed Host headers: [‘localhost:5006’]

how to set, so that it can be connected from the internet

–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ed1159-7dd8-4130-9185-5705864457b6%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5847cd71-232c-4f2a-bef6-95cdab722e28%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

–
Havoc Pennington

Senior Software Architect

–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAC%2B_nE3m3ZHKY1HRgEUQe3nW6042b8Ue2Y5UaBhzR8N3OhYTnQ%40mail.gmail.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

⌁   Link to post

End of archived discussion · Replies are disabled