theakson
theakson

Reputation: 546

plotly dash webpage works on Raspberry Pi BUT can't access it over a LAN

I have started playing with Dash which is EXCELLENT for me as I don't want to be a web coder. the web page is GREAT on host machine localhost 127.0.0.1:8050

BUT I cannot get at the web page using 192.168.1.216:8050 on the same LAN?

I checked the ports on the raspberry pi and it's listening on 8050 also I am logged in as the same user on both the remote and the hosting machines.

is there something I am missing here? Here is the print out

Running on http://192.168.1.202:8050/
Debugger PIN: 086-877-772
 * Serving Flask app "5 26 20  dash datatable drop select csv" (lazy loading)
 * Environment: production
[31m   WARNING: This is a development server. Do not use it in a production deployment.[0m
[2m   Use a production WSGI server instead.[0m
 * Debug mode: on

Upvotes: 1

Views: 1096

Answers (1)

Wellington Costa
Wellington Costa

Reputation: 72

Dash class uses 127.0.0.1 as a default IP address. Did you set the host parameter in the run_server() method?

if __name__ == '__main__':
    app.run_server(debug=True, host="192.168.1.216", port=8050)

Upvotes: 2

Related Questions