Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

host: Windows Pro 7 x64, wamp installed, default settings

guests: 3 x Windows XP

How do I access my wamp server from my virtual machines without making it available to the internet? (you know, that handy menu option wamp has: "Put Online" and "Put Offline")

share|improve this question
How did you set up the network adapter in the virtual OS's settings in VirtualBox? – iglvzx Dec 15 '11 at 5:25
I can set it up in any way, I don't think there is a problem in changing it. I tried my best at googling this, but most people seem to have Ubuntu or other linux distributions as their host, so it didn't help me a lot. – sdadffdfd Dec 16 '11 at 9:26
You misunderstood. When you right-click a virtual machine in the VirtualBox Manager, which setting do you have under Settings > Network > Adapter 1? (i.e. NAT, Bridged Adapter, Internal Network, Host-only Adapter, or Generic Driver...) – iglvzx Dec 16 '11 at 18:06

You could configure WAMP to listen on a local IP address and configure your firewall to disallow incoming requests on port 80 to your machine (aka, not redirecting port 80 requests you your machine), you should be good.

Alternatively, you could configure WAMP to only listen to local host and configure your VMs to use a Host-only network adapter.

share|improve this answer
up vote 0 down vote accepted

After almost a day of tweaking I think the solution was there since the beginning. I got it working, not sure yet how.

Here's my setup on my XP guest: two networks, one NAT (for internet access) and the other one Host-Only; In VirtualBox>Preferences>Network>(NetworkName) I disabled DHCP. The rest is default.

Now from the guest XP I can access my apache on for some reason.

share|improve this answer

Assuming you have selected NAT and leave standard DHCP settings alone.

In your guest edit your hosts files (c:\windows\system32\drivers\etc\hosts) and for each of your sites, just add the host ip, like: localhost.ilovemymac.tld

Replace the site names with yours.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .