Allowing MetaTrader 5 through Windows Firewall ensures your platform can stay connected to your broker. Follow the steps below to whitelist MT5 on your VPS.
Step 1: Open Windows Defender Firewall
Click Start Menu → Search → "Windows Defender Firewall."
In the left sidebar, click "Allow an app through Windows Defender Firewall."
Windows Defender Firewall: Allow an app through Windows Defender Firewall link
Step 2: Add a New App
At the bottom-right corner, click "Allow another app...." This opens the Add an App dialog.
Allowed apps window with the Allow another app button
Click Browse…
Add an app dialog with the Browse button
Step 3: Allow MT5 Installation
Navigate to your MT5 installation directory, usually: C:\Program Files\MetaTrader 5\
Select the file terminal64.exe
Click Open → Add
C:\Program Files\MetaTrader 5\
Browsing to terminal64.exe in the MetaTrader 5 installation folder
Step 4: Enable Both Network Types
Back on the main Firewall screen, find MetaTrader 5 (terminal64.exe) in the list.
Check both boxes:
Private
Public
Click OK to save changes.
Add an app dialog showing MetaTrader 5 selected
MetaTrader 5 in the allowed apps list with Private and Public checked
Step 5: 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.
Need Assistance?
Our support team is available 24/7. If you have any questions or run into issues, open a support ticket from your QuantVPS dashboard and we'll get back to you as quickly as possible.






