How to install MT4 & MT5 in your VM

Guide•10 min read•Last updated: Nov 22, 2026

How to Install MetaTrader 4/5 on Windows Server 2022

This page describes how to install and launch MetaTrader 4 or 5 on a Windows Server 2022 VM. It covers connecting to the VM, installing the broker-specific client, and logging in to a trading account.

Prerequisites

To install MetaTrader, you need:

  • A Windows Server 2022 VM with RDP enabled.
  • Trading account credentials (account number, password, server name).

Note: The broker-specific installer is recommended because it pre-loads the server list. However, you can also install the generic MetaTrader client and manually add the broker's server later via the Add button in the login dialog.

Connect to the VM

MetaTrader runs on the VM, so you need to access its desktop first. Windows Server uses Remote Desktop Protocol (RDP) for this.

Remote Desktop Connection
  1. Open Remote Desktop Connection (mstsc) on your local machine.
  2. Enter the VM's public IP address.
  3. Click Connect.
  4. Log in with the username and password provided.

You should now see the Windows Server desktop. All remaining steps happen on the VM.

Install MetaTrader

The broker's installer pre-configures the server list and may include broker-specific patches.

  1. Open Microsoft Edge on the VM.
  2. Navigate to the broker's website → Platforms or Download section.
  3. Download the MetaTrader installer for Windows.
  4. Right-click the installer → Run as administrator.
  5. Read the license agreement then proceed to click Next.
  6. Wait for the installation to finish and when available click Finish.

Option B: Generic installer (demo/test)

Use this if you don't have a broker account yet or want to test the VM first. You can add the broker's server later.

  1. Open Microsoft Edge on the VM.
  2. Navigate to the MetaQuotes website → Download section.
  3. Download the intended MetaTrader installer for Windows.
  4. Right-click the installer → Run as administrator.
  5. Read the license agreement then proceed to click Next.
  6. Wait for the installation to finish and when available click Finish.

After installation, a MetaTrader shortcut appears on the desktop.

Launch and log in

MetaTrader should open automatically after installation. If it doesn't, open it from the desktop shortcut.

On first launch, MetaTrader opens a dialog to create a demo account. To log into a live account instead, use File → Login to Trade Account.

Option A: Demo account

  1. Select New demo account and click Next.
  2. Select a server (e.g., MetaQuotes-Demo) and click Next.
Select server MT
  1. Enter your name, email, and phone (any valid-format placeholder works for a demo). Check the terms and conditions box, then click Next.
  2. Wait for the registration to complete, then click Finish.

Option B: Live account

  1. Go to File → Login to Trade Account.
  2. Enter the necessary information, and select the broker's server from the dropdown.
Trade account login

After logging in, verify that Market Watch shows live prices and the connection indicator in the bottom-right corner shows active data transfer.

Market watch
Connection indicator




Was this article helpful?

Can't find what you're looking for?

Our professional systems engineers are available 24/7/365 to assist you.

Contact Support