I have a Windows XP as guest OS on VirtualBox running on Ubuntu. Inside that Guest Windows XP, I have an instance of Apache running. Now I want to connect to that Apache from the host (Ubuntu). Is it possible? How can I do that?

  • Also I want the guest OS to continue to share the internet connection with the host OS. Feb 7, 2010 at 14:47

2 Answers 2


Change the guests's network adapter settings to 'bridged' and it will get an IP address just like any other machine on your internal network. You can then communicate with it as if it were a physical machine.

  • Note that you may also connect to this machine from any other as well. If you don't want that functionality, you can use firewalling.
    – Nerdfest
    Feb 7, 2010 at 16:39

If your VirtualBox network is set to NAT, you are able to make the connection from your host by configuring the guest from the commandline using something along the lines of

VBoxManage setextradata <GUEST_NAME> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/HostPort" 8080
VBoxManage setextradata <GUEST_NAME> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/GuestPort" 80
VBoxManage setextradata <GUEST_NAME> "VBoxInternal/Devices/pcnet/0/LUN#0/Config/HTTP/Protocol" TCP

and then connecting in your browser to http://localhost:8080

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