Results 1 to 5 of 5

Thread: VirtualBox Port Forwarding Not Working

  1. #1
    Join Date
    Jan 2007
    Location
    Baltimore, MD
    Beans
    841
    Distro
    Ubuntu

    VirtualBox Port Forwarding Not Working

    I have an Ubuntu 10.04 Host running VirtualBox and a Guest Ubuntu Server 10.04 set up.

    My host machine is behind a linksys router. I would like to use the VM as a web server (to the outside world). I have NAT networking between the host and guest machines, and used port forwarding (guide here) to foward port 8888 on the host to port 80 on the guest.

    I also have my linksys router forwarding port 8888 to my host's IP address.

    Now when I go to http://127.0.0.1:8888 in a browser on the host, I get the expected web page served from the guest.

    But if I try to navigate to http://w.x.y.z:8888 (where w.x.y.z is my router's IP to the outside world), I get a page timeout.

    Anyone know what the problem is?

  2. #2
    Join Date
    Jan 2007
    Location
    Baltimore, MD
    Beans
    841
    Distro
    Ubuntu

    Re: VirtualBox Port Forwarding Not Working

    *facepalm*

    turns out port forwarding works better when you don't make silly typos.

  3. #3
    Join Date
    Jun 2007
    Location
    Barcelona - Spain
    Beans
    222
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: VirtualBox Port Forwarding Not Working

    I think your problem is to have NAT in your guest, try change it to Bridged and I think it will run.
    Intel Core 2 Quad Q6600 @ 2.4Ghz - MotherBoard Asus P5K
    4 GB Ram - 250 HD - GeForce 8500 GT

  4. #4
    Join Date
    Jan 2007
    Location
    Baltimore, MD
    Beans
    841
    Distro
    Ubuntu

    Re: VirtualBox Port Forwarding Not Working

    Quote Originally Posted by uidb4056 View Post
    I think your problem is to have NAT in your guest, try change it to Bridged and I think it will run.
    Thank you for the suggestion, but I already solved this problem (see the second post in this thread)

  5. #5
    Join Date
    Feb 2006
    Location
    Canberra
    Beans
    103
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: VirtualBox Port Forwarding Not Working

    Reading this post, I note that it looks as though the VirtualBox documentation (see http://www.virtualbox.org/manual/ch06.html#natforward) has been updated and does not correspond to the 3.1.6 version of VirtualBox that is available on Ubuntu.

    Can anyone give me some clear instructions for how this is to be achieved on 10.04's version of VirtualBox? Hugely appreciated.

    Note related post: http://ubuntuforums.org/showthread.php?t=1435211
    Last edited by jdpipe; March 8th, 2011 at 11:58 PM. Reason: add link

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •