Use the built-in MSTSC client on Windows 10/11 or Windows App on macOS to connect via RDP.
We recommend Workbench for browser-based, password-free logon to your Alibaba Cloud instancesMSTSC and Windows App.
Prerequisites
-
The instance runs a Windows operating system.
-
The instance has a static public IP address or an Elastic IP Address (EIP) assigned.
Connect with Remote Desktop (Windows)
Before you begin
-
Instance public IP address: In the ECS console - Instances, click the target instance and find the Public IP Address in the Configuration Information section.
-
Instance logon credentials: Set a password.
-
Security group configuration: Add an inbound rule allowing your local IP address to access the instance over Remote Desktop Protocol (RDP), with port 3389.
Procedure
-
Launch Remote Desktop Connection.
Press
Win+R, entermstsc, and pressEnter. -
Configure the connection.
In the Computer field, enter the instance's public IP address.
-
Enter credentials and connect.
Click Connect. Enter the User Name (default: Administrator) and Password, then click OK.
A certificate warning may appear. Click Yes to trust the certificate and continue.
-
Verify the connection.
The Windows instance desktop appears after a successful connection.
Connect with Windows App (macOS)
Before you begin
-
Search for and install the Windows App from the App Store.
-
Instance public IP address: In the ECS console - Instances, click the target instance and find the Public IP Address in the Configuration Information section.
-
Instance logon credentials: Set a password.
-
Security group configuration: Add an inbound rule allowing your local IP address to access the instance over RDP (port 3389).
Procedure
-
Start the Windows App.
Click Devices in the left pane, then click . The Add PC dialog box appears.
-
Configure the connection.
In the PC name field, enter the instance's public IP address and click Add .
-
Initiate the connection.
Click Devices in the left pane. Double-click the newly created PC card.
-
Enter your credentials.
In the Enter Your Credentials dialog box, enter the User Name (default: Administrator) and Password, then click Continue.
If a certificate warning appears, click Continue to proceed.
-
Verify the connection.
The Windows instance desktop appears after a successful connection.
Apply in production
-
Modify the default RDP port
Change the default RDP port 3389 to a high-numbered, non-standard port, such as 33890, to reduce brute-force attack risk.
-
Allow traffic on the new port: Add an inbound rule to allow inbound traffic on the new port.
-
Modify the service port: Log on to the instance and change the port in the registry.
-
Press
Win+R, enterregedit, and pressEnter. -
Navigate to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp. -
Right-click the
PortNumbervalue and select Modify. Set the base to Decimal and enter the new port number. -
Press
Win+R, typeservices.msc, and pressEnter. Right-clickRemote Desktop Servicesand select Restart.
-
-
Connect using the new port: Append the port to the instance's public IP address:
<Public IP>:<Port number>.
-
-
Authorize only trusted IP addresses to access the instance
Modify the security group rules to allow RDP access (default port: 3389) only from trusted IP addresses.
FAQ
-
How do I configure a security group rule to allow traffic on port 3389?
Add an inbound rule with the following settings:
Action
Protocol
Source
Destination (This Instance)
Allow
Custom TCP
Your local client's public IP address.
ImportantSetting the source to
0.0.0.0/0allows access from any IP address, which poses a security risk.RDP(3389)
If you changed the RDP port, enter the actual port number.
-
After I initiate a connection, it times out and fails to connect. What should I do?
The client cannot reach the server. Check the following:
-
Verify that the public IP address is correct.
-
Check that the security group allows traffic on the required port.
-
Confirm the instance is running.
-
Use ECS console - Self-service Troubleshooting to diagnose the issue.
-
-
How do I transfer files using MSTSC or the Windows App?