I have a couple of ports that need port forwarding to my virtualbox for them to work properly, can anyone tell me how to do this? I've looked online but am still confused.
I've found http://sk.c-wd.net/wp/2008/08/17/virtualbox-port-forwarding-with-windows-host/ that I think explains it however I'm a little confused.
Firstly the main machine runs Vista and is attached to the router (port 200 is forwarded to it and works), now I want to forward the same port to the VM (XP in this case) for a program to run properly on it.
Now following that I open cmd in vista and type
cd C:\"Program Files"\Sun\"xVM VirtualBox"\ (which is the location of the folder right) Then type in
VBoxManage.exe setextradata "name of vm" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
VBoxManage.exe setextradata "name of vm" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage.exe setextradata "name of vm" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
all of that (changing the custom bits)? The name of the VM is I guess just "XP" in this case (name of the folder?)
Now the main confusion is the host port and the guest port. I assume the host port is the port Vista is attached to the router (and the router open for) and the guest port the port the program needs (? Again say port 200) Can I run the same port straight through (eg have router, host, guest and program all port 200) and if so will this affect the program on the host PC?
Sorry, long and convoluted post but i'm a bit confused.
I've found http://sk.c-wd.net/wp/2008/08/17/virtualbox-port-forwarding-with-windows-host/ that I think explains it however I'm a little confused.
Firstly the main machine runs Vista and is attached to the router (port 200 is forwarded to it and works), now I want to forward the same port to the VM (XP in this case) for a program to run properly on it.
Now following that I open cmd in vista and type
cd C:\"Program Files"\Sun\"xVM VirtualBox"\ (which is the location of the folder right) Then type in
VBoxManage.exe setextradata "name of vm" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222
VBoxManage.exe setextradata "name of vm" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
VBoxManage.exe setextradata "name of vm" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
all of that (changing the custom bits)? The name of the VM is I guess just "XP" in this case (name of the folder?)
Now the main confusion is the host port and the guest port. I assume the host port is the port Vista is attached to the router (and the router open for) and the guest port the port the program needs (? Again say port 200) Can I run the same port straight through (eg have router, host, guest and program all port 200) and if so will this affect the program on the host PC?
Sorry, long and convoluted post but i'm a bit confused.
