Here is the short answer to how to connect to a VDS: to connect to a Windows VDS you need three basic details: the server's IP address, the username and the password. If the RDP port has been changed, you also need the port as a fourth detail. On Windows, you open the Remote Desktop Connection app (mstsc), type the IP address in the Computer field, click Connect and sign in with your credentials. On Mac, iPhone, iPad and Android, you use Microsoft's Windows App instead.
The steps are based on Microsoft documentation for Windows 10/11 clients and current Windows Server versions as of November 2026.
In Short
- You connect to a Windows VDS over an RDP connection (Remote Desktop Protocol). By default, RDP listens on port 3389.
- Details you need: the IP address, username and password, plus the new port as a fourth detail if the port has been changed. You will find these in your service delivery email or in your client area.
- On Windows, just press Win+R and type
mstsc. If the port is not 3389, write the address asIP:port, for example203.0.113.10:3390. - On Mac and iPhone/iPad, Windows App replaced the old Microsoft Remote Desktop app in September 2024; the Android version followed later. You do not need to sign in to the app to connect directly to a server.
- After your first connection, change the password, install Windows updates, keep Network Level Authentication (NLA) turned on, check the account lockout policy and, if possible, open RDP only to your own IP address.
- Windows Server allows up to two simultaneous remote administration sessions without additional licenses. Closing the window does not end the session; the session stays open.

What do you need before connecting to a VDS?
A VDS (virtual dedicated server) is a virtual server that runs its own operating system on resources allocated to you from a physical server. If the concept is new to you, the article what is a server and how does it work is a good place to start. When you connect to a virtual server with Remote Desktop, your keyboard and mouse input is sent to the server, and the server's screen is streamed back to you.
These are the details required for the connection; the first three are always needed, and the port is only added if it has been changed:
| Detail | What is it for? | Where do you find it? |
|---|---|---|
| IP address | The server's address on the internet; you type it in the Computer field. | Your service delivery email or client area |
| Username | The account you sign in with. On Windows servers this is usually the built-in Administrator account. | Your service delivery email or client area |
| Password | The account's initial password. It should be changed after the first sign-in. | Your service delivery email or client area |
| RDP port (if changed) | The default is 3389. If it has been changed, it is added to the address. | Delivery details or a change you made yourself |
According to Microsoft, to connect to a remote computer, the server must be turned on and connected to the network, Remote Desktop must be enabled, the server must be reachable over the network, your account must have permission to connect, and the server's firewall must allow RDP. Accounts in the Administrators group can connect without being added separately to the Remote Desktop Users list. For details, see Microsoft's allow access to Remote Desktop documentation.
Windows Home editions cannot accept incoming RDP connections, but they can connect to other computers as a client. In other words, you can connect to your Windows VDS from a PC running Windows 11 Home without any problems.
Store your delivery details in a password manager and do not share the email with others. If you have already changed your password, the password in the delivery email is no longer valid.
How do you connect from Windows with Remote Desktop?
The Remote Desktop Connection app (mstsc.exe) that ships with Windows 10 and Windows 11 requires no additional installation. Microsoft's current documentation still lists this app as an RDP client. What reached end of support on March 27, 2026 was the separately downloaded Remote Desktop client (MSI); the built-in mstsc was not affected.

