Port Forwarding
Port forwarding enables you to expose specific ports from a cloud desktop to either your local network or the internet. This capability is frequently utilized in conjunction with Remote Desktop Protocol.
This feature is applicable across various machine types, including 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.

To proceed, navigate to 'Advanced' and select 'Port Forwarding'.
There are two methods available for port forwarding: automatic allocation and manual allocation. Automatic allocation assigns the next available port on the server. While this method is generally preferred for its simplicity, manual allocation offers greater control, allowing you to select specific external ports within the range of 10000-65500. Any previously configured manual port forwards will be preserved and can be modified as needed.
Auto Allocation
The image below illustrates automatic allocation, showing a previously added manual port forward that maps port 11122 on the host to port 22 on the VM.

Manual Allocation
In this example, port 11122 is used for both TCP and UDP port forwarding to cloud desktop VM port 22, typically for SSH connections. If necessary, different UDP and TCP ports can be specified.

Example for Windows RDP
This example demonstrates the manual allocation method, although automatic allocation is also a valid option.
1. Locate your DaDesktop desktop and click "Port forwarding", then configure your TCP ports (intended for remote connection). This serves as your external port number, mapped to 3389 (for example, 66666:3389). It is important to note down your port number; if you forget it, you can always revisit the Port forwarding settings to retrieve it.

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

3. Return to your local Windows device, launch Remote Desktop, and enter the Server name followed by the TCP port (for instance, if using zh4cn, the address would be zh4cn.npg.io:xxxxx). You can also access the "resolution" settings for your remote desktop window via the 'Show options' menu.


3.1 To log in to your DaDesktop remote desktop session, it is required by default
"You must reset your username and password within the machine first."
Afterwards, you can establish the remote desktop connection.

4. Once connected, you can utilize a remote desktop session that leverages the DD template and sound card from your local device. You will also have the ability to easily copy, paste, and output documents. (The small window on the left displays the DD remote desktop with audio).
