Virtual Server Port forwarding

Discussions about using Linux guests in VirtualBox.
Post Reply
U2XS
Posts: 25
Joined: 7. Jun 2009, 18:46
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP, Slax, DSL, Fedora
Location: Brooklyn, NY

Virtual Server Port forwarding

Post by U2XS »

I've forwarded several ports in my guest Ubuntu http server. I previously didn't care which port it would be, so I forwarded 22 to 2222 for SSH & 21 to 2121 for FTP, etc... However I would like to forward port 80 to 80 for HTTP. However I find that when I forward it in the same way, it doesn't work. If I set it to 8080 & go to localhost:8080, I do see the landing page saying "it works". If I forward it to 80 & just go to local host, I see "Bad Request".

Does anyone know how I can fix this?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Virtual Server Port forwarding

Post by vbox4me2 »

Nothing on the Host already using port 80 ?
TheLostOne
Posts: 8
Joined: 27. Sep 2009, 03:32
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win 7, Win XP, Ubuntu

Re: Virtual Server Port forwarding

Post by TheLostOne »

Sorry for hijacking this thread but I have the same problem.
I'm using a Ubuntu Server guest under a Mac OS host.

I can successfully forward port 8080 to 8080 but not port 80 to 80.
When I use the command netstat -atp | grep -i "listen" I see that VirtualBox is correctly listening to 8080 but not to port 80.
I can't see another process using port 80.

Using another source port as 80 works.

Is it possible that VB doesn't allow forwarding port 80?

Thanks & best regards
Post Reply