I have been trying to figure out how to setup my VMware Fusion so that it will be able to access http://localhost:8888 on my Mac.
I have editted: c:WINDOWSsystem32driversetchosts to something like this:
But still it won’t resolve to the MAMP pages. After doing some reading, I found out that I can’t use “localhost”. SO I re-editted the hosts file to something like this:
Now, http://mylocalhost:8888 works! BUT I am not totally satisfied. In my applications, I have set a “cofig” variable for the web URL. Something like:
$web_url = "http://localhost:8888/myapp/index";
This would suck for me because I have VMWare Fusion to test CSS between browsers. By the looks of it, I would have to change my variable in order for my web app to work properly.
Do you guys have any ideas on how to use http://localhost from WindowsXP(VMWare) – so that my MAMP Pages will be accessible?