Port Forwarding

 

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

This functionality is available for DaDesktop Course machines (which require a private server), as well as DaDesktop For Work and Standalone instances. Note that the user interface may vary slightly depending on the machine type.

Select Port Forwarding


 

 

 

 

 

 

 

Navigate to the 'Advanced' section and select 'Port Forwarding',

You have two options for configuring port forwarding: automatic or manual allocation. Automatic allocation assigns the next available port on the server, which is generally recommended for simplicity. Alternatively, manual allocation allows you to specify particular external ports within the range of 10000 to 65500. Any manually configured port forwards added previously will be retained and can be modified as needed.

Auto Allocation

The following image illustrates the auto allocation setting, displaying a previously configured manual port forward that maps port 11122 on the host to port 22 on the VM.

Port Forwarding Auto-Allocation

Manual Allocation

This example demonstrates using port 11122 for both TCP and UDP port forwarding to the cloud desktop VM's port 22 for SSH connections. The UDP and TCP ports may be configured independently if desired.

Manual Port forwarding

Example for Windows RDP


This walkthrough utilizes the manual allocation method, though auto allocation can also be applied.

1. Locate your DaDesktop desktop and click on "Port forwarding". Configure your TCP ports for the remote connection by specifying your external port number and the destination port 3389 (for instance, 66666:3389). Please note your external port number, as it can be retrieved later by revisiting the Port forwarding settings.

RDP Port Forward Windows Example

2. Submit the configuration, set a password within your Windows DD machine, and then enable "Remote Desktop".

Submit and set up a password inside your Windows DD machine

3. On your local Windows device, open Remote Desktop and enter the Server name along with the TCP port (e.g., zh4cn.npg.io:xxxxx, assuming 'zh4cn' is the identifier). You can also adjust the resolution of the remote desktop window via the 'Show options' menu.

remote desktop window

remote desktop configuration

3.1 To log in to your DaDesktop remote desktop, please ensure 

that you have reset your username and password within the machine first.

Once configured, you can establish the remote desktop connection.

connect the remote desktop

 

4. You can now access a remote desktop session that utilizes the DD template and sound card from your local device. Features such as copy-paste and document output are also supported. (The small window on the left displays the DD remote desktop with audio).

window DD remote desktop with audio