Created
May 30, 2018 12:01
-
-
Save 4levels/39792f2c75e5222a536ab5694bdfa4f0 to your computer and use it in GitHub Desktop.
Change Android emulator /etc/hosts file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adb root | |
# adb remount | |
# adb shell | |
# 192.168.121.50 is the IP of a local bridged connection with fixed ip with kvm/qemu | |
# api-local.yourconfiguredvhost.com is the local domain used for testing, running on a vm on the host | |
echo "127.0.0.1 localhost\n::1 ip6-localhost\n192.168.121.50 api-local.yourconfiguredvhost.com" > /system/etc/hosts | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment