EN · $ USD
VDS and Linux Server Management

How to Connect to a Windows VDS with Remote Desktop (RDP)

7 min read Updated: Sunucu Atlas technical team

In short

To connect to a Windows VDS over RDP, open mstsc with Win + R on Windows and enter the server's IP address, username and password; on Mac, iPhone and Android, use Microsoft's free Windows App. RDP runs on TCP port 3389 by default. For security, change the port, turn on an account lockout policy and restrict access by IP address.

In this guide
  1. What Is RDP?
  2. Connecting from Windows (mstsc)
  3. Connecting from a Mac
  4. Connecting from iPhone, iPad and Android
  5. Changing the RDP Port (a Custom Port Instead of 3389)
  6. Protecting Your Windows VDS from Brute-Force Attacks
  7. Common RDP Errors
  8. Tips for a Smoother RDP Experience
  9. Choosing Resources for a Windows VDS
  10. Next Steps

To connect to a Windows VDS with Remote Desktop (RDP) on Windows, press Win + R, type mstsc, enter the server's IP address in the "Computer" field and sign in with the username you were given (usually Administrator) and your password. On Mac, iPhone and Android you do the same thing with Microsoft's free Windows App. RDP uses TCP port 3389 by default.

This guide walks you step by step through connecting from every device, changing the RDP port safely, and protecting your Windows server against the brute-force attacks that bots on the internet try constantly.

What Is RDP?

RDP (Remote Desktop Protocol) is Microsoft's protocol for viewing a Windows computer's desktop over a network and controlling it with a keyboard and mouse. Windows Server editions include remote desktop access for administration out of the box. You need three pieces of information to connect: the server's IP address (IP:port if the port was changed), the username and the password. You'll find these in your client area or in the delivery email when your VDS is provisioned.

Connecting from Windows (mstsc)

  1. Press Win + R, type mstsc and press Enter. You can also find it in the Start menu as "Remote Desktop Connection."
  2. Type the server IP address in the "Computer" field. If you changed the port, enter it as 203.0.113.25:53389.
  3. Click "Show Options" to enter Administrator as the username, and use the "Local Resources" tab to set up clipboard and drive sharing.
  4. Click "Connect" and enter your password.
  5. The certificate warning on the first connection appears because the server uses a self-signed certificate. If you're sure you're connecting to the right IP, check "Don't ask me again for connections to this computer" and click "Yes."

For a quick connection from the command line:

mstsc /v:203.0.113.25:53389

For a server you connect to often, use "Save As" to save the settings as an .rdp file on your desktop. It's safer not to save the password in the file.

Connecting from a Mac

  1. Download Microsoft's Windows App from the App Store (formerly Microsoft Remote Desktop).
  2. In the app, click the + button and choose "Add PC."
  3. Enter the IP address (or IP:port if needed) in the "PC name" field.
  4. Under "Credentials," add the user account or choose to be asked every time you connect.
  5. Save, then double-click the new tile to connect.

On a Mac keyboard, the Command key works in place of the Windows Ctrl key for most shortcuts; for Ctrl + Alt + Del, use the corresponding command in the app menu.

Connecting from iPhone, iPad and Android

  1. Install Windows App from the App Store or Google Play. On some Android devices the app may still be listed as "Remote Desktop."
  2. Add a new PC with the + button and enter the IP address and user account.
  3. Once connected, tap the screen to control the mouse pointer; you can open the keyboard from the top bar.

RDP from a phone is ideal for restarting a service in an emergency or checking on a task. For longer work sessions, a computer is more productive.

Changing the RDP Port (a Custom Port Instead of 3389)

