The web page written using the flask framework can be accessed normally using http://127.0.0.1:5000/ locally, but the host in the same LAN cannot be accessed using the server IP. The solutions are as follows:
1. Turn off the local firewall.
2. Set Flask to be accessible from any address, host is set to '0.0.0.0'
if __name__=='__main__':
app.run(host='0.0.0.0',port=5000)