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?
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers." – womble
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.
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