更新时间:2022-10-19 13:21:59
You need to specify host='0.0.0.0'
in app.run()
. Unless told otherwise, Flask binds to "localhost", which means it won't bind to an externally visible interface.
See Flask - configure dev server to be visible across the network