Port Forwarding Configuration

 

Port forwarding enables the exposure of specific cloud desktop ports to either the local network or the internet. This capability is frequently utilized in conjunction with the Remote Desktop Protocol. 

This functionality is available across DaDesktop Course machines (requiring a private server), DaDesktop For Work, and Standalone instances. Please note that the user interface may vary slightly depending on the specific machine type.

Select Port Forwarding


 

 

 

 

 

 

 

To proceed, select 'Advanced' followed by 'Port Forwarding'.

Port forwarding can be configured via automatic or manual allocation. Automatic allocation assigns the next available port on the server. While automatic allocation is generally recommended to streamline the process, manual allocation offers the flexibility to specify external ports ranging from 10000 to 65500 if specific assignments are required. Any previously established manual port forwards are retained and can be modified as needed.

Auto Allocation

The visual below illustrates automatic allocation, alongside an existing manual port forward configuration that maps host port 11122 to VM port 22.

Port Forwarding Auto-Allocation

Manual Allocation

In this example, port 11122 is utilized for both TCP and UDP forwarding to port 22 on the cloud desktop VM, typically for SSH access. UDP and TCP ports can be set differently if specific requirements dictate.

Manual Port forwarding

Example for Windows RDP


This scenario demonstrates the manual allocation method; however, automatic allocation remains a viable alternative.

1. Locate your DaDesktop instance and click on "Port forwarding". Configure your TCP ports for the remote connection by specifying your desired external port number and the internal port 3389 (for example, 66666:3389). Please note this external port number, as it will be required later. If forgotten, you can revisit the Port Forwarding settings to retrieve it.

RDP Port Forward Windows Example

2. Submit the configuration and establish a password within your Windows DaDesktop environment. Subsequently, enable "Remote Desktop".

Submit and set up a password inside your Windows DD machine

3. On your local Windows device, launch Remote Desktop and enter the server name followed by the designated TCP port (e.g., zh4cn.npg.io:xxxxx). Within the 'Show options' menu, you can also adjust the resolution of the remote desktop window to suit your preference.

remote desktop window

remote desktop configuration

3.1 When logging into your DaDesktop remote environment, please note the default status:

"You should reset your username and password in the machine first."

Once credentials are updated, proceed to connect to the remote desktop.

connect the remote desktop

 

4. You can now utilize a remote desktop session that leverages the DD template and sound card features directly from your local device. This setup also facilitates easy copy-paste operations and document output. (Reference the small window on the left side showing the DD remote desktop with audio).

window DD remote desktop with audio