Page 1 of 1

solved Can't connect to Ubuntu Server Guest

Posted: 23. Feb 2009, 11:03
by MrFreez
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

Posted: 23. Feb 2009, 20:29
by Sasquatch
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.

Re: Can't connect to Ubuntu Server Guest

Posted: 23. Feb 2009, 21:27
by TerryE
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.
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.