To change the host file, you must first install the partition systemin read-write mode.
After starting your Genymotion device, open a command prompt and enter:
adb shell
mount -o remount,rw /system
echo "10.71.34.1 devmobservices" >> /etc/hosts
After that, you can contact the service through the address http://devmobservices:1234.
source
share