Sometimes, we want to get Python Flask to run on port 80.
In this article, we’ll look at how to get Python Flask to run on port 80.
How to get Python Flask to run on port 80?
To get Python Flask to run on port 80, we can call app.run
with the port
argument.
For instance, we write
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80)
to call app.run
with the port
argument set to 80 to run our Flask app on port 80.
Conclusion
To get Python Flask to run on port 80, we can call app.run
with the port
argument.