NAT+Port Forwarding on Vista x64, What am I doing wrong?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
leonbnu
Posts: 22
Joined: 24. Oct 2008, 04:13

NAT+Port Forwarding on Vista x64, What am I doing wrong?

Post by leonbnu »

here is the config on VirtualBox 3.0:

Host:
OS:Win Vista x64

Guest:
OS:Win XP x64
Network: Intel Pro/1000 MT Server, NAT

Now I am trying to forward port 3000 on host to 3389 on guest(the remote desktop port).

Here is what I did:
VBoxManage setextradata "WinXP" "VBoxInternal/Devices/e1000/0/LUN#0/Config/guestRDP/Protocol" TCP

VBoxManage setextradata "WinXP" "VBoxInternal/Devices/e1000/0/LUN#0/Config/guestRDP/GuestPort" 3389

VBoxManage setextradata "WinXP" "VBoxInternal/Devices/e1000/0/LUN#0/Config/guestRDP/HostPort" 3000

But it doesn't work.

Am I missing something or doing something wrong?

Thanks
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: NAT+Port Forwarding on Vista x64, What am I doing wrong?

Post by Sasquatch »

So exactly what doesn't work? How did you test this? How do you make the connection? You're missing the most vital part of information in your post.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
leonbnu
Posts: 22
Joined: 24. Oct 2008, 04:13

Re: NAT+Port Forwarding on Vista x64, What am I doing wrong?

Post by leonbnu »

This is how I tested it:
1. on the Vista host, I used the remote desktop client to connect to localhost:9999. No connection established.

2. Then I used telnet localhost 9999 to test it, apprently no connection.

3. In the guest XP, I telnet localhost 3389, connection established, which means Remote desktop service in Guest XP was running.

4. I tried switch from NAT to Host-only network mode, I am able to connect to Guest XP's remote desktop. But no luck with NAT.

And both firewalls are turned off.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: NAT+Port Forwarding on Vista x64, What am I doing wrong?

Post by Sasquatch »

Why the hell are you connecting to a closed port? You forwarded port 3000, not 9999.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
leonbnu
Posts: 22
Joined: 24. Oct 2008, 04:13

Re: NAT+Port Forwarding on Vista x64, What am I doing wrong?

Post by leonbnu »

sorry, that was a typo cause I tried to change to another port. It was 9999, I double checked the xml file.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: NAT+Port Forwarding on Vista x64, What am I doing wrong?

Post by Sasquatch »

Any firewall running on the Host? Run a port scan on the Host while the VM is running to see what open ports you have.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply