I’m developing a web app and I want to test some features localy before pushing them to the server. Trouble is I can’t seem to connect to my locally hosted Flask server from my (Android) phone. I keep getting a timeout error, a connection refused error or a connection aborted error depending on what I try.
I tried a lot of stuff I found here and in other places, including:
- Double checking both devices are on the same WiFi
- Setting the WiFi to private/trusted instead of public
- Changing the host to 0.0.0.0
- Changing the host to my local IP
- Switching debug mode off
- Running the app via cmd instead of launching it as part of
__main__
in VS Code - Allowing Python full access through the firewall
- Temporarily disabling firewall altogether
None of this has helped. One thing I find weird is that other people talking about this mention a local IP like 256.191.13.95, meanwhile mine is 10.0.0.something. I’m still green as grass when it comes to networking, so am I missing something there?