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.
Pink Ninja Tester
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.