Connect to Ubuntu Virtualbox webserver

Posted on 2012-09-20
Last Modified: 2012-10-08
I could setup a Ubuntu webserver LAMP. I installed elinks text browser into the webserver and I could access the work default html page.

So that does work. In Virtualbox settings I set up a Bridged Adapter with the name eth0

In the webserver executing the statement :  
ip addr show

Open in new window

returns also
eth0 ... inet brd scope global ...
So it seems that network adapter eth0 has a global scope with ip address

According to the documentation and samples videos I have seen I should be able to access the webserver from an other Virtualbox client. But I can not.

I can ping the ip addresses successful but trying to connect using a browser in different Virtualbox client returns "Unable to connect"

What can be wrong and how can I correct this.
Question by:bernard100
    LVL 13

    Expert Comment

    First of all i guess your vms are in the same subnet right?
    Can you open / ping another ip on the network where is not a virtual or host machine (like a router) ?
    A good start would be to give your clients bridged to a physical adapter. (but assign them a new mac address).
    Then your clients will use the same adapter as a channel. whatever your host reaches, it will be reached by the clients(vms).
    since you already installed virtual box, i would suggest to add also phpvirtualbox (a web based configuration/monitoring project)
    I hope that helped.
    Please feedback on your problem

    Author Comment

    The VMS are indeed on the same subnet. Even on the same IP adress also global.
    This supprises me, so the Virtualbox client webserver can not be uniquly addressed.

    Yes I can ping anything from any location.

    My clients are both bridged to to physical adapter and have a different MAC address.

    But I want my Virtualbox client webserver to be available in all my local network, within the same subnet, not only within Virtualbox hosts and clients.

    I wanted to follow your suggestion about PHPvirtualbox as help. It seems that for my version of Virtualbox 4.0.4 I first have to install Virtualbox package. I tried to do so but just extracting the file failed.
    This seems to be an escalation itself, and I do not want to continue that way.
    I have been seeing a lot of Youtube instruction videos and it all should be quit strait forward.

    Accepted Solution

    Thanks for your reply.

    For me there was no solution. Ubuntu Virtualbox webserver was not working for me. And there was no working advice for me to pin-point the problem and solve it within Virtualbox client.

    In the end I had to use a physical server. Which works.

    Author Closing Comment

    It is no solution. Its a work-arround. But I have to close this question.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now