port forwarding with VirtualBox
Posted
by Argh
on Server Fault
See other posts from Server Fault
or by Argh
Published on 2010-04-29T09:48:30Z
Indexed on
2010/04/29
9:58 UTC
Read the original article
Hit count: 576
I have a virtualbox VM running ubuntu.
The Ubuntu guest is running a web server which listens on port 3000 (http://127.0.0.1:3000)
The host machine is windows vista.
I have configured port forwarding using VBoxManage.
If I query the config using VboxManage getextradata "MyMachine", I get
Key: GUI/AutoresizeGuest, Value: on Key: GUI/Fullscreen, Value: off Key: GUI/LastCloseAction, Value: shutdown Key: GUI/LastWindowPostion, Value: 9,34,640,529,max Key: GUI/MiniToolBarAlignment, Value: bottom Key: GUI/MiniToolBarAutoHide, Value: off Key: GUI/SaveMountedAtRuntime, Value: yes Key: GUI/Seamless, Value: off Key: GUI/ShowMiniToolBar, Value: yes Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort, Value: 3000 Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort, Value: 3000 Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol, Value: TCP
This looks like it should work...
However when I try to access the web server from the host machine (windows box) I dont get a response.
I ran a netstat on the windows box and nothing appears to be listening on port 3000 which explains why forwrding isnt working.
Note that I have already tested with my firewall switched off...
The version of VirtualBox I am using is 3.1.4
Any ideas?
© Server Fault or respective owner