You can update the native host file of your Android phone:
adb remount adb push hosts /etc/system/hosts (most tutorials suggest this file) adb push hosts /system/etc/hosts (some VM systems seem to prefer this file instead!, for me this worked)
if there are any problems, for example, I accidentally got a "read-only file system" error 90% of the time when I tried to execute above, and then try to run adb root 'before above (didn't work for me) , or start the Android VM manually using your Android sdk emulator.exe:
emulator.exe -avd Nexus_6_API_23 -partition-size 512
(some hints recommend manually partitioning the size of the partition, so is it easier to write to the virtual machine ?, it seems to have worked better, but still got random read-only errors). The Android virtual machine created using GenyMotion seemed a lot more stable and never got a read-only problem with their virtual machines when I tried to push the hosts file.
If the website you want to look at is hosted on your host computer, you can specify it via special IP-android virtual machines as the host machine through the hosts file:
10.0.2.2 test-drupal8.localhost
or, if you use Bridged Networking instead of NAT (pretend your Windows host machine is 172.16.6.50, where your website is located, and Android VM is 172.16.6.51), then you can directly use windows ip:
172.16.6.50 test-drupal8.localhost
Note. Make sure that Windows Firewall / Antivirus / Firewalls are disabled if you test, as they block my URLs until I turned them off.
armyofda12mnkeys
source share