Port Forwarding

 

Port forwarding enables you to expose specific ports on a cloud desktop to your local network or the broader internet. This functionality is frequently utilized alongside the Remote Desktop Protocol.

This feature is applicable to DaDesktop Course machines (which require a private server), DaDesktop For Work, and Standalone machines. Please be aware that the user interface may vary slightly depending on the specific machine type.

Select Port Forwarding


 

 

 

 

 

 

 

Navigate to 'Advanced' and select 'Port Forwarding'. The configuration can be managed through either 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 individual external ports within the range of 10000 to 65500. Any previously established manual port forwards will remain intact and can be modified as needed.

Auto Allocation

The following image illustrates the auto-allocation method, showing a previously configured manual port forward 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 for SSH connections. While both protocols are set to the same port here, you are free to assign different UDP and TCP ports if your configuration requires it.

Manual Port forwarding

Example for Windows RDP


This walkthrough utilizes the manual allocation method, though automatic allocation is a valid alternative.

1. Locate your DaDesktop instance and click on "Port forwarding". Configure your TCP ports for the remote connection by specifying the external port number and the target port 3389 (e.g., 66666:3389). Note down your external port number for later use; if forgotten, you can retrieve it by clicking 'Port forwarding' again.

RDP Port Forward Windows Example

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

Submit and set up a password inside your Windows DD machine

3. Return to your local Windows device and open Remote Desktop. Enter the server name along with the assigned TCP port (e.g., if the host is zh4cn, the address would be zh4cn.npg.io:xxxxx). You can also adjust settings such as the resolution via the 'Show options' menu.

remote desktop window

remote desktop configuration

3.1 To log in to your DaDesktop remote session, note the default settings.

You must first reset your username and password within the machine.

Once configured, you can proceed to connect to the remote desktop.

connect the remote desktop

 

4. You will now have access to a remote desktop session that utilizes the DD template and sound card from your local device. This setup also facilitates easy copy-and-paste operations and document transfers (shown in the smaller window on the left: DD remote desktop with audio).

window DD remote desktop with audio