How to make Replit auto-generate link for this server

I have a Python script I was testing out. I got it from some repository and it’s not working with Replit. Normally it’d work locally on a machine but here I want it to generate a link to go to the website since it uses Flask or Gunicorn or something. How could I make it NOT do it locally like this? Thanks!

Repl link: https://replit.com/@boston2029/test#main.py

I fixed it by adding '0.0.0.0', port=5000 inside of the app.run() call.

1 Like

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