flask change host and port from args code example Example: python3.6 app run host if __name__ == '__main__': app.run(host='0.0.0.0')