Port Forwarding
Port forwarding enables you to expose specific ports of a cloud desktop to your local network or the internet. This feature is frequently utilized with Remote Desktop Protocol.
You can apply this capability to DaDesktop Course machines (which require a private server), DaDesktop For Work instances, or Standalone machines. Please note that the interface layout may vary slightly depending on the machine type.

To configure this, select 'Advanced' followed by 'Port Forwarding'. You have the option to use either automatic or manual allocation. Automatic allocation assigns the next available port on the server, which is generally recommended for simplicity. However, if you require specific control, manual allocation lets you select individual external ports within the range of 10000 to 65500. Any previously added manual port forwards will be retained and can be edited as needed.
Auto Allocation
The following image illustrates auto allocation, alongside a pre-existing manual port forward configuration that uses port 11122 on the host and port 22 on the VM.

Manual Allocation
In this example, port 11122 is utilized for both TCP and UDP port forwarding to cloud desktop VM port 22 for SSH purposes. You can choose different ports for UDP and TCP if necessary.

Example for Windows RDP
This example demonstrates the manual allocation method, though you may naturally opt for auto allocation instead.
1. Locate your DaDesktop desktop and click "Port forwarding". Set your TCP ports for remote connection; this represents your external port number mapped to 3389 (for example, 66666:3389). It is advisable to note down your port number, as you can retrieve it later by clicking Port forwarding again if it is forgotten.

2. Submit the configuration, establish a password within your Windows DD machine, and then click "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, zh4cn.npg.io:xxxxx if you are using zh4cn). You can also adjust the "resolution" of your remote desktop window via the 'Show options' menu.


3.1 To log in to your DaDesktop remote desktop, please note the following by default:
"You should reset your username and password in the machine first."
Once configured, you can proceed to connect to the remote desktop.

4. You will then be able to access a remote desktop using the DD template and sound card from your local device. This setup also facilitates easy copy-paste operations and document output. (The small window on the left represents the DD remote desktop with audio support).
