Reputation: 1929
I have installed a virtual machin with Windows XP using Virtualbox and i want to acces the localhost from it (i am using Wamp Server). Is it possible? I am using Windows 7 on mi computer.
Upvotes: 19
Views: 25615
Reputation: 13910
This solution works on Mac OS X: open IE and simply enter the URL http://10.0.2.2:8888
(8888 is the Apache port, in MAMP is 8888).
Also, for a better solution: open your hosts
file in C:\WINDOWS\system32\drivers\etc
and add this line:
10.0.2.2 localhost
For a more comprehensive explanation check this link.
Upvotes: 22
Reputation: 10282
I know I'm late to the party, but here are some basic steps others can try in Windows 7/8 when using VirtualBox:
cmd
, press Enter)ipconfig
IPv4 Address
Hope this helps.
Upvotes: 11
Reputation: 361
I do this with following steps. Try this and it should also work for you:
I can access my host's wamp from VM without any problem with this method.
Upvotes: 2
Reputation: 1929
nevermind...I did it. I just had to use 10.0.2.2 in the guest machine's browser to access the localhost :D
Upvotes: 7