Cannot load my local Wordpress site via an Android Emulator

Hey @marhab

By default the IP for the virtual machine is 192.168.95.100. Sometimes that IP is already being used, so it’s possible that this isn’t the IP.

You can verify the IP of the VM in a couple of ways.

Looking at the Local log, there are a few lines that look like this:

May 24, 2019, 2:27 PM PDT - info: [main/set-docker-env] Received Docker Machine env. export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.95.100:2376" 

The DOCKER_HOST value should be the correct IP. You might need to scroll to the bottom of the log and work your way up if that value has changed.

Another option is to open the Hosts file and see what the IP address for the sites that Local is adding to that file.

Here’s a blog post that outlines how to open that file on various Operating Systems:

You should see the contents of that file look something like:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost
## Local by Flywheel - Start ##
192.168.95.100 astra.local #Local Site
192.168.95.100 www.astra.local #Local Site
## Local by Flywheel - End ##% 

The items between the ## Local by Flywheel block should be the urls for the local site. So in the above example, I can take the IP for the astra.local site and be pretty sure that’s the IP of the VM.

Hope that helps get you what you need. Let us know if you need anything else!