How to Connect VPS with Remote Desktop
How to connect VPS comes down to three things from your provider’s welcome email: host address, user name and password. On Windows, open Remote Desktop Connection, enter the address, add the user name under Show Options and sign in. On a Mac, iPhone or Android device, use Windows App.
Trading forex and CFDs involves substantial risk of loss. Automation applies rules; it does not remove trading risk. Read our risk disclosure.
Key takeaways
- Get the host, user name and password from your provider’s welcome email before you start.
- On Windows, use Remote Desktop Connection. On a Mac, iPhone, iPad or Android device, use Windows App.
- Install MT5 on the server from an official source, then log in to your trading account there.
- Closing the window disconnects you. Signing out closes your programs, and any EA running in them stops.
- Keep Network Level Authentication on, use a strong unique password and limit who can reach the server.
What you need before you connect
Your provider sends the connection details when the server is ready. Store them somewhere private, not in a shared note or a group chat.
- The host: an IP address or a server name.
- The user name and password for the server’s Windows account.
- A port number, only if the provider gives one other than the default, 3389.
If you are still choosing a server, the criteria are in forex VPS: what to compare. Do not share one login between several people. If several people need access, ask the provider about separate accounts.
How to connect VPS from Windows
Windows includes the Remote Desktop Connection app. Press Start, type Remote Desktop Connection (mstsc) and open it.
- In Computer, type the IP address or host name. Add the port only if your provider gave one, written as address:port.
- Select Show Options. In User name, enter the account name in the format your provider states: a plain user name, domain\user or user@domain.
- Select Connect. If Windows asks you to verify the certificate, check that its name matches the host you entered. Accept only if it does.
- Enter the password when prompted and sign in.
- Wait for the server desktop to load. From here you are working on the server, not on your own PC.
The Remote Desktop app for Windows from the Microsoft Store reached end of support on 27 May 2025. On Windows, use the built-in Remote Desktop Connection app instead.
Connecting from a Mac, iPhone, iPad or Android device
Microsoft’s Windows App replaces the older Remote Desktop clients on macOS, iOS and iPadOS, and Android. Add a PC, enter the same address and credentials, and connect. Microsoft’s documentation says a direct connection to a remote PC can be made without signing in to Windows App. Sign-in is required for services such as Azure Virtual Desktop, Windows 365, Dev Box and Remote Desktop Services.
| Device | App | Notes |
|---|---|---|
| Windows PC | Remote Desktop Connection | Built into Windows. Use Show Options to set the user name. |
| Mac | Windows App | Add the server by address, then enter the credentials. |
| iPhone or iPad | Windows App | Same steps. A small screen makes MT5 hard to read, so use it for checks. |
| Android device | Windows App | Same steps. Check the app’s own help for the current menu names. |
Install and log in to MT5 on the server
- In the server’s browser, download the MT5 installer from your broker or from the official MetaTrader 5 page at metatrader5.com. Do not use an installer from an unknown site.
- Run the installer and open the terminal.
- In MT5, open File, then Login to Trade Account, or use Login to Trade Account in the Navigator. Enter the account number and password your broker gave you.
- Copy any EA you wrote, bought or licensed into the server’s MQL5 folder, then attach it to a chart. The full steps are in how to install an EA on MT5.
Keep the account on demo until the setup has been tested end to end. A server does not make a strategy safer or more profitable. It only keeps the terminal online while you are away from your PC.
Disconnect or sign out: they do different things
Closing the Remote Desktop window disconnects you, but the session on the server usually stays active. MT5 and its EAs keep running. Microsoft’s client documentation says apps stay active while the session is still active on the remote PC.
| Action | What happens | When to use it |
|---|---|---|
| Close the window, or choose Disconnect | The session stays active. MT5 and EAs keep running. | The normal way to leave the server. |
| Sign out from the server’s Start menu | The session ends and programs close. MT5 and EAs stop. | When you want everything stopped. |
| Restart or shut down the server | Programs stop and must be started again after boot. | After updates, or when the provider asks. |
Some servers end disconnected sessions after a time limit set by the administrator. If MT5 stops after you close the window, check the session settings with your provider.
Security basics for a remote Windows server
- Use a long, unique password for every account on the server. Microsoft recommends strong, unique passwords for any account with remote access.
- Keep Network Level Authentication (NLA) enabled. Microsoft describes it as an extra layer that makes users authenticate before a session is established.
- Limit who can reach the server. Remote Desktop opens a port on the machine, so restrict access where your provider allows, for example to specific IP addresses.
- Install Windows and MT5 updates on a schedule you control, and plan restarts so they do not catch an open trade.
- Do not share one login between people, and remove accounts you no longer use.
Changing the port is not a substitute for a strong password or a firewall rule. Treat it as one extra layer, if at all.
Troubleshooting a failed connection
| Symptom | Likely cause | What to check |
|---|---|---|
| The computer cannot be found | Wrong address or port, or a firewall blocks the connection. | Copy the address from the welcome email again. Check the port, the provider’s firewall and your own network. |
| Sign-in fails | Wrong password, or the user name is in the wrong format. | Retype the password. Try the user name format your provider states. |
| Certificate warning | The certificate name does not match the address you typed. | Do not accept an unexpected name. Ask the provider for the correct address. |
| NLA error | The client app or the account does not meet the server’s NLA requirements. | Update the client app, confirm the account has remote access and ask the provider before you turn NLA off. |
Microsoft notes that NLA can be disabled temporarily for older clients that do not support it. Keep it on whenever possible.
Frequently asked questions
Can I connect to a VPS from a Mac?
Yes. Install Windows App from Microsoft, add the server by its address, and enter the user name and password your provider gave you. Check that MT5 is laid out the way you expect the first time you log in, because the window sizes differ from a Windows PC.
Why does Remote Desktop ask me to verify a certificate?
The server presents a certificate to prove its identity. The prompt usually appears when the certificate is self-signed or its name does not match the address you typed. Compare the name with the one in your welcome email, and accept only if it matches what your provider told you.
Do I need to keep the Remote Desktop window open for my EAs to run?
No. A disconnected session on the server keeps running, so MT5 and its EAs can keep running while you close the window. The session stops when you sign out, restart the server or an administrator time limit ends it. Check the Experts tab after you reconnect.
Is a VPS the same as Remote Desktop?
No. A VPS is the rented Windows server you connect to. Remote Desktop is the method and the app you use to reach it. You need an account with a server provider first, then a Remote Desktop client on your device.
What should I check after I reconnect?
Look at the Experts and Journal tabs in MT5 for errors, confirm that the account and symbols are the ones you expect, and check that the Algo Trading button (AutoTrading in some versions) is on. Menu and icon wording varies by build, so use the terminal’s help for the current names.
Keep reading
- Forex VPS: what to compare
- Run multiple MT5 expert advisors on Windows
- How to install an EA on MT5
- Can you run an EA on MT5 mobile?
Sources: Connect to Remote Desktop Services and remote PCs on Windows · Enable Remote Desktop on your PC · What is Windows App? · Connect to Remote Desktop Services in Windows Server
Trading forex and CFDs involves substantial risk of loss. Past performance and backtests do not guarantee future results. Read our risk disclosure before you trade.