Access Local Mac Dev Environment from VM

Testing my web development in IE is the bane of my existence. Since I run Apache and MYSQL on my local host on my Mac it was always a trick to view my work though my Windows VM until my friend Mike Farmer showed me an easy way to access my development environment on my Mac from my virtual machine.

Steps:

  1. Get default gateway of VM machine
  2. Use that address the same way you would “localhost” on your Mac

Example:

Get IP address of VM<figcaption class="wp-caption-text">Get IP address of VM</figcaption></figure>

Local Mac development environment<figcaption class="wp-caption-text">Local Mac development environment</figcaption>
Dev environment from VM<figcaption class="wp-caption-text">Dev environment from VM</figcaption>