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

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 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, [email protected] 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 [email protected].

To post to this group, send email to [email protected].

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.

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 <[email protected]> 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, [email protected] 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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
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.

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, [email protected]il.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 [email protected].

To post to this group, send email to [email protected].

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.

–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, [email protected] 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, [email protected] 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 [email protected].

To post to this group, send email to [email protected].

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 [email protected].

To post to this group, send email to [email protected].

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

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

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 <[email protected]> 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, <[email protected]> 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, [email protected] 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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
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 [email protected].
To post to this group, send email to [email protected].
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.

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 [email protected] 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, [email protected] 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, [email protected] 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 [email protected].

To post to this group, send email to [email protected].

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 [email protected].

To post to this group, send email to [email protected].

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 [email protected].

To post to this group, send email to [email protected].

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.