Networking question

Discussions related to using VirtualBox on Linux hosts.
Post Reply
supradave
Posts: 3
Joined: 2. Aug 2008, 02:22

Networking question

Post by supradave »

If I set up a host interface (not NAT), and I set the interface to a non-routeable address (e.g. 192.168.0.1) and have eth0 on the vbox host a public IP, can I host a webserver on that vbox that would be publicly accessible?

I only have a few addresses and would like to not use them up if I have to.

Thanks,
Dave
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

Post by Sasquatch »

You have to look for internal routing for that to work. For example, route everything that comes in on port 80 on the Host to the interface address of the Guest system. This is not exactly a VB point, as it can also be done with a computer that has two interfaces and a computer behind it.
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.
Post Reply