Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

keithiopian

macrumors newbie
Original poster
Mar 26, 2012
1
0
Hello,

I am trying to connect to my localhost using Internet Explorer. On the Mac side of Parallels all is well with my browsers (firefox, chrome, safari, opera). However, once I switch to the Windows side, localhost is no longer recognized.

Has anyone any insight into this situation for me?

Thanks for your time!
 
You're accessing 2 different localhost. localhost from a virtual machine is different from that of the host machine. You'll need to enter the IP to connect.
 
In addition to using your Mac's IP, you need to make sure that your VM's networking is set to Bridged Ethernet instead of Shared Networking. Otherwise the VM won't be able to find your Mac on the network.
 
Any tutorials out there for how to do this? I use VMWare Fusion and would like to view localhost sites on my Windows VM. Thanks!
 
You can use localhost, you just need to edit the parallel machine's hosts file

It's located at: /WINDOWS/system32/drivers/etc/hosts

Edit it in Notepad, and add the following line, replacing <mac IP address> with your machine's IP address:

Code:
<mac IP address> localhost


Note that this works for any hostname, so you can (for example) test locally-running Apache development environments from the Windows VM
e.g.:
Code:
192.168.1.3 dev.testsite.com
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.