Skip to main content

How to Allow MetaTrader 5 Through Windows Firewall

If MetaTrader 5 (MT5) is unable to connect or keeps showing “No Connection” at the bottom-right corner of the platform, your Windows Firewall may be blocking its network ports.

Updated over 2 weeks ago

Step 1 — Open Windows Defender Firewall

  1. Click Start Menu → Search → “Windows Defender Firewall.”

  2. In the left sidebar, click “Allow an app through Windows Defender Firewall.”

Step 2 — Click “Allow another app...”

At the bottom-right corner, click “Allow another app....”

This allows you to modify or add new apps.

Step 3 — Add a New App

  1. Click “Allow another app…” at the bottom of the window.

    (This opens the Add an App dialog like the image you shared.)

  2. Click Browse…

Step 4 — Allow MT5 Installation

  1. Navigate to your MT5 installation directory, usually: C:\Program Files\MetaTrader 5\

  2. Select the file terminal64.exe

  3. Click Open → Add

C:\Program Files\MetaTrader 5\

Step 4 — Enable Both Network Types

  1. Back on the main Firewall screen, find MetaTrader 5 (terminal64.exe) in the list.

  2. Check both boxes:

    • ✅ Private

    • ✅ Public

  3. Click OK to save changes.

Step 6 — Restart MT5 and Verify Connection

Open MetaTrader 5 again and check the status in the bottom-right corner:

  • 🟢 Connected — MT5 is allowed through the firewall

  • 🔴 No Connection — verify the firewall rule and try again

If you still experience issues, temporarily disable any third-party antivirus (Norton, McAfee, AVG, etc.) to ensure it’s not blocking MT5.

Tips

  • If you use a broker-branded MT5 build (e.g., “BrokerName MT5”), repeat these steps for that specific executable.

  • Avoid adding multiple copies of MT5 to the allowed list — keep only the active installation.

  • Keep Windows Firewall enabled for security; just ensure MT5 is whitelisted.

Did this answer your question?