VPS guide

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

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.

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.

  1. In Computer, type the IP address or host name. Add the port only if your provider gave one, written as address:port.
  2. 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.
  3. Select Connect. If Windows asks you to verify the certificate, check that its name matches the host you entered. Accept only if it does.
  4. Enter the password when prompted and sign in.
  5. Wait for the server desktop to load. From here you are working on the server, not on your own PC.
Five steps run from the welcome email to running MT5 on the server, with a card reading Disconnect, don’t sign out. The figure shows the order of steps, not a real server.
Concept diagram, not an app screenshot.

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.

Client apps by device
DeviceAppNotes
Windows PCRemote Desktop ConnectionBuilt into Windows. Use Show Options to set the user name.
MacWindows AppAdd the server by address, then enter the credentials.
iPhone or iPadWindows AppSame steps. A small screen makes MT5 hard to read, so use it for checks.
Android deviceWindows AppSame steps. Check the app’s own help for the current menu names.

Install and log in to MT5 on the server

  1. 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.
  2. Run the installer and open the terminal.
  3. 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.
  4. 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.

What each way of leaving does
ActionWhat happensWhen to use it
Close the window, or choose DisconnectThe session stays active. MT5 and EAs keep running.The normal way to leave the server.
Sign out from the server’s Start menuThe session ends and programs close. MT5 and EAs stop.When you want everything stopped.
Restart or shut down the serverPrograms 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

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

Common connection problems
SymptomLikely causeWhat to check
The computer cannot be foundWrong 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 failsWrong password, or the user name is in the wrong format.Retype the password. Try the user name format your provider states.
Certificate warningThe certificate name does not match the address you typed.Do not accept an unexpected name. Ask the provider for the correct address.
NLA errorThe 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

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.