Hi,
I've tried several times to establish a port forwarding to connect a Ubuntu 8.04 Server as guest through NAT forwarding on a ubuntuo 8.04 Desktop host, but ending all the time without success! So I would like to get hints and tips from the forum!
Installation:
Host: Ubuntu desktop 8.04 with virtualbox 2.1.4
Guest: Windows XP, Ubuntu desktop 8.04 and Ubuntu server 8.04
Situation:
Windows and Ubuntu desktop running with hostinterface and no problem occurs. Ubuntu server running with hostinterface with no problems.
For establishing a test environment I would like to run the Ubuntu server in a dedicated area and I want to get connection from the host webbrowser to the Ubuntu server. If I use the hostinterface I can reach the Ubuntu server /Apache test page. But if I using NAT with port forwarding I can't reach the page.
For port forwarding I'm using following commands:
VBoxManage setextradata Server "VBoxInternal/Devices/pcnet/0/LUN#0/Config/serverhttp/Protocol" TCP
VBoxManage setextradata Server "VBoxInternal/Devices/pcnet/0/LUN#0/Config/serverhttp/HostPort" 3333
VBoxManage setextradata Server "VBoxInternal/Devices/pcnet/0/LUN#0/Config/serverhttp/GuestPortl" 80
I got no error message, but if I try to get connection to the server via webbrowser entry
10.0.2.15/3333 I got no response.
Any hint is welcome, please help me to solve the problem,
THANX
solved Can't connect to Ubuntu Server Guest
solved Can't connect to Ubuntu Server Guest
Last edited by MrFreez on 24. Feb 2009, 08:08, edited 1 time in total.
-
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
Port forwarding requires you to access the IP on which you forward the ports. You can't access your locally running website if you try to connect to 192.168.1.100 from the internet, you have to access your internet IP for that. Same goes with this. Connect to the HOST IP to get to your Guest.
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.
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.
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: Can't connect to Ubuntu Server Guest
With 2.1x Host If is just so much easier as Sasquatch says. However, port forwarding means just what it says host:3333 maps onto localhost:80. So you browse http://localhost:3333/ not guest:3333.MrFreez wrote:I got no error message, but if I try to get connection to the server via webbrowser entry 10.0.2.15/3333 I got no response.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.