问题 I am able to run a webserver using the following code from flask import Flask from waitress import serve app = Flask(__name__, static_url_path='/static') ... serve(app, port=8080) The problem is that I can access it only from the machine where it is running, if I try to access it using the ipv4 ip, it doesn't work. Am I missing a step? 回答1: Simple example,try it! I hope it will help you. app1.py from flask import Flask app = Flask(__name__) # app.run(host='0.0.0.0', port=8080,debug=True)