Cant't forward port 80

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
opticx
Posts: 2
Joined: 17. Dec 2008, 15:57

Cant't forward port 80

Post by opticx »

Hi,

I'm running a ubuntu server as my guest system. Now I want to use the guest system as a LAMP server. I've read that it is the easiest way to create a port forwarding with the VBoxManage command line tool. I have used the following three comands to create the port forwarding:

VBoxManage setextradata "ubuntu server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
VBoxManage setextradata "ubuntu server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 80
VBoxManage setextradata "ubuntu server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 80

When I try to start the ubuntu server there is the following message.

error: failed to set up redirection of 80 to 10.2.15:80. Probably a conflict with existing services or other rules.

Errorcode: NS_ERROR_FAILURE

What can I do?
Please help thanks

:-)
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Post by baf »

At least in Linux a normal user can't forward ports below 1024.
Try with port 8080 instead:
VBoxManage setextradata "ubuntu server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 8080
opticx
Posts: 2
Joined: 17. Dec 2008, 15:57

Post by opticx »

But isn't the Apache Server using port 80?

I've tried to forward port 8080 to port 80 in my guest system. I can start may guest system without errors but I can't get a http://localhost:8080 connection to the apache server.

Still need help.

Thanks
Post Reply