Skip to content

RDPGuide

How to Connect to RDP From Windows Mac Linux and Phone

  • Updated
  • 12 min read
  • VPS Lane Engineering
Short answer

Open an RDP client, enter the remote PC address and port, then sign in with an account allowed to use Remote Desktop on it.

How we tested this

Linux client steps were run on Ubuntu 24.04.5 LTS with FreeRDP 3.32.2 (freerdp3-x11) and Remmina 1.4.43 against a local xrdp 0.9.24 server on port 33890, Output is shown as captured except that the loopback address 127.0.0.1 was replaced with the documentation address 203.0.113.10 and log prefixes were trimmed. Windows, Mac, iPhone, iPad and Android steps follow the Microsoft documentation under Sources and were not run here.

Ways to Connect to RDP by Device

The way you connect to RDP depends on your device, but every client asks for the same address, port and Windows account.

Microsoft makes the client for Windows, Mac, iPhone, iPad and Android. On Mac and mobile it is now called Windows App, so older guides that mention the Remote Desktop app describe the same job with a previous app. Linux has no Microsoft client, and FreeRDP and Remmina fill that gap.

Which RDP client to use on each device
Your deviceClientWhere you type the addressMinimum version
Windows, Home or ProRemote Desktop Connection (mstsc), built-inComputer boxBuilt-in
WindowsWindows App from the Microsoft StorePC NameSee the Windows App documentation
MacWindows App from the Mac App StorePC NamemacOS 12.0
iPhone and iPadWindows App from the App StorePC NameiOS or iPadOS 16.0
Android and ChromebookWindows App from Google PlayPC NameAndroid 10, ChromeOS 126
Linux desktopFreeRDP (xfreerdp3) or Remmina/v: option or the Server fieldWhatever your distribution ships

The minimum versions are the ones Microsoft lists for connecting to a remote PC with Windows App, and they can change with new releases. The addresses in this guide, such as 203.0.113.10, are documentation examples, so replace them with the address of your own server. Our test output was captured against 127.0.0.1 and shows 203.0.113.10 in its place.

What You Need Before Connecting

Before connecting, you need the server address, the port, a username and a password from whoever set the server up.

  • The address. An IP address such as 203.0.113.10 or a host name that resolves to it.
  • The port. Remote Desktop listens on 3389 unless someone changed it. A different port goes after the address with a colon, for example 203.0.113.10:33890.
  • An account that may sign in remotely. On a new Windows server this is often the built-in Administrator account. Other users must be in the Remote Desktop Users group or hold the right to sign in through Remote Desktop Services.
  • Remote Desktop turned on at the other end. The computer you connect to has to accept connections. Windows Pro, Enterprise and Education and Windows Server can do that. Windows Home can connect out to other computers but cannot accept incoming Remote Desktop sessions.
  • A PC that is awake. The remote computer must be powered on and not asleep or hibernating, so check its power and sleep settings if it cannot be reached even with Remote Desktop on.
  • A network path. Any firewall between you and the server, including a cloud or hosting panel firewall, must allow the port.
  • A VPN or gateway if the PC is on a private network. A work computer is often reachable only after you join the company VPN, or through a Remote Desktop Gateway your administrator gives you, which mstsc takes with /g:. In that case the PC needs no public address or open port of its own.

If you rent a Windows RDP server, your provider sends the address, port and Administrator details, and Remote Desktop is already on. On your own PC running Windows Pro, Enterprise or Education, turn it on first in Settings under System and then Remote Desktop, since Windows Home cannot accept incoming sessions, or follow the guide to enable Remote Desktop on Windows Server.

Connect to RDP From Windows

To connect to RDP from Windows, use the built-in Remote Desktop Connection app, which works on Home and Pro editions alike.

Use Remote Desktop Connection

Remote Desktop Connection opens from the taskbar search box when you type its name.

  1. Open the appType Remote Desktop Connection in the taskbar search box and open the result.
  2. Enter the addressIn the Computer box type 203.0.113.10, or 203.0.113.10:33890 if the server uses another port.
  3. ConnectSelect Connect. A Windows Security window asks for the password.
  4. Pick the right accountIf the user shown is not the one you were given, choose More choices, then Use a different account, and type the username and password.
  5. Verify the certificate before trusting itA first connection may show a certificate warning, especially with a self-signed certificate. Do not accept it on the name or address alone. Check the certificate details or thumbprint with your provider or administrator first.

For a local account, type .\Administrator or SERVERNAME\Administrator so Windows uses the account on that server rather than one on your own PC. For a domain account, type DOMAIN\username or the format your administrator gave you.

