Windows – Connect to the localhost of a virtualised PC (VMWare) from Mac

localhostvirtual machinevirtualizationvmware-fusionwindows 7

I've found a lot of online help re connecting to a Mac's localhost from inside a virtual PC hosted on a Mac, but not the other way around, which is what I'm after.

EDIT – tried to make myself a bit clearer.

Setup: I have a MacBook on which I am running VMWare to host a virtual instance of Windows 7. In that virtual PC I am writing a web-service which, at the moment, is accessed via the localhost of the virtual PC.

I'm also developing an iPhone app that uses the web-service above, so I need to be able to access the localhost of the virtual PC FROM my Mac.

If anyone has any experience in doing something similar I'd be grateful for any pointers as to how to achieve this.

Best Answer

You could set up your VM networking settings to run in bridging mode, give it an IP (or let it obtain one from DHCP normally) then, you would typically treat it like a physical node on the network and connect to it by its IP.

More info: