Cannot access Guest machine by RDP from Host machine or any other

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Baan
Posts: 1
Joined: 14. Jun 2020, 17:27

Cannot access Guest machine by RDP from Host machine or any other

Post by Baan »

Hi,

Please see my settings attached.

RDP or telnet to 5940 doesn't pass. I tried change network interface from NAT to NAT Network and Host Only Adapter and Internal Network. IP address of VM changes but RDP is still not accessible.

Btw, I have enabled RDP service in VM.. Not sure if it's required. As well as added allowing rule for 5940 port in firewall.
Attachments
Image 981.png
Image 981.png (32.57 KiB) Viewed 1440 times
Image 980.png
Image 980.png (54.4 KiB) Viewed 1440 times
Image 979.png
Image 979.png (68.99 KiB) Viewed 1440 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Cannot access Guest machine by RDP from Host machine or any other

Post by mpack »

You don't have to use the virtual RDP interface, you could do actual RDP using a network connection, bridged or host only. I doubt it would work with NAT. When using host only you must understand that it's a separate network. I've never tried RDP over host-only, I've always used bridged.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Cannot access Guest machine by RDP from Host machine or any other

Post by scottgus1 »

As displayed in your second screenshot, you are using Virtualbox's RDP server (VRDP). VRDP requires the Extension Pack to be installed. VRDP does not go through the guest network or into the guest OS itself, only to the guest's Virtualbox window. Thus you can VRDP to a DOS guest with no network. VRDP does not require a port to be opened in the Virtualbox Port Forwarding sections. You might need to open the port number in the host PC's firewall if you intend to VRDP to the guest from another computer on the LAN.

Other forms of RDP, like MS RDP, or other services like Telnet, require a network between the host PC and guest. Bridged, Host-Only, NAT, and NAT Network will provide this. See Virtualbox Networks: In Pictures. If you use NAT or NAT network, you will have to open a port in the appropriate Port Forwarding section. Host-Only will only allow the host in, not the LAN. Bridged allows host and LAN in. Host firewall needs to be opened for LAN access.

You cannot RDP/VRDP and Telnet on the same port number. If VRDP is on 5940, then telnet must be on some other port number.
Post Reply