Before you connect, Show Options opens tabs for the display, local resources such as the clipboard, and saving the connection. The settings section below covers what to change there.

Start It From the Command Line

You can start the same client from the command line with mstsc in Run, Command Prompt or PowerShell.

The first three examples work in all three places. The last one uses PowerShell syntax for the user folder, so run it in PowerShell.

powershell
mstsc /v:203.0.113.10:33890
mstsc /v:203.0.113.10 /f
mstsc /v:203.0.113.10 /w:1280 /h:720
mstsc /edit "$env:USERPROFILE\Desktop\my-server.rdp"

The first line connects on a custom port, the second opens full screen, the third sets the window size and the last opens a saved file for editing. These lines were not run here, and they follow the documented mstsc syntax.

Use Windows App on Windows

Windows App for Windows also connects to remote PCs, and Microsoft offers versions for Mac and mobile with settings that vary by platform.

Remote Desktop Connection is the quickest way to open .rdp files and use command line switches. Windows App is useful if you manage saved remote PCs across several devices, though its settings and features vary by platform.

Install it from the Microsoft Store, select Add a remote PC, or the plus icon on the Devices tab, and enter the address in PC Name. Additional settings holds a friendly name, display options and local resources, and Microsoft notes that all redirections there are off by default. Select Add & Connect, then sign in.

Connect to RDP From a Mac

To connect to RDP from a Mac, install Windows App from the Mac App Store, which needs macOS 12.0 or later for remote PCs.

  1. InstallGet Windows App from the Mac App Store and open it. Skip or finish the tour.
  2. Add the PCOn the Devices tab, select the plus icon, then Add PC.
  3. Enter the addressIn PC Name type 203.0.113.10, adding :33890 if your server uses another port.
  4. Optional settingsAdd a user account, a friendly name, display settings and device or audio redirection, or leave them for later.
  5. ConnectSelect Add, then double click the PC on the Devices tab and sign in if you did not save an account.

You do not need a Microsoft account to connect to a remote PC this way. Microsoft also offers the Mac app as a standalone installer outside the App Store, listed on its release notes page.

Mac keyboards lack some Windows keys. See how to send Ctrl Alt Del in a remote session for the key combinations a session needs.

Connect to RDP From Linux

To connect to RDP from Linux, use FreeRDP on the command line or Remmina in a window, both packaged by most distributions.

Install FreeRDP and Remmina

Install FreeRDP and Remmina from the Ubuntu 24.04 archive, then check the version you got.

bash
sudo apt-get update
sudo apt-get install -y freerdp3-x11 remmina remmina-plugin-rdp
xfreerdp3 /version
Output
This is FreeRDP version 3.32.2 (3.32.2)

Older releases and some other distributions ship FreeRDP 2 as the freerdp2-x11 package with the command xfreerdp. Most of the options below work there as well, but check xfreerdp /help because some names changed between versions. The commands above are for Ubuntu and Debian based systems. Other distributions package FreeRDP and Remmina under their own names, so install them with your own package manager.

Make the First FreeRDP Connection

Make the first FreeRDP connection with the address, the port and the username, and let it ask for the password.

bash
xfreerdp3 /v:203.0.113.10:33890 /u:Administrator /size:1280x800 +clipboard

FreeRDP prompts for the domain and password. Leave the domain empty for a server that is not in one. Do not add /p: with the password on the command line. FreeRDP 3.32.2 printed this warning when we passed one, because a command line can show up in the process list and shell history.

Output
[WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]: Using /p is insecure
[WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]: Passing credentials or secrets via command line might expose these in the process list

Read the Certificate Prompt

The certificate prompt appears on the first connection to a server that uses a self-signed certificate, which most new servers do.

This is the real prompt from our test, trimmed and with the log prefix removed. The server certificate was made for the name rdp-test.example, so connecting by IP address also triggers a name mismatch, as it often does with a fresh Windows server.

Output
WARNING: CERTIFICATE NAME MISMATCH!
The hostname used for this connection (203.0.113.10:33890)
does not match the name given in the certificate:
Common Name (CN):
	rdp-test.example
...
Certificate details for 203.0.113.10:33890 (RDP-Server):
	Common Name: rdp-test.example
	Subject:     CN = rdp-test.example
	Issuer:      CN = rdp-test.example
	Valid from:  Nov 26 04:15:01 2026 GMT
	Valid to:    Dec 26 04:15:01 2026 GMT
	Thumbprint:  b8:40:2a:d4:d2:a9:2c:08:a0:f5:4e:ad:89:b4:6e:e7:65:40:87:c8:60:f4:1b:f3:1c:22:4d:8d:a4:cc:4e:fc
The above X.509 certificate could not be verified, possibly because you do not have
the CA certificate in your certificate store, or the certificate has expired.
Do you trust the above certificate? (Y/T/N)

In our test FreeRDP 3.32.2 also printed a banner reading REMOTE HOST IDENTIFICATION HAS CHANGED on this very first connection, with no certificate stored before. Read the certificate details rather than the banner. The thumbprint is a SHA-256 hash, and it matched the one openssl x509 -noout -fingerprint -sha256 printed for the certificate on the server.

Answer Y to trust it and store it, T to trust it for this connection only, or N to stop. In our test Y saved the certificate in ~/.config/freerdp/server/ and later connections went straight through, while T connected without saving anything. Trusting the certificate tells FreeRDP to accept it, and it does not prove the server is yours, so compare the thumbprint with the server or your provider when you can.

FreeRDP window showing the xrdp sign in screen after opening a saved .rdp file on Ubuntu 24.04
FreeRDP 3.32.2 opened our saved .rdp file. The 1280 by 720 window and the username both came from the file.

Use Remmina for a Graphical Client

Remmina is a graphical client that keeps a list of saved connections and can open .rdp files directly.

Open Remmina, pick RDP in the protocol list next to the address bar and type 203.0.113.10:33890. To use a saved file, run remmina -c my-server.rdp. In our test Remmina 1.4.43 read the address and the username from the same file we used with FreeRDP and asked for the password.

To keep a connection in Remmina for later, select the plus button for a new connection profile, choose RDP, enter the server, username and display settings, then save it. The profile then appears in the main list, ready to open with a double click.

Connect to RDP From iPhone iPad and Android

To connect to RDP from an iPhone, iPad or Android device, install Windows App and add the server as a PC.

Adding a remote PC in Windows App on a phone or tablet
StepiPhone and iPadAndroid and ChromeOS
InstallApp Store, iOS or iPadOS 16.0 or laterGoogle Play, Android 10 or ChromeOS 126 or later
First launchAllow the Bluetooth and local network promptsFinish or skip the tour
AddTap the plus icon, then PCTap the plus icon, then PC connection
AddressTap PC Name and type the addressTap PC Name and type the address
SaveTap SaveTap Save
ConnectTap the PC on the Devices tab and sign inTap the PC, review the trust prompt, then tap Connect

On Android a prompt reading "Make sure you trust the remote PC before you connect" lists the local resources the session may use. Turn on only what you need. Ticking "Never ask again for connections to this PC" hides the prompt for that PC from then on.

A custom port goes in PC Name the same way as on a desktop, for example 203.0.113.10:33890. A phone on mobile data reaches the server only if the port is open to the internet or you are on a VPN that can reach it.

Save an RDP File for One Click Connections

Save an RDP file once and later connections take one click, with the address, user and display settings kept in a small text file.

In Remote Desktop Connection, select Show Options, set things up, then choose Save As on the General tab. Double clicking the file starts the connection, and mstsc /edit opens it for changes. You can also write the file by hand. This is the one we tested, with the example address in place of the loopback one.

my-server.rdp
full address:s:203.0.113.10:33890
username:s:Administrator
screen mode id:i:1
desktopwidth:i:1280
desktopheight:i:720
dynamic resolution:i:1
smart sizing:i:0
use multimon:i:0
redirectclipboard:i:1
audiomode:i:0
drivestoredirect:s:
authentication level:i:2

To check the file, open it and confirm the session uses what you set. Opened with xfreerdp3 my-server.rdp, our test file gave a 1280 by 720 window with the username already filled in, and Remmina read it the same way. That proves the client parsed those lines. It does not prove a given Windows client applies every line, because support differs by client and version.

What the Lines in an RDP File Do

Each line in an RDP file is a name, a type and a value, and the lines below are the ones a first file needs.

Common .rdp file settings
LineWhat it does
full address:s:The server address, with :port when it is not 3389
username:s:The account name to fill in, never the password
screen mode id:i:1 opens a window, 2 opens full screen
desktopwidth:i: and desktopheight:i:The session size in pixels
dynamic resolution:i:1The remote desktop follows the window when you resize it
smart sizing:i:1Scales the picture to the window instead
use multimon:i:1Uses all of your monitors
redirectclipboard:i:1Asks to share your clipboard with the session
audiomode:i:0 plays sound on your device, 1 on the server, 2 nowhere
drivestoredirect:s:Empty shares no drives, * shares all of them
authentication level:i:2Warns and lets you choose if the server identity cannot be verified

Keep the password out of the file. Each client asks for it or keeps it in its own credential store.

