network request failed when running expo app on android device

I am using a localhost server for my app development on expo. I get this error on my android device:

My server and api works fine as I have tested it on postman. It works well in the browser too. I am already using my ip address in the fetch function instead of localhost.
The fetch also works fine on genymotion android emulator. The only issue is on my actual android device.


Have you tried the browser on your Android device itself?

Thanks @nikki I resolved the issue, it was related to my linux firewall settings(ufw) which was not alllowing access to public ports(ufw)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.