How can I forward port from Guest (OS on virtual box) to Host (my actual machine)?
Guest - Windows 7 Host - Ubuntu 12.10
On my host, I run a web-server on port
I want to be able to open a browser from Guest on url
and see my web app which I run on Host. (the reason is I need IE browser to test some stuff).
In Virtual Box settings, I selected NAT and in Port Forwarding I wrote
Host IP: 127.0.0.1 Port: 3000 Guest IP: 192.168.0.3 Port: 3000
192.168.0.3 is IP of my Guest machine which I obtained from ipconfig.
I thought this should work but now, once I try to run a web-server and Guest is running, I get an error that the port is already in use.
/home/username/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
Web-server is Webrick (default Rails and Ruby web-server in development mode).
I tried different combination of host/guest IP's and ports but none of them seems to be working.