Port 3389 is one of the first ports internet scanning bots try. Changing it doesn't provide security on its own, but it greatly reduces automated attempts and log noise. If you do the steps in the wrong order, you'll lose access to the server, so add the firewall rule first.

  1. Open PowerShell on the server as Administrator.
  2. Add a firewall rule for the new port (53389 in this example):
    New-NetFirewallRule -DisplayName "RDP 53389" -Direction Inbound -Protocol TCP -LocalPort 53389 -Action Allow
  3. Change the port RDP listens on in the registry:
    Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name PortNumber -Value 53389
  4. Restart the Remote Desktop service. Your current session will drop:
    Restart-Service TermService -Force
  5. Connect using the new port: mstsc /v:SUNUCU_IP:53389 (replace SUNUCU_IP with your server's IP).
  6. Once you've confirmed the connection works, disable the old 3389 rule:
    Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Disable-NetFirewallRule

Pick a port between 1024 and 65535 that no other service uses. If something goes wrong, you can log in through the VNC/console access your provider offers and revert the setting.

Protecting Your Windows VDS from Brute-Force Attacks

Any RDP port exposed to the internet quickly becomes a target for automated password-guessing attacks. Apply the measures below in order of priority.

1. A strong, unique password

Use a password of at least 16 characters that you don't use anywhere else. A password manager makes this easy.

2. Account lockout policy

Temporarily lock the account after a set number of failed attempts. The command below locks the account for 30 minutes after 5 failed attempts:

net accounts /lockoutthreshold:5 /lockoutduration:30 /lockoutwindow:30

This setting may affect the built-in Administrator account differently depending on your Windows version, which is why the next step matters too.

3. Rename the Administrator account or create a separate admin

Bots almost always try the Administrator username. Creating a new admin account and renaming the default one doubles the attacker's work:

Rename-LocalUser -Name "Administrator" -NewName "srvyonetici"

Remember that after the change you need to connect over RDP with the new username.

4. Network Level Authentication (NLA)

NLA prevents a full login screen from opening before the user is authenticated, which reduces resource usage. On the "System Properties > Remote" tab, make sure "Allow connections only from computers running Remote Desktop with Network Level Authentication" is checked.

5. Restrict access by IP address

If you have a static office or home IP, the most effective measure is to open the RDP port only to those addresses:

Set-NetFirewallRule -DisplayName "RDP 53389" -RemoteAddress 198.51.100.20,198.51.100.21

If your IP changes, the recommended approach in business environments is to close RDP entirely and allow access only through a VPN such as WireGuard.

6. Monitor failed logins

Windows writes failed sign-in attempts to the Security log with event ID 4625. To see the latest attempts:

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 20 |
  Select-Object TimeCreated, @{n='IP';e={$_.Properties[19].Value}}

If you see dozens of entries per minute, your server is actively being attacked; you can't put off IP restrictions or moving to a VPN.

Common RDP Errors

ErrorLikely causeFix
"Remote Desktop can't connect to the remote computer"Wrong IP/port, missing firewall rule, server is downCheck the port and the rule; check the server's status from the console
"Your credentials did not work"Wrong password, wrong username or the account is lockedTry the username as .\Administrator; wait out the lockout period
"An internal error has occurred"The session service is stuck or there's a certificate problemRestart the TermService service from the console
Connection drops frequentlyPoor network or high resource usageCheck RAM/CPU usage in Task Manager

Tips for a Smoother RDP Experience

  • Display settings: On slow connections, lower the color depth to 16-bit on mstsc's "Display" tab; on the "Experience" tab, leave connection speed on auto-detect.
  • Sign out, don't just disconnect: Closing the window with the X leaves the session open and programs on the server keep running. That's what you want for a bot or a long-running task; when you're done, choose "Sign out" from the Start menu to free up memory.
  • File transfer: When you share a drive from your computer under "Local Resources > More," it appears under "This PC" on the server. Use this method instead of copy-paste for large files.
  • Multiple monitors: The "Use all my monitors for the remote session" option on the "Display" tab supports more than one screen.

Choosing Resources for a Windows VDS

Windows Server needs more memory than Linux. As a rough guide: 4 GB RAM is the minimum just to run a lightweight application or bot; for a browser, accounting software or several concurrent RDP sessions, 8 GB and 4 vCPU give a much more comfortable experience. On the disk side, Windows updates take up significant space over time, so 50 GB or more is preferable. We cover this in detail in our guide on how much RAM and how many vCPUs a VDS needs.

For Windows workloads, Sunucu Atlas's Intel Xeon-based Intel Premium VDS plans offer KVM virtualization, NVMe storage, root (administrator) access and layered DDoS protection. Because KVM is full virtualization, Windows Server runs without issues. The plan that maps most directly to the 8 GB scenario above is SA-XEON-4, with 4 vCPU, 8 GB RAM and 60 GB NVMe. Before ordering, you can confirm operating system and Windows license options by opening a support ticket.

Next Steps

Once you're connected, follow this order in your first session: run Windows Update, change the password, turn on the account lockout policy, change the RDP port and, if possible, add an IP restriction. If you want to start with an Istanbul-based server that has enough RAM for Windows, take a look at the SA-XEON-4 Intel VDS plan. If you're wondering how DDoS attacks affect RDP access, see our What is a DDoS attack guide.

Frequently asked questions

What is the default RDP port?

Remote Desktop Protocol uses TCP port 3389 by default. If the port has been changed, enter it as IP:port when you connect.

How do I connect to a Windows server from a Mac?

Install Microsoft's free Windows App from the App Store, use Add PC to enter the server's IP address and your user credentials, then connect.

Will I lose access to my server when I change the RDP port?

Not if you add a firewall rule for the new port first and then change the PortNumber value in the registry. If something goes wrong, you can revert the setting through your provider's console access.

My Windows server keeps getting login attempts. What should I do?

Turn on an account lockout policy, rename the Administrator username and open the RDP port only to your own IP addresses. The safest approach is to allow RDP access only through a VPN.

How much RAM does a Windows VDS need?

4 GB is an acceptable minimum for light use. For a browser, office or accounting software and multiple sessions, 8 GB RAM and 4 vCPU give a more comfortable experience.

For this guide

Recommended plans

Thanks to full KVM virtualization, Intel Premium VDS runs Windows Server smoothly, and the SA-XEON-4 with 4 vCPU and 8 GB RAM in particular gives Windows users enough resources to work comfortably over RDP.

SA-XEON-1

XEON
Recommended

2 GB RAM

$2.95/mo

+VAT

  • Processor2 vCPU
  • ModelIntel Xeon
  • Disk30 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

SA-XEON-2

XEON

4 GB RAM

$3.93/mo

+VAT

  • Processor2 vCPU
  • ModelIntel Xeon
  • Disk40 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

SA-XEON-3

XEON

6 GB RAM

$4.91/mo

+VAT

  • Processor2 vCPU
  • ModelIntel Xeon
  • Disk50 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

Intel Premium VDS — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.