Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i set up an ubuntu server in virtual box following these and these instructions.My connection worked,also ssh . Then, i signed up in ,i configured the router ,but in the port forward i changed the 2222 port to 80 because it couldn’t forward from 2222.My port is open and accepting connections but i don’t have any more connection from the server in the virtual box. From virtual box settings->network->port forwarding , i use: Host IP : , Host port :80 , Guest Port :22 ,Guest IP : its empty.

I am not sure if i am using right the address in /etc/network/interfaces , i use and also this address i use for the firewall rules in the router. Also,in the server /etc/resolv.conf i put that address and in /etc/mysql/my.cnf.

I can ping that address but nothing more.(of course neither ssh works)

Thank you

share|improve this question

I would change your network connection settings ("Devices" -> "Network Adapters...") from NAT to "Bridged Adapter". You will want your virtual box to get an IP Address from your router and not a separate one from the host machine.

VirtualBox Network settings tab showing attached to, bridged adapter

This should allow you to use only the router's configuration to poke a port directly to your virtual box on the network.

share|improve this answer
When you say strait,you mean from the settings choose instead of nat "not attached"?I tried but still the same – George Aug 9 '11 at 12:04
I mean "Bridged", I've added a screenshot to show you the kind of options available in VirtualBox OSE. – Martin Owens -doctormo- Aug 9 '11 at 12:21
It gives me"Failed to open a session for the virtual machine UbuntuServer. Unknown configuration node '//ssh' found in the configuration of IntNet instance #0 (VERR_CFGM_CONFIG_UNKNOWN_NODE). Unknown error creating VM (VERR_CFGM_CONFIG_UNKNOWN_NODE)."Also, i am not sure if i want nat or bridge.Thanks – George Aug 9 '11 at 12:43
That error is very scary, you may need to report a bug. – Martin Owens -doctormo- Aug 16 '11 at 18:54
+1 >Good answer – Ringtail Feb 24 '12 at 3:47

You mentioned that you changed your forwarding port from 2222 to 80. According to VirtualBox in their description of NAT Limitations that won't work:


Forwarding host ports < 1024 impossible:

On Unix-based hosts (e.g. Linux, Solaris, Mac OS X) it is not possible to bind to ports below 1024 from applications that are not run by root. As a result, if you try to configure such a port forwarding, the VM will refuse to start.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.