network request failed when running expo app on android device


#1

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.

Thanks


#2

Have you tried the browser on your Android device itself?


#3

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


closed #4

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