You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an really weird edge case, so I thought about sharing and documenting it a little, since searching about the issue only brought out decade old results.
It was where opening localhost in browser didn't work, I thought it was specific to acode but after digging deeper, it also happens with server ran with termux.
I thought maybe it was something to do with DNS, maybe some browser settings/extension or some hidden proxy setting on android as mention on google, some 10+ years ago.
After hours of digging and trying stuff, it turns out to be the feature to block mobile data per app.
Some android vendor version has a feature to block mobile data per app, that causes even localhost to not work when not connected to a wifi network, the wifi network doesn't need to have internet access.
Hopefully the next person with this issue will have this post and/or related post shows up in their search and not spend hours figuring out why localhost isn't working in certain app when not connected to wifi.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered an really weird edge case, so I thought about sharing and documenting it a little, since searching about the issue only brought out decade old results.
It was where opening localhost in browser didn't work, I thought it was specific to acode but after digging deeper, it also happens with server ran with termux.
I thought maybe it was something to do with DNS, maybe some browser settings/extension or some hidden proxy setting on android as mention on google, some 10+ years ago.
After hours of digging and trying stuff, it turns out to be the feature to block mobile data per app.
Some android vendor version has a feature to block mobile data per app, that causes even localhost to not work when not connected to a wifi network, the wifi network doesn't need to have internet access.
Screenrecorder-2025-06-25-13-46-11-57.mp4
video showing:
asl97/asl97.github.io#5
Hopefully the next person with this issue will have this post and/or related post shows up in their search and not spend hours figuring out why localhost isn't working in certain app when not connected to wifi.
Beta Was this translation helpful? Give feedback.
All reactions