I have a Flask project that cannot be viewed from the webview

Question:
I have a Flask project that cannot be viewed from the webview, The Flask is running nicely. Is there any trouble with the replit servers or there was a new feature?

Replit Profile: https://replit.com/@choriegojose

Hi @choriegojose. Try looking for ‘webview’ in the tools section of the IDE:

image

Then click it to open the webview tab.

Please do ask if you need further help :slightly_smiling_face:

1 Like

Please also note that your Flask server must run on host 0.0.0.0 in order for it to work correctly, or you will get the below error:

image

So your app.run() should look like this:

app.run(host='0.0.0.0')

If any of these solutions have helped you, please mark it as a solution.

4 Likes