having issue with remote desktop in virtual box

junqi89

New member
Member
Local time
3:09 AM
Messages
75
when i set network to bridge i able to remote. but when i set to NAT i unable to remote. is there anyway that i can use NAT setting and remote in ? anyone can please advise thanks.
 

My Computer

OS
windows 7 64bit
It's normal, bridge acts as if the virtual computer were attached to the network like any other so you can see it directly. In NAT mode, The VirtualBox controller acts as if it were a NAT router with the virtual machine on the LAN side and the host on the WAN side, so the guest can see the host but the host can't see the guest.

To allow any such program like remote control, you must do a port forwarding in VirtualBox "router" to enable that port. In the configuration, network tab, under the advanced settings there is a button that lets you configure port forwarding to the guest. For the built in remote desktop, port 3389 is the one you must send.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
It's normal, bridge acts as if the virtual computer were attached to the network like any other so you can see it directly. In NAT mode, The VirtualBox controller acts as if it were a NAT router with the virtual machine on the LAN side and the host on the WAN side, so the guest can see the host but the host can't see the guest.

To allow any such program like remote control, you must do a port forwarding in VirtualBox "router" to enable that port. In the configuration, network tab, under the advanced settings there is a button that lets you configure port forwarding to the guest. For the built in remote desktop, port 3389 is the one you must send.

i already enable it but seems like still nt working can you teach me how to use nat and make it work ? if possible to list down step by step how i can actually do it ?
 

My Computer

OS
windows 7 64bit

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Ultimate 64bit
CPU
AMD Phenom Quad core 9950 black edition
Motherboard
Gigabyte
Memory
16Gb
Graphics Card(s)
2x XFX Radeon 5850
Sound Card
PCI Express X-Fi Titanium / Logitech G35
Monitor(s) Displays
2x HP 2410i
Screen Resolution
1920x1080
Hard Drives
2x 500Gb Seagate
1x 300Gb Seagate
1x 1Tb Seagate
2x 1Tb Hitatchi
PSU
Jean Tech Storm 700W
Case
Cooler Master COSMOS S
Cooling
Akasa Evo Blue Pro
Keyboard
Logitech G15
Mouse
Mad Catz M.M.O. 7
Internet Speed
12mb
Code:
VBoxManage  modifyvm  "fill in VM name"  --natpf1  "guestrdp,tcp,,53389,,3389"
natpf1=nat Port Forwarding rule1. You can also use natpf2, natpf3 etc.
guestrdp=just a description
53389= port to connect to from outside. Connect to host computer port 53389 will be forwarded to guest port 3389
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Code:
VBoxManage  modifyvm  "fill in VM name"  --natpf1  "guestrdp,tcp,,53389,,3389"
natpf1=nat Port Forwarding rule1. You can also use natpf2, natpf3 etc.
guestrdp=just a description
53389= port to connect to from outside. Connect to host computer port 53389 will be forwarded to guest port 3389

where can i execute the command ? i not sure how to do that.
 

My Computer

OS
windows 7 64bit
Code:
VBoxManage  modifyvm  "fill in VM name"  --natpf1  "guestrdp,tcp,,53389,,3389"
natpf1=nat Port Forwarding rule1. You can also use natpf2, natpf3 etc.
guestrdp=just a description
53389= port to connect to from outside. Connect to host computer port 53389 will be forwarded to guest port 3389

where can i execute the command ? i not sure how to do that.
Of course in "command prompt". Command prompt on host , no on client
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Why to use command line when you can use the normal settings screen to do the same?
Open the settings of the VM and on the network tab fill the port forwarding info.
 

Attachments

  • NAT VirtualBox.png
    NAT VirtualBox.png
    51.7 KB · Views: 9

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Why to use command line when you can use the normal settings screen to do the same?
Open the settings of the VM and on the network tab fill the port forwarding info.

Okay thanks for the reply. so for the guest do i need for port forward any settings ?
 

My Computer

OS
windows 7 64bit
No, everything needs to be done at the host. The only thing I can think of from the guest is the firewall that needs to accept an incoming connection on port 3389, but that's like any computer's firewall, nothing special fro being a virtual machine.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top