Ask coding questions

← Back to all posts
How would I run a Flask application on the browser, rather than on replit?
IronStarkMan (16)

I have a basic Flask App set up, that literally prints out something lame. And after I provide the host and the port, the app runs, but on replit. And I get this in the console.
Running on http://0.0.0.0:8080/

Now if I click on this link, I get a This site can't be reached message. How can I open this app on the webpage rather on replit, while writing all the code on replit.

Yeah I am a noob.
Answered by RYANTADIPARTHI (6018) [earned 5 cycles]
View Answer
Comments
hotnewtop
RYANTADIPARTHI (6018)

on the right of your output screen, you will see two buttons. Click on the first button. it should look like an arrow pointing outside. Click on it, and it will open a webpage. It's called open in new tab.

So that works.

IMayBeMe (484)

Just delete the port=8080 and it should work fine. The reason for this is because port 8080 gets it to be hosted locally which doesn't work well with repls auto hosting.

IronStarkMan (16)

nope i still see the same message. @IMayBeMe