Port Forwarding
Port forwarding enables you to expose specific ports on a cloud desktop to your local network or the wider internet. This functionality is frequently utilized in conjunction with the Remote Desktop Protocol.
This feature is applicable to DaDesktop Course machines (which require a private server), as well as DaDesktop For Work and Standalone instances. Please note that the user interface may vary slightly depending on the machine type.

To configure this, select 'Advanced' followed by 'Port Forwarding'. You have the option to assign ports via automatic allocation or manual specification. Automatic allocation selects the next available port on the server, which is generally recommended for its simplicity. However, manual allocation allows you to define specific external ports if needed, within the range of 10000 to 65500. Any manually added port forwards will be retained and can be modified as necessary.
Auto Allocation
The following image illustrates the auto-allocation process, showing an existing manual port forward that maps host port 11122 to VM port 22.

Manual Allocation
In this example, port 11122 is utilized for both TCP and UDP forwarding to port 22 on the cloud desktop VM, typically used for SSH. If required, UDP and TCP ports can be assigned separately.

Example for Windows RDP
This example demonstrates the manual allocation method, though automatic allocation is also a valid alternative.
1. Locate your DaDesktop instance, click on "Port forwarding", and set your TCP ports for the remote connection. You must specify an external port number paired with 3389 (e.g., 66666:3389). It is important to note this external port number, as it can be reviewed again in the Port Forwarding menu if forgotten.

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

3. On your local Windows device, open Remote Desktop and enter the server name followed by the designated TCP port (e.g., zh4cn.npg.io:xxxxx). Under 'Show options', you may also adjust settings such as the resolution of the remote desktop window.


3.1 To log in to the DaDesktop remote session, please be advised that:
"You should reset your username and password in the machine first."
Once complete, you can proceed to connect the remote desktop.

4. You can then access a remote desktop utilizing DD templates and audio from your local device. This setup also facilitates easy copy-and-paste operations and document output. (The small window on the left displays the DD remote desktop with audio).
