Please tell me how to connect to the website

Question:Below is the code I made using python flask. I want to use it to open a website, but no matter I use,, or, I can’t connect to the web page.

Repl link:

Hey @Residual2023528!

Repls aren’t hosted locally on your computer, so for the time being you might want to access your website by changing this:

into this:'', debug=True)

and access it via Be aware that the domains are being fully removed by January 1st, 2024. You may want to deploy your Repl.


Hey @Residual2023528!

I see your problem you don’t have a port or host, change your __main__ to this →

if __name__ == '__main__':'', port=5000, debug=True)

It includes the host='' and your port port=5000 (which is needed to get a Webview). I hope this helps!


Just as a note @Residual2023528, using debug=True is known to cause issues on Replit, and it’s recommended you remove it from your code.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.