Page 1 of 1

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

Posted: 3. Jul 2009, 02:05
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

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

Posted: 3. Jul 2009, 10:42
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.

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

Posted: 3. Jul 2009, 10:58
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.

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

Posted: 3. Jul 2009, 11:17
by Sasquatch
Why the hell are you connecting to a closed port? You forwarded port 3000, not 9999.

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

Posted: 3. Jul 2009, 12:10
by leonbnu
sorry, that was a typo cause I tried to change to another port. It was 9999, I double checked the xml file.

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

Posted: 5. Jul 2009, 14:32
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.