Flask: Problem to run

if __name__ == '__main__':
      app.run(host='0.0.0.0', port=80)

The one above does not work. If I do ‘flask run’, it still refers to IP address 127.0.0.1 and port 5000.

do ‘flask run –host=0.0.0.0 port=80’ in terminal will work well.

Leave a Reply

Your email address will not be published. Required fields are marked *