Flask server not visible from my public ip address Flask server not visible from my public ip address flask flask

Flask server not visible from my public ip address


Do you have DHCP activated on your router?If yes do you see your host as 192.168.1.11 in there?

You have to use '0.0.0.0' on host, that tells Flask to listen on all addresses. Try specifying the port with quotes as app.run(host="0.0.0.0", port="33")


change it to app.run(host= '0.0.0.0', port="33") to run on your machines IP address.

Documented on the Flask site under "Externally Visible Server" on the Quickstart page:http://flask.pocoo.org/docs/0.10/quickstart/#a-minimal-application

Add port forwarding to port 33 in your routerPort forwarding explained herehttp://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/


You must give the public ip address/LAN ip address as an argument to app.run method.When you don't provide host argument, it works fine with http://localhost:8888/ and http://127.0.0.1:888/, but not to access outside the system where you are running the REST services

Following is the example.app.run(host="192.168.0.29",debug=True, port=8888)