Connect to Flask localhost server through proxy IP Connect to Flask localhost server through proxy IP flask flask

Connect to Flask localhost server through proxy IP


You need to configure flask to run on 127.0.0.1 and in your proxy settings you need to enable: "bypass proxy for local address" otherwise you are trying to access localhost on the proxy and not on your local machine.

If you want to access your flask instance via a proxy that is outside of you local network you need to: - Run flask on 0.0.0.0:8888 (or another port) - From your home router, forward port 8888 to the machine running flask - From your browser use your external IP address (google "what is my ip") + the 8888 port to access your flask app

IMPORTANT NOTE: Doing it like described in the second solution is opening your application to the world, so be careful.