1. Open Remote Desktop Connection
Press Win+R on your keyboard, type mstsc in the Run box that opens and press Enter. Alternatively, search for "Remote Desktop Connection" in the Start menu.
2. Type the IP address in the Computer field
In the window, type your VDS's IP address in the Computer field, for example 203.0.113.10. If the port is the default 3389, you do not need to add anything else. If the port has been changed, add a colon and the port number to the end of the address: 203.0.113.10:3390. Microsoft's own example uses the same format.
3. Enter the username
Click the Show Options button at the bottom left of the window to expand the options. In the username field on the General tab, enter the account from your delivery details. If Windows is set to another display language, the button and tab names appear in that language. If you skip this step, you will be asked for the username when connecting.
If a Microsoft account or domain name saved on your computer is filled in automatically, add .\ in front to specify the local account on the server: .\Administrator. This means "the local account on this server" and prevents common sign-in errors.
4. Click Connect
When you click the Connect button, the client tries to reach the server. If the address is correct and the port is open, a Windows Security window opens shortly and asks for your password. If you get an error before this window appears, skip to the errors section below; the problem is most likely the address, the port or the network.
5. Enter the password
Type your password in the security window. If you paste it, make sure there are no leading or trailing spaces; if you type it manually, watch your keyboard layout and Caps Lock.
Should you save your credentials?
The password window has a "Remember me" checkbox. If you tick it, the password is stored in Windows Credential Manager and you will not be asked for it on later connections. Only do this on a password-protected computer that belongs to you. Do not save it on a shared, work or internet cafe computer. On such devices, the mstsc /public command documented by Microsoft connects without storing passwords or the screen cache (bitmap cache).
If you had the operating system reinstalled on the server, the password changes, but the old password stays saved on your computer. In that case, delete the entry saved under the server's IP in Credential Manager and try again.
6. Check the certificate warning
On the first connection, you will see the warning "The identity of the remote computer cannot be verified. Do you want to connect anyway?" The details state that the certificate is not from a trusted certifying authority.
The reason is this: Windows uses a certificate it generates itself (self-signed) to encrypt the RDP session, and your computer cannot find a trusted certificate authority that signed it. The connection is encrypted, but because the certificate is not verified, it cannot be automatically proven that the machine on the other end is really your server; on untrusted networks, someone in the middle could exploit this gap. So run these checks:
- Check that the IP or server name shown in the warning is your server.
- If your provider gives you the certificate thumbprint, view the certificate and compare them.
- If everything is correct, continue with the Yes button.
If the certificate warning appears again on a server you have connected to before without problems, or the thumbprint has changed and the server has not been reinstalled, stop before connecting. Windows regenerates the default RDP certificate on its own when it is deleted, so a new certificate is not always a sign of an attack; if you are unsure, check the thumbprint on the server through your provider's web console or ask your provider. Do not tick the "Don't ask me again for connections to this computer" box in the warning without verifying the certificate thumbprint; if you do, that certificate is accepted without verification and you will not be asked again on later connections using the same certificate. This check is even more important on public Wi-Fi networks.
Saving the connection and using the command line (optional)
If you save the settings as an .rdp file from the General tab, next time you only need to double-click the file. On the Local Resources tab, you can share your clipboard and local drives with the remote session. Drive sharing makes moving files easier, but if the server is compromised, your shared drives are also at risk; so only turn it on when you need it.
If you prefer the command line, the same connection opens with a single line:
mstsc /v:203.0.113.10:3390
mstsc /v:203.0.113.10 /f
mstsc /v:203.0.113.10 /admin
/v specifies the server and an optional port, /f opens the session in full screen, and /admin connects to a server administration session. All parameters are listed in Microsoft's mstsc command reference.
The difference between disconnecting and signing out
When you close the Remote Desktop Connection window with the close (X) button at the top right, the session does not end; only the connection is dropped, and programs on the server keep running. If you want to leave an application running continuously on your VDS, this is the right method.
However, automatic restarts by Windows Update or a time limit set for disconnected sessions can end the session. For applications that must run without interruption, schedule update hours and make sure the application starts automatically after a restart.
If you are done and nothing needs to run on the server, sign out from the Start menu (Sign out). Sessions that are not signed out keep using memory and are one of the common causes of the "number of connections is limited" error described below.
How do you connect from Mac, iPhone/iPad and Android?
macOS has no built-in RDP client. The app formerly called Microsoft Remote Desktop was replaced by Windows App, which became generally available in September 2024; the Android version came later, replacing the old package. If the old app is installed, it may turn into Windows App when updated. To set up a remote desktop connection from a Mac or phone with Windows App, you do not need to sign in with a Microsoft account; the feature for connecting directly to a computer (Remote PC) works without signing in. For platform support, see Microsoft's Windows App overview.

| Device | App | Minimum version | Adding a connection |
|---|---|---|---|
| Windows | Remote Desktop Connection (mstsc, built in). Windows App can also be used. | Included with Windows | IP or IP:port in the Computer field |
| Mac | Windows App (Mac App Store) | macOS 12.0 | Devices > + > Add PC > PC Name > Add |
| iPhone / iPad | Windows App (App Store) | iOS / iPadOS 16.0 | + > PC > PC Name > Save |
| Android | Windows App (Google Play) | Android 10 | + > PC connection > PC Name > Save |
Versions and steps are based on Microsoft's connect to devices with Windows App documentation as of November 2026. Labels are given in English; they may look different depending on your device language.
Connecting from a Mac
- Install Windows App from the Mac App Store and open it.
- On the Devices tab, click the plus (+) icon, then Add PC.
- Type the server's IP address in the PC Name field. If the port is different, try writing the address as IP:port; if it does not connect, ask your provider.
- Optionally add the user account, a friendly name and display settings, then click Add.
- Double-click the server on the Devices tab, enter the password and connect.
Connecting from an iPhone or iPad
- Install Windows App from the App Store. Approve the Bluetooth and local network permissions requested on first launch (Allow).
- Tap the plus (+) icon, then PC.
- Type the IP address in the PC Name field and tap Save.
- Tap the server on the Devices tab to connect.
Connecting from Android
- Install Windows App from Google Play.
- Tap the plus (+) icon, then PC connection.
- Fill in the PC Name field and tap Save.
- Before connecting, you will see the warning "Make sure you trust the remote PC before you connect". If you are sure the server is yours, tap Connect.
Connecting from a phone is handy for urgent fixes; for longer administration sessions, a computer is more comfortable.
What should you do after the first connection?
An RDP port open to the internet is quickly found by automated port-scanning bots and becomes a target for password-guessing (brute force) attacks. The steps below are ordered from the simplest to the most advanced. Before making changes, take a backup or snapshot of the server so you can roll back if something goes wrong.

1. Change the password
The password from delivery sits in plain text in an email, so change it first. In a remote desktop session, Ctrl+Alt+Del goes to your own computer; to send it to the server, use Ctrl+Alt+End. On the security screen that opens, click Change a password. Choose a long password that you do not use anywhere else, and do not sign out before saving the new password in your password manager.
2. Install Windows updates
Install all updates from the Windows Update section in Settings and restart the server if required. Updates affect not only the server but also the connection itself: problems such as the CredSSP error described below appear when the client and server differ in security updates.
3. Keep Network Level Authentication (NLA) turned on
With NLA on, users must authenticate before the remote session is established. This means someone who has not proven their identity cannot even reach the sign-in screen on the server, and server resources are not wasted. Microsoft recommends keeping NLA turned on in most environments.
To check, run sysdm.cpl with Win+R and confirm that "Allow connections only from computers running Remote Desktop with Network Level Authentication" is ticked on the Remote tab. Only turn it off temporarily for a very old client that does not support NLA.
4. Check the account lockout policy
Account lockout locks an account for a period after a set number of failed password attempts and slows down password-guessing attacks. The setting is in the local security policy opened with secpol.msc, at this path: Security Settings > Account Policies > Account Lockout Policy.
- Account lockout threshold takes a value from 0 to 999; 0 means the account is never locked. In Microsoft's older documentation the default for a standalone server is 0, but on new installations that include the October 2022 updates before setup, lockout settings may be defined by default during installation. So first check the current value in secpol.msc.
- Microsoft's Windows security baselines recommend a value of 10 failed attempts. No restart is required for the change.
- The built-in Administrator account used to be exempt from this policy. The Allow Administrator account lockout policy introduced with the October 11, 2022 and later updates makes this account lockable too; the recommendation in KB5020282 is 10/10/10 (10 failed attempts within 10 minutes, a 10-minute lockout). If RDP is open to everyone, attackers' failed attempts can also lock your administrator account; so use lockout together with IP restriction.
Details: Microsoft's Administrator account lockout article.
Lockout policy and firewall changes can lock you out as well. Before adjusting them, find out whether your provider offers web-based console access (similar to VNC or KVM). When RDP is down, this console is often the only way to reach the server.
5. Restrict RDP access to your own IP address and optionally change the port
Apply the IP restriction first; changing the port is optional. Changing the RDP port is a frequently recommended step, but you need to know exactly what it does: it only reduces the noise generated by automated bots that scan port 3389, and it does not stop an attacker who scans for and finds the port. Microsoft's troubleshooting guide for Remote Desktop disconnection errors also recommends not changing the port; Microsoft's general troubleshooting documentation advises switching back to 3389 when problems occur. The real protection comes from a strong password, NLA, updates, account lockout and IP restriction.
Opening RDP only to your own IP address
The most effective measure is to open RDP only to known IP addresses. If an allow rule in Windows Defender Firewall is open to everyone, traffic keeps passing through that rule; so adding a new restricted rule is not enough, you need to narrow down every rule that allows RDP.
- Open Windows Defender Firewall with
wf.mscand find the Remote Desktop rules under Inbound Rules. - In the properties of each enabled RDP rule, go to the Scope tab and add your own IP address in the Remote IP address section.
- Without closing your current session, test that you can connect from a new window.
In PowerShell, the same is done with the -RemoteAddress parameter. In the New-NetFirewallRule and Set-NetFirewallRule commands, this parameter accepts a single IPv4/IPv6 address, a subnet or a range. If you change the port, narrow down the new rules you create below in the same way.
On a home internet connection, your IP address may change; when it does, your RDP access is cut off and you will need to update the rule through your provider's web console. If you do not have a static IP, a VPN or RD Gateway is a more secure solution.

If you decide to change the port as well, follow the order below. The commands are taken from Microsoft's change the listening port documentation; the 3390 used in the example is also Microsoft's own example. Since you will be editing the registry, back up the server first.
Step 1: Add a firewall rule for the new port
Open PowerShell as administrator. Microsoft's page changes the port first and adds the rule afterwards; we recommend adding the rule first, because if there is no rule for the new port when the service restarts, you will not be able to reconnect to the server.
# View the current port (default 3389)
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name 'PortNumber'
# New port
$portValue = 3390
# Windows Defender Firewall rules
New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile Public -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portValue
New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Profile Public -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portValue
These two rules open the new port to every address. If you are applying an IP restriction, narrow the rules you just added to your own IP address only:
# Narrow the rules you just added to your own IP address only
Set-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -RemoteAddress 198.51.100.25
Set-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -RemoteAddress 198.51.100.25
Microsoft's example only covers the Public network profile. If a different profile is active on your server, the rule may not work; in that case you can use -Profile Any (Any is also the cmdlet's default value).
If your provider's panel has a separate network firewall, open the new port (TCP and UDP) there too before restarting; otherwise you will not be able to connect to the server after the restart. Also make sure you can access your provider's web console (similar to VNC/KVM); if something goes wrong, it is the only way to reach the server.
Step 2: Change the port in the registry
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name 'PortNumber' -Value $portValue
You can also change the same value with Registry Editor: open the PortNumber value under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp, select Decimal and type the new port.
Step 3: Restart and test the new port
Make sure you have opened the new port in the panel. For the change to take effect, restart the Remote Desktop Services service in the Services console or restart the server. Your current connection will drop while this happens.
Once you are disconnected, test the new port with PowerShell on your own computer:
Test-NetConnection -ComputerName 203.0.113.10 -Port 3390
If the output shows TcpTestSucceeded : True, connect using the address 203.0.113.10:3390. If you cannot connect, log in to the server through the provider's web console and use netstat -an | findstr 3390 to check that the port is in the LISTENING state; if necessary, set the PortNumber value back to 3389 and restart the service.
6. Set up a backup routine
The one-time backup you took before starting the changes is a short-term safeguard; for lasting protection, set up a regular backup plan. Security measures reduce risk, they do not eliminate it. Find out about your provider's backup or snapshot options, keep important data off the server as well, and try restoring from a backup at least once. If you would rather not maintain the server yourself, you can learn more about server management services.
Common Remote Desktop errors and how to fix them
When a remote desktop connection cannot be established, the error message shows which layer the problem is in: network, credentials, security updates or the session limit. Start with the simple checks.

| Symptom | Possible cause | First fix |
|---|---|---|
| Can't connect to the remote computer | Wrong IP or port, server turned off, firewall blocking the port | Check the address and port, test the port with Test-NetConnection |
| Your credentials did not work | Wrong password, keyboard layout, old saved password, wrong account format | Type the password manually, delete the entry in Credential Manager, try .\Administrator |
| CredSSP encryption oracle error | Security update mismatch between client and server | Install Windows updates on both sides (on the server through the web console if needed) |
| Number of connections is limited | Both administration sessions are in use | Sign out of old open or disconnected sessions (sign out). If you cannot get in over RDP at all, connect through the provider's web (VNC) console and end sessions from Task Manager > Users tab. mstsc /admin does not bypass this two-session limit. |
| Time or date difference warning | The clocks on the two machines do not match; mostly seen on domain-joined machines | Correct the time and sync it with w32tm /resync |
"Remote Desktop can't connect to the remote computer" error
The message reads: "Remote Desktop can't connect to the remote computer for one of these reasons: 1) Remote access to the server is not enabled 2) The remote computer is turned off 3) The remote computer is not available on the network". Check the following in order:
- Make sure you have typed the IP address and port correctly. If the port has changed, use the IP:port format.
- Check in your client area that the server is turned on.
- Open PowerShell on your own computer and test whether the port is reachable:
Test-NetConnection -ComputerName 203.0.113.10 -Port 3389 -InformationLevel Detailed
If the port has changed, replace 3389 in the command with your own port number. If you get TcpTestSucceeded : True, the network path is open; the problem is most likely the RDP service on the server, the security settings (NLA/CredSSP) or the client side. If it is False, traffic is not reaching the server: the port may be wrong, the server may be off or a firewall may be blocking it. Seeing PingSucceeded : False in the output is not a problem on its own; many servers do not respond to ping.
If you can log in to the server through your provider's web console, run these checks: the rdp-tcp line in the qwinsta output should be in the Listen state, the Remote Desktop Services (TermService) service should be running, and the "Remote Desktop - User Mode (TCP-In)" rule in wf.msc should be enabled. Microsoft provides this command to re-enable the built-in RDP rules:
Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Set-NetFirewallRule -Enabled True
The command works on servers with an English interface; if your server uses another display language, the group name may be different. If the command finds no rules, enable the Remote Desktop rules manually in wf.msc. For more detailed steps, see Microsoft's Remote Desktop can't connect troubleshooting page.
"Your credentials did not work" error
This message shows that you reached the server, but the username or password was not accepted. Work through these fixes in order:
- Type the password manually instead of pasting it; check Caps Lock and the keyboard layout.
- Try the username in the
.\Administratorformat so that Windows looks for the local account. - Delete the old entry for the server in Credential Manager. If the operating system was reinstalled, the old password may still be saved.
- If you are connecting with a non-administrator account, check that the account is in the Remote Desktop Users group.
- If you do not know the password, use the password reset option in your client area or contact your provider. If an account lockout policy is defined, many failed attempts can lock the account temporarily.
CredSSP encryption oracle error
The error text reads: "An authentication error has occurred. The function requested is not supported... This could be due to CredSSP encryption oracle remediation." This error comes from the CredSSP updates released on March 13, 2018 for the CVE-2018-0886 vulnerability. An updated client refuses to establish a connection considered insecure with an unpatched server (unless the Encryption Oracle Remediation policy is set to "Vulnerable"). An updated server, on the other hand, only rejects unpatched clients when this policy is set to "Force Updated Clients".
The permanent fix is to install Windows updates on both your own computer and the server. If you cannot get into the server over RDP, run the updates on the server through your provider's web-based console (similar to VNC/KVM); if that option is not available, ask the support team for help. Setting the "Encryption Oracle Remediation" policy to Vulnerable, as often suggested online, opens the connection but leaves the server exposed to a known attack. If you are forced to use this workaround, apply it only until you install the update and then revert it. Details: Microsoft's CredSSP error documentation.
"The number of connections is limited" error and concurrent sessions
The message reads: "The number of connections to this computer is limited and all connections are in use right now." Windows Server allows two simultaneous remote administration connections without requiring an RDS client access license (RDS CAL). When the limit is reached, you may see a warning like this; the cause is usually old sessions left open by closing the window.
- Try connecting with
mstsc /v:203.0.113.10 /admin; on servers without the RD Session Host role, this may not open an extra session. - If you managed to get into the server (over RDP or through your provider's web console), list the open sessions and close the one you do not need:
quser
logoff 2
The 2 here is the session ID from the quser output; enter the number from your own output. Any unsaved work in the session you close will be lost. If there is no web console either, restarting the server from the panel ends the sessions, but unsaved data will be lost.
If more than two people need to work at the same time, the RD Session Host role must be installed and an appropriate number of RDS CALs purchased. When the role is installed, there is a 120-day licensing grace period; once it ends, connecting clients must have a valid RDS CAL. Do not install this role without a licensing plan; when the grace period ends, unlicensed connections are refused.
How do you connect to a Linux VDS over SSH?
Linux VDS servers use the command line instead of a desktop, and the connection is made over SSH. SSH uses port 22 by default. On Windows 10 (1809 and later) and Windows 11, the OpenSSH client is an optional Windows feature and comes preinstalled on many systems. If the ssh command is not recognized in Terminal or PowerShell, add OpenSSH Client from the Optional features section in Settings (Settings > System > Optional features on Windows 11, Settings > Apps > Optional features on Windows 10). On Mac and Linux, the ssh command is already available.
ssh [email protected]
ssh -p 2222 [email protected]
The first line connects with the default port, the second to a server whose SSH port has been changed. On the first connection, the server's key fingerprint is displayed and you are asked to confirm it; if your delivery details include a fingerprint, compare them. After signing in, change the password with passwd, create a separate user with sudo privileges for daily work, and plan to switch to SSH key authentication instead of passwords. For the OpenSSH components on Windows, see Microsoft's OpenSSH overview page.
Frequently asked questions
How do I write the address if the RDP port is not 3389?
In the Computer field, type a colon and the port number after the IP address: 203.0.113.10:3390. On the command line, mstsc /v:203.0.113.10:3390 does the same. If Windows App does not show a separate port field, you can try entering the same format in the PC Name field; if it does not connect, switch back to the default port or ask your provider.
Do programs on the server keep running when I close the window?
Yes. Closing the window only drops the connection; the session and the programs in it keep running, and when you reconnect you pick up where you left off. However, signing out, restarting the server, automatic restarts by Windows Update or a time limit set for disconnected sessions will end the session.
Can I connect to a VDS from my phone?
Yes. Just install Windows App from the App Store for iPhone and iPad, or from Google Play for Android, and add the server's IP address. The minimum versions are iOS/iPadOS 16.0 and Android 10.
What happened to the Microsoft Remote Desktop app?
On Mac, iPhone, iPad and Android, it was replaced by Windows App. On Windows, the built-in Remote Desktop Connection (mstsc) is still supported. The Remote Desktop app from the Microsoft Store for Windows has been retired, and support for the separately downloaded MSI client ended on March 27, 2026.
How many people can connect to Windows Server at the same time?
Without additional licenses, two remote administration sessions can be open at the same time. For more, you need the RD Session Host role and RDS CAL licenses.
I forgot my VDS password, what should I do?
Check whether your client area has a password reset or web console option. If not, contact your provider's support team. If you are an Oweb customer, you can get in touch with our support team. Once you have the password, remember to delete the old saved credentials from Credential Manager.
Conclusion
In summary, the answer to how to connect to a VDS rests on three basic details: the IP address, username and password, plus the port as a fourth detail if the RDP port has been changed. You can connect within minutes using mstsc on Windows and Windows App on other devices. What really makes the difference are the steps after the first connection: changing the password, installing updates, keeping NLA on, checking the account lockout setting and opening RDP to as narrow an IP range as possible go a long way toward protecting your server against automated attacks.
If you are looking for a server for your project, you can explore Oweb's VDS virtual server options. If you get stuck on a step, adding the full text of the error message and a screenshot to your support ticket speeds up the solution; make sure no passwords or other confidential information are visible in the screenshot.