A
A
Artem2014-08-06 11:22:26
Android
Artem, 2014-08-06 11:22:26

Problems on the Genymotion emulator when trying to call a locally deployed service. What ip to use when connecting?

Eats an android application running on a Genymotion emulator, when requesting a service located at localhost:11400 , an exception is thrown in the application. I saw different ips on the network that seem to redirect to localhst, but these actions did not lead me to a positive result. There is an assumption that you need to set up a virtual machine on which the emulator is running, or it’s really a matter of ip on which I am contacting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanKiLL, 2014-08-06
@FanKiLL

Because accessing localhost in android you are accessing localhost on android itself.
On your machine, if on Windows open cdmand run the command ipconfigthere will be the ip of your machine, which you need to substitute instead of the localhost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question