Flask部署外网访问问题

参考https://zhuanlan.zhihu.com/p/611969276,https://www.jianshu.com/p/52df8c4266db

IP不能写127.0.0.1,要写0.0.0.0

if __name__ == '__main__':
    app.run(host="0.0.0.0", port=5000, debug = True)

你可能感兴趣的:(flask,python,后端)