Port Forwarding to Guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
mholland
Posts: 16
Joined: 18. Jul 2008, 15:09

Port Forwarding to Guest

Post by mholland »

I have read the end user documentation on forwarding ports to the VB guest. The example listed appeared to be for configuring SSH. Could anyone provide me with an example on NAT Port Forwarding on port 3389 (HOST/GUEST) for RDP.

Should be pretty simple, documentation just wasnt that clear.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

You didn't search the forum very hard :lol:

http://forums.virtualbox.org/viewtopic. ... 4000#27351
h1d
Volunteer
Posts: 170
Joined: 3. Jul 2008, 02:10

Post by h1d »

There needs to be a GUI configuration for this, as it is quite awkward to edit the XML right now, along with the ability to bind to what IP on the host, instead of binding to all the interfaces without a way to alter it.

http://forums.virtualbox.org/viewtopic. ... 9201#29201

scroll a bit, I've placed the XML bits you have to paste to, with a bit of tweak on the port numbers.

You have to reboot guest after the change. (Or should have turned it off before fixing the XML.)

[Edit : I guess his solution would be the above post.]
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Hey h1d, what has your ref to do with configuring and running headless?
:?:
h1d
Volunteer
Posts: 170
Joined: 3. Jul 2008, 02:10

Post by h1d »

I just thought he wanted to port forward some ports from host to guest, and was referring to the XML lines in my post.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Much as I said on comment to your original post, the likes of you or I might be happy to edit XML files, but we recommend that general users stick to the command line tools designed to do this:
  • VBoxManage getextradata global|<uuid>|<name> <key>|enumerate
  • VBoxManage setextradata global|<uuid>|<name> <key>[<value>]
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
h1d
Volunteer
Posts: 170
Joined: 3. Jul 2008, 02:10

Post by h1d »

Oh ok, I didn't know you could do it that way.
First time I googled around on the topic, the search result told me to edit the XML.
Post Reply