The Security Dialog When You Open RDP Files

Since the April 2026 Windows security update, Remote Desktop Connection shows a security dialog every time you open an RDP file.

The dialog shows the remote address and a check box for every local resource the file asks for, such as the clipboard or drives, and all of them start unticked. A file you wrote yourself is unsigned, so the dialog carries the banner "Caution: Unknown remote connection" and lists the publisher as unknown. That is expected for your own file. Check the address, tick only what you need, then connect.

So redirectclipboard:i:1 in the file is a request, and the clipboard is only shared if you tick it in that dialog. Typing the address straight into Remote Desktop Connection is not affected by this change. Treat .rdp files you did not expect, especially from email, as possible phishing, and do not open them.

Display and Clipboard Settings in Each Client

Display and clipboard settings live in different places in each client, so this table maps the same choice across all of them.

Where to set display and clipboard options
You wantRemote Desktop ConnectionFreeRDP.rdp file
Full screenDisplay tab, or mstsc /f/fscreen mode id:i:2
A fixed window sizeDisplay tab, or /w:1280 /h:720/size:1280x720desktopwidth and desktopheight
Session follows the window sizeNot a switch+dynamic-resolutiondynamic resolution:i:1
Scale instead of resizeNot a switch/smart-sizingsmart sizing:i:1
All monitorsDisplay tab, or /multimon or /span/multimonuse multimon:i:1
Shared clipboardLocal Resources tab, Clipboard box+clipboard, or -clipboard to turn it offredirectclipboard:i:1

On Windows App for Mac and mobile, the same choices sit in the settings of each saved PC, under display and device redirection. On Windows, Microsoft notes that redirections start turned off in Windows App, so turn on the clipboard there if you want copy and paste.

/multimon copies the layout of your monitors into the session, while /span stretches one desktop across monitors that are side by side and share the same resolution.

If copy and paste still fails with the clipboard turned on, a server side policy may block it, or on Windows the rdpclip.exe process in the session may need restarting. A slow link is better served by a smaller window than by full screen across several monitors.

Common First Time RDP Errors and Fixes

Most common first time RDP errors come from a wrong address or port, a blocked firewall, an account without rights, or a certificate prompt.

First connection errors and what to do
What you seeLikely causeFix
FreeRDP Connection refused and ERRCONNECT_CONNECT_FAILEDNothing listens on that address and port, often because the port is wrongAdd the right :port, and check Remote Desktop is on at the server
FreeRDP ERRCONNECT_DNS_NAME_NOT_FOUNDThe host name does not resolveCheck the spelling or connect by IP address
A long wait, then a timeoutA firewall drops the traffic, or the address is wrongAllow the port in Windows and in the provider firewall
"The connection was denied because the user account is not authorized for remote login."The account lacks the Remote Desktop sign in rightAdd it to Remote Desktop Users, or check "Allow log on through Remote Desktop Services"
The credentials are rejectedWrong username format, password or keyboard layoutTry .\Administrator, check Caps Lock, and retype the password
The logon fails although the password is rightWrong domain, a disabled or expired account, or an account restrictionConfirm the username format, account status and remote sign in rights with the administrator
A certificate warning on the first connectionA self-signed or expired certificate, an untrusted issuer, or a name that does not matchCompare the name and thumbprint with details from your provider or administrator, and accept only if they match
FreeRDP Certificate ... has changed!!!The server was reinstalled, or the connection is being interceptedConfirm with the provider before you accept the new one
"Caution: Unknown remote connection" when opening a fileThe RDP file is unsignedCheck the address, tick only what you need, then connect
The session drops in the middle of workA network interruption, a server restart or a session time limitReconnect, check your link, and ask the administrator about time limit policies

These two results are real FreeRDP 3.32.2 output with the log prefix removed. The first used port 3389 where our server listened on 33890, and the second used a name that does not exist.

Output
connect to 203.0.113.10:3389 failed with error: Connection refused [111]
[get_next_addrinfo]: ERRCONNECT_CONNECT_FAILED [0x00020006]

getaddrinfo(rdp-test.invalid) failed with Name or service not known
[freerdp_tcp_is_hostname_resolvable]: ERRCONNECT_DNS_NAME_NOT_FOUND [0x00020005]

A changed certificate looks different from a first one. When we replaced the server certificate after a trusted connection, FreeRDP showed the old and new thumbprints side by side and refused to go on without an answer.

Output
!!!Certificate for 203.0.113.10:33890 (RDP-Server) has changed!!!
...
The above X.509 certificate does not match the certificate used for previous connections.
This may indicate that the certificate has been tampered with.
Please contact the administrator of the RDP server and clarify.
Do you trust the above certificate? (Y/T/N)

