Good morning,
I have developed a bokeh app embed with flask. I put it online, it works perfectly when I try to connect to the website with my computer with Chrome and Safari. However, when anyone else or another computer is trying to connect to the website he gets this message :
Failed to load resource: net::ERR_CONNECTION_REFUSED
http://localhost:5006/bkapp/autoload.js?bokeh-autoload-element=1004&bokeh-app-path=/bkapp&bokeh-absolute-url=http://localhost:5006/bkapp
Which correspond to display of the bokeh plots extracted from the bokeh server. Here is the configuration of the bokeh and flask server :
def bkapp(doc):
doc.add_root(Interface().doc)
@app.route('/', methods=['GET'])
def bkapp_page():
script = server_document('http://localhost:5006/bkapp')
return render_template("embed.html", script=script, template="Flask")
def bk_worker():
server = Server({'/bkapp': modify_doc}, io_loop=IOLoop(),host="localhost:5006",allow_websocket_origin=['*'])
server.start()
server.io_loop.start()
from threading import Thread
Thread(target=bk_worker).start()
if __name__ == '__main__':
app.run(port=8000)
I am totally lost, I tried different configuration but impossible to get one working with another user.
Thank you a lot for you help,
Best regards,