Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a local development environment that I have setup using MAMP on OSX, on the default Apache and MySQL ports (80 and 3306).

In the hosts file I have setup custom domains for my sites, eg.

127.0.0.1    mysite.dev

I want to be able to access this site on my Windows VMs. Typically I would type in the IP address of my machine, but I need to ensure that the site is accessible from the domain alias (eg. mysite.dev) and not the IP address.

As per the instructions here, http://stackoverflow.com/questions/3326215/running-osx-mamp-test-server-on-virtualbox-windows-7, I have added the following line to my Windows hosts file…

10.0.2.2    mysite.dev

…to no avail. Any ideas?

share|improve this question
    
Is your MAMP setup to accept external connections. If not it is likely only listening on the local interfact (127.0.0.1). –  heavyd Mar 19 '13 at 2:13
    
How do I go about doing this? I have been able to access my localhost via the local IP address, so presumably this is configured correctly? –  PT Campbell Mar 19 '13 at 7:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.