Please provide the following:
1./SOLUTION:
2. Platforms(Android/iOS/web/all):
Replace this section with as much relevant information as possible and any relevant code along with your question.
Please provide the following:
1./SOLUTION:
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
Hi,
To connect from your android emulator to the localhost you have to use the following IP: 10.0.2.2:80
.
In the emulator environment, 127.0.0.1:(port)
will reference the emulator localhost and not the localhost on your computer.
10.0.2.2
is a special alias to your host loopback interface ( or 127.0.0.1
). So just using the other IP in your emulator will work just like using 127.0.0.1
on a localhost request.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.