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.

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
add comment

3 Answers

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
add comment
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 10.0.2.2 for some reason.

share|improve this answer
add comment

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:

10.0.2.2 localhost.ilovemymac.tld

Replace the site names with yours.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.