Test the Port Before Blaming RDP

Test the port from your own device before you change anything on the server, because it shows whether the problem is the network.

powershell
Test-NetConnection -ComputerName 203.0.113.10 -Port 33890

On Windows, TcpTestSucceeded : True means a TCP connection was made. On Linux or macOS netcat does the same check. This is real output from Ubuntu 24.04.5 with OpenBSD netcat, against our server and against the default port where nothing listened.

bash
nc -zv -w 3 203.0.113.10 33890
nc -zv -w 3 203.0.113.10 3389
Output
Connection to 203.0.113.10 33890 port [tcp/*] succeeded!
nc: connect to 203.0.113.10 port 3389 (tcp) failed: Connection refused

A pass proves only that something accepts TCP on that port. It does not prove that the something is Remote Desktop, that your account may sign in, or that the UDP transport is open. A refusal usually means the destination or a firewall actively rejected the connection, often because nothing listens on that port. A check that hangs until the timeout usually means packets are being dropped, commonly by a firewall or network filter.

If the port test fails at the server end, the Microsoft troubleshooting guide in the Sources list shows how to check that Remote Desktop is on and that its listener is running. To move Remote Desktop to another number, see how to change the RDP port safely.

Keep Your First RDP Connection Safe

Keep your first RDP connection safe with a few habits, each of which lowers one risk without making the server safe on its own.

What each habit does and does not do
HabitWhat it helps withWhat it does not do
Check the certificate before trusting itCatches a server that is not the one you meantProtect you if you accept every prompt without reading it
Keep passwords out of command lines and filesKeeps them out of shell history and shared filesStop password guessing against the server
Share only the resources you needLimits what the server can reach on your deviceProtect the server itself
Restrict the server firewall to your own IP addressesBlocks connection attempts from everywhere elseHelp if your own address changes often
Use long unique passwords and keep Windows updatedMakes guessing harder and closes known flawsReplace the firewall limits above

Where you can, avoid exposing Remote Desktop directly to the internet. A VPN or a Remote Desktop Gateway in front of the server, with the firewall allowing only trusted addresses, keeps the RDP listener of the server off the public internet. The VPN or gateway endpoint itself must still be reachable, but the RDP port of the server can stay limited to trusted private addresses. If direct access is the only option, combine the firewall limit with strong unique passwords, Network Level Authentication and current updates.

Network Level Authentication asks for your credentials before a full remote session is set up. Leave it on where the server has it enabled. Current versions of the clients in this guide support it, so it should not need any extra steps on your side.

Questions people ask

Can I use RDP over the internet?

Yes, if the remote PC is reachable through a public address, a VPN or a Remote Desktop Gateway. A VPN or gateway is the safer choice.

How do I connect to RDP from Windows?

Search for Remote Desktop Connection in the taskbar, type the address in the Computer box and select Connect. mstsc /v:address does the same.

Can I connect to RDP from a Mac?

Yes. Install Windows App from the Mac App Store, which needs macOS 12.0 or later, then add the server with the plus icon and Add PC.

How do I connect to RDP from my phone?

Install Windows App from the App Store or Google Play, tap the plus icon, add a PC with the server address, save it and tap it to connect.

What port does RDP use?

RDP uses TCP port 3389 by default. For another port, put a colon and the number after the address, for example 203.0.113.10:33890.

Can Windows Home connect to RDP?

Yes, Windows Home can connect to other computers with Remote Desktop Connection. It cannot accept incoming Remote Desktop sessions itself.

Why does RDP show a certificate warning?

Usually the server has a self-signed certificate, though an expired one or a name mismatch also triggers it. Compare the name and thumbprint with details from your provider or administrator, and accept only if they confirm it.

How do I copy and paste between my computer and RDP?

Turn on the clipboard in the client, under Local Resources in Remote Desktop Connection or with +clipboard in FreeRDP, before you connect.

Sources

  1. Microsoft Learn, Get started with Windows App to connect to devices and apps
  2. Microsoft Support, How to use Remote Desktop
  3. Microsoft Learn, mstsc command reference
  4. Microsoft Learn, Supported RDP properties
  5. Microsoft Learn, Understanding security warnings when opening Remote Desktop (RDP) files
  6. Microsoft Learn, Troubleshooting access denied and user not authorized issues in RDS
  7. Microsoft Learn, General Remote Desktop connection troubleshooting
  8. Microsoft Learn, Test-NetConnection
  9. Debian manual page, xfreerdp3

Written and tested by VPS Lane EngineeringWe run every step on real servers before publishing and update the guide when the software changes.