webfaction

Flask request.remote_addr is wrong on webfaction and not showing real user IP

Flask request.remote_addr is wrong on webfaction and not showing real user IP Question: I just deployed a Flask app on Webfaction and I’ve noticed that request.remote_addr is always 127.0.0.1. which is of course isn’t of much use. How can I get the real IP address of the user in Flask on Webfaction? Thanks! Asked By: …

Total answers: 5