Say you are doing local development for your site (e.g. http://spokefire.dev) and you want to start IE testing using some virtual machines. Only you can’t because you have to set up the hosts file to point to your host machines IP address, which constantly changes due to DHCP servers changing your IP.
This gets really old, so a solution (if you are using a VM other than VirtualBox, YMMV) then add a rule for the following into your hosts file.
10.0.2.2 spokefire.dev
Then, from your virtual machine, simply go to http://spokefire.dev in your browser (IE I’m guessing) and it should tunnel back through to your host machine!
Hope that helps someone out, took me ages to track down.
Published on Thursday, 12 April 2012