Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flask - Externally Visible Dev Server

The Flask docs describe an externally visible server that allows users on your network to access your running app. The docs seem to assume a level of understanding that I don't possess and I can't figure out how to make it work.

I've adjusted my app.run() method, passing it the host='0.0.0.0' argument, as instructed in the docs.

How does a user in my network access my app? What address do they visit? Do other settings need to be configured?

like image 978
Matt Parrilla Avatar asked May 28 '26 06:05

Matt Parrilla


1 Answers

You should be able to access it by going to: 0.0.0.0:port.

Someone on your network can access it by going to your-local-ip:port.

Depending on your system, there is a way of finding your local IP address, but it should look something like 192.168.X.X.

like image 105
glifchits Avatar answered May 30 '26 19:05

glifchits



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!