Reputation: 4219
I ran a simple flask web application on python on my localhost.
The web application is running on 127.0.0.1:8000. But I cannot access it from a remote machine in my network using myHostComputerIPaddress:8000.
My host is a windows machine. Please advise.
Upvotes: 2
Views: 1324
Reputation: 531
Your app.run()
function must be app.run(host='0.0.0.0')
in order to give access other devices on same network.
Upvotes: 7