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

Get IP address of VM

Local Mac development environment

Local Mac development environment

Dev environment from VM

Dev environment from VM

Related Posts

MikeGrace: A 25 year old Geek that loves his wife and enjoys tech, photography, outdoors, and his motorcycle.

Discussion

  1. Tory Briggs says:

    This is awesome! I had no idea I could access my dev environment from a virtual machine. Thanks for sharing.

Leave a Comment