Uncaught error:java.net.Exception:Failed to connect to/

Please provide the following:
2. Platforms(Android/iOS/web/all):

Replace this section with as much relevant information as possible and any relevant code along with your question.

Hi Guys,

Did anyone find solution for this issue?

I am using the latest Expo SDK 40 on an Android simulator and I am getting this error

Uncaught Error: java.net UnknownHostException: Unable to resolve host.

13:02:38 Fatal Error


To connect from your android emulator to the localhost you have to use the following IP:

In the emulator environment, will reference the emulator localhost and not the localhost on your computer. is a special alias to your host loopback interface ( or ). So just using the other IP in your emulator will work just like using on a localhost request.

You can read more about it here and here

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