How to access a local host or service from a virtual device?

Note

The following methods only applies if Genymotion Desktop and your server/service run on the same host machine.

With VirtualBox

To reach a local host service from the virtual device, use the IP address 10.0.3.2.

With QEMU

Unlike VirtualBox, there is no loopback interface when using QEMU. However, it is possible to use adb reverse to bind a virtual device local port to a host local port.

adb reverse tcp:1234 tcp:1234