Access host server when no internet available

Discussions related to using VirtualBox on Linux hosts.
Post Reply
manicnerd
Posts: 4
Joined: 25. Aug 2008, 04:13

Access host server when no internet available

Post by manicnerd »

HOST: laptop LAMP Ubuntu 8.10

GUEST: WinXP

I'm working on a few web designs and it's important for the site to look good on all browsers. From the guest I can type the IP of the HOST (most of the time it is something like 192.168.1.103). This connects to the apache server on the HOST and I can test out the designs.

My question is...How do I do this when there is no internet connection (no ip gets assigned to the host)? I just realized this while getting ready for a meeting with a client (this weekend) and might not have internet access (restaurant). I've been trying to test this out by disabling wireless and not using a network cable. I cannot find a way to get this to work...I still have access to my shared folders (\\Vboxsvr\whatever) from the guest. If this connection still works...shouldn't there be a way to get the apache connection to work?

Any help would be greatly appreciated!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Access host server when no internet available

Post by Sasquatch »

If you use NAT, you can try to use 10.0.2.2 to access the Host. If that fails, you have to use a virtual adapter (a TAP interface) and use Host Interface on that TAP adapter. Set an IP on the Host and Guest, and you should have connectivity. In 2.2 there will be a Host Only adapter choice.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
manicnerd
Posts: 4
Joined: 25. Aug 2008, 04:13

Re: Access host server when no internet available

Post by manicnerd »

Works great! Thanks for the quick reply!
Post Reply