Ubuntu – How to access localhost on Virtualbox host machine

lamplocalhostvirtualbox

I created a virtual machine on Virtualbox with Ubuntu 12.04 only to install a LAMP solution and use it with my host machine, but I can't access the localhost using the ip (10.0.2.15) in the browser .

Is there any way to solve this problem ?

Best Answer

First you should change the Network adapater to Bridged (It seems you are choosing NAT)

enter image description here

Then you can give an ip to your guest machine other than 10.0.2.15 (or you can leave it if you want)

then open a browser from your host machine and type: ip-address-of-your-guest-machine/...

Related Question