Connect to virtual host computer from within virtualbox

Posted by Nicky De Maeyer on Super User See other posts from Super User or by Nicky De Maeyer
Published on 2010-02-17T08:12:14Z Indexed on 2010/03/27 7:03 UTC
Read the original article Hit count: 384

Filed under:
|
|
|

I'm currently developing on an ubuntu karmic. For this I've installed lampp with a virtual host on apache so http://myproject/ is mapped to my project's root directory.

Now to test the website in IE I've installed an XP machine on a virtualBox OSE. Ive managed to get the virtual host working on the XP by adding its to the hostfile, like this: 255.255.255.255 myproject

where 255.255.255.255 is the ip adress of the host computer (my ubuntu).

Now every day when I come to work and plug in my computer to the network, my IP has changed. so When i boot the XP I have to change the IP in the hostfile to my new IP. Is there any way where I can set the ip to somthing the XP will recognise as the host machine? I've tried replacing the IP in the hostfile by the host computer name, but that does not seem to work...

This would make my like a bit easier :)

© Super User or respective owner

Related posts about ubuntu

Related posts about virtualbox