user3422637
user3422637

Reputation: 4219

Python Flask application cannot be accessed by remote computers in network

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

Answers (1)

taskiner
taskiner

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

Related Questions