After reading this article, you will know how to fix connection problems on your MetaTrader 4 platform or at least know why it does not connect.
I won’t waste your time and go into details immediately.
Problem: You get to your computer or connect to your VPS server and find out that the MT4 platform shows a “No Connection” status message in the right-bottom corner, while it was working fine when you left.
Solution: Try to reconnect your MT4 to the broker server and find the reason for the connection problems.
It is also convenient to learn how to read the connection status image.
Fully red means there is no connection with the selected server.
Green/red means the direct connection to the server.
Green/blue means that your platform is connected to a Data Center.
5 ways to make MT4 reconnect to the broker server
Obviously, there might be several reasons for this, but before we make any assumptions and try to find out what’s the reason for MT4 losing connection to the broker server, let’s look at 5 possible solutions to solve this problem.
What we are trying to do now is to re-establish a connection to the broker server.
I will assume that you were logged in and the connection was fine some time ago, but then you found it disconnected. Obviously, if you are not logged into your MT4 account, you will also see this “No Connection” message, which means you need to connect to your account from the top menu by going to “File -> Login to Trade Account“.
1. Do “Rescan servers”.
The first thing you should try is to do “Rescan servers”. You can find this option by clicking the left mouse button on the “No connection” label in the right-bottom corner of your MT4. Note that you need to click the left mouse button. Once you run a re-scan, MT4 looks for the best server available and then tries to connect. You can even try this several times every 30 seconds because it could be that the first attempt to reconnect might be unsuccessful.
Let’s take a look at what this looks like on the HotForex MT4 platform.
You see, there are lots of servers (MT4 Data Centers) available on different continents of the world. This means that MT4 automatically connects to the one that has the fastest response time. In this case, my MT4 is connected to server Europe2T1 (that’s because I am based in Europe) whose response is 32 milliseconds. That’s very fast.
Most people have a connection response rate of 400 ms or so, which is quite reasonable for simple trading. But if your trading strategy is vulnerable to Slippage, spreads, and execution speed, you need to connect to the fastest server possible. Usually, automated trading strategies that make a lot of trades are affected the most, and speed of connection matters a lot here.
You can look at this list of servers anytime you want, even when you are connected, and if there’s a need, you can always choose to connect to any other server.
Also, I should mention that your broker might not have that many servers to choose from.
In the picture above, you see what this looks like on my MT4 trading platform with another broker. It shows only one server available named “main new”. The other server, “main” is not available. But still, I can try the “Rescan servers” option as this might help and make my MT4 to re-establish a connection.
MT4 usually connects to the “nearest” broker’s server available (i.e. one that has the least ping). However, it could be that if MT4 disconnects for any reason and then connects back again, it might select another server (if it’s the only server that’s working at that time), even if its ping (latency) is not good. The problem is that MT4 might not automatically switch back to a better server once it gets back online. In that case, “Rescan servers” should help as well.
2. A simple MT4 restart might solve the problem.
If you are able to restart your MT4 platform, this might solve the connection problems. Chances are that on the next MT4 launch, it will be able to connect to the broker server successfully.
To restart MT4 you need to click the X at the top-right corner of the MT4 window or go to the top menu “File->Exit“.
Once your MT4 is closed, I recommend waiting at least 30 seconds before you open it again. This will give some time for MT4 to update all necessary files on exit. When you close MT4, it will always update log files with the most recent messages.
When you run MT4 again, it might run an update and restart without any prompt, so don’t get surprised if this happens. It’s a good thing. MetaQuotes are constantly improving its software.
3. Try to log in to Trading Account again.
The third thing you can do is try to re-login to your trading account. Simply go to “File -> Login to Trade Account” in the top menu and click OK when the login window appears. Login, Password, and Server should already be filled in if you were logged in successfully last time. However, if any of the login information is missing, you must fill it in.
Even if you find login information already filled in for you, I recommend you to double-check if it’s correct, especially if re-login does not help on the first attempt.
Simply check if you have the right login number and server selected. As for the password, it is not visible, so I recommend copying/pasting it again.
Here are a few tips when you copy/paste a password.
- When you copy a password or any other information from some text file or email, always ensure there is no extra space or other characters at the beginning or end of the password. Because you do not see what you paste in the password field (because it is hidden), I recommend you to open Notepad (or some other text editor) and paste the password to check if it’s clean.
- Before you paste a new password, I recommend you clear the password input box. This helps you avoid confusion and know that you have entered the newly copied password.
- Make sure the password is copied into memory. There were times when my computer did not copy anything new into memory. It just kept holding some older text I copied an hour ago. Not sure what the reason was, but keep in mind that if you copy something into memory, it might be that it was not copied. And then, when you paste the text into the hidden password field, you won’t even notice that it’s not the password but some old text from memory.
4. Try to log in using another server.
Many brokers have more than one trading server to connect to; it could be that you’ve tried to connect to the wrong server. In that case, you might usually see an “Invalid Account” message in the bottom-right corner, but still, even if you see a “No Connection” message, it’s worth checking if you are connecting to the right server.
First, make sure you know exactly what server to connect to. This information is usually provided by your broker after you register an account with them.
You can choose a broker server when you open the “File -> Login to Trading Account” window. Find the server you need to connect to and select it.
In the picture above, we see the login window of the OANDA MT4 platform. There are 5 servers to choose from; if I choose the wrong one, I won’t be logged into my MT4 account.
If you do not remember which server to use exactly, you should look for an email from your broker with the login information. If this does not help, you might try to look at the “Mailbox” tab at the bottom of your MT4 platform.
Specifically, you should be looking for a message with a headline like “Account Registration” or something similar, like in the image above.
Such a message is not always available on MT4, but there were countless times when this helped me find my MT4 account login details quickly.
Also, Mailbox on MT4 might have other important messages from your broker, like that with the headline “Demo-Server new IP address”. This notified me that this Forex broker changed their demo server IP address, and I must re-login.
Checking messages daily will help you stay updated about things like that.
5. Disable your Anti-Virus, Firewall, or Internet security software.
Maybe you’ve recently installed any new software on your computer or VPS server? Programs like Anti-Virus, Firewall, and Internet security might be blocking your Internet connection (or just some of it).
I’ve seen this problem many times. People install new firewall software to protect their computers from Internet attacks, and as a result, they block any outgoing connections for anything else except their web browser.
When you see web pages loading fine in your browser, you’ll assume that the Internet connection is working fine. At the same time, applications like MetaTrader are blocked from the Internet and cannot connect to your broker server because of the firewall or anti-virus software. Yes, I agree that security comes first, but ensure you understand what you are doing and configure such software properly.
If you feel your Internet connection might be blocked, try to disable your Anti-Virus or Firewall software (at least temporarily). If this helps and you get your Internet connection back, then you should spend more time learning how to configure your security software properly.
Find the cause of the connectivity problem
If none of these solutions help, try to figure out the cause of the connection problem. Here are the things you could do listed below.
A. Check if the Internet Connection is working using a web browser.
The best option is to navigate to your MT4 broker’s website because chances are that it is located on the same server or network as their main MT4 server or MT4 Data Centers. If the broker website is loaded, check the “News” section if there are any notifications or messages about any ongoing server maintenance.
If you cannot load your broker’s website, try to load another website just to see if your Internet connection is working.
B. Check MT4 Journal.
Many people never check the MT4 Journal tab at the bottom of MT4. Make sure you check the Journal tab for any error messages. A simple explanation might be printed here explaining why MT4 cannot connect.
Also, worth checking the Mailbox tab for messages that might explain connection problems.
C. Find out if it’s MT4 losing connection or your computer
You can run a test to find out if it’s just the MetaTrader terminal that loses connection with the broker server or if the problem is the Internet connection in general.
Open two “cmd” windows and run the “ping” command to check the connection to two different servers. The easiest way is to press CTRL+R, type cmd, and press ENTER/RETURN key.
Command 1: ping www.msn.com -t
Command 2: ping 78.140.160.55 -t
Tip: To stop these commands, press CTRL+C.
The first command will show if there’s a connection to the www.msn.com server, which is always online.
The second command will show if there’s a connection to one of the FxOpen Data Center servers. The IP address I use in the example was provided by FxOpen after I opened a live trading account with them.
Then, after you see MT4 disconnected, check whether the ping is responsive.
If the first “ping” command shows “Request timeout” or some other error, there’s no connection to the MSN server, which is very rare. This means there’s a problem with an Internet connection on your computer. Check your connection or contact your Internet Service Provider.
If the second “ping” command shows “Request timeout” or some other error, this particular broker server is not reachable for some reason. But if the first command runs okay, it is most likely not your Internet connection problem.
If the broker server is not reachable, MT4 might try to connect to another Data Center (if your broker has any). To speed up the process, try the steps I have explained earlier or contact broker technical support.
If you see both “ping” commands giving an error, then consider checking if there’s nothing wrong with the computer or VPS installation. For example, it might be a network card failure or software like Anti-Virus or Firewall broken or outdated.
D. Contact support.
If you are on a VPS server, contact your VPS hosting provider’s support team and tell them you’ve tried everything mentioned in this blog post. You can give them the address to this blog post so they will know exactly what you did to solve the problem yourself.
If you do not use VPS and have lost the MT4 connection on your home/office computer, I recommend contacting your Internet Service Provider. Maybe there is something wrong on their end. However, if you can browse the websites on the Internet, there is likely something wrong with your broker’s server. In that case, you should contact your broker.
Contacting Forex broker support
The fastest way to contact your Forex broker support team is to use Live Chat if they offer this option. You can speak or chat with one of their support members in minutes. Show them this blog post and let them know you’ve tried a number of things to solve this yourself with no luck.
Here’s the “Contact” page on the HotForex website.
On the right side, you can see an option to choose “Live Chat”. This is the fastest way to speak with someone from HotForex and possibly fix problems you have.
As you can see, there are other ways to contact them.
Is there any way to force MT4 to reconnect using MQL4?
I don’t think there is a way to reconnect using MQL4. At least I have not seen any MQL4 function we could use in a script or EA. It might be possible to tell the MT4 to reconnect using a custom-coded DLL library, but because the research and testing would take a lot of time, I haven’t tried that myself.
Monitoring connection with your broker MT4 server
You should ping their IP address if you want to detect even the smallest connectivity problems between your computer/VPS and your broker’s MT4 server.
For this, you will need to get an IP address of your MT4 server. You can get this from your broker. For example, HotForex gives this information when you open an account.
If you do not know the IP address of the MT4 server, you might ask your broker or find it yourself on your computer. Here’s a great article on how to test your broker’s latency, which also explains how to find the IP address of your MT4 server.
Conclusion
Next time you see the price is not moving and price charts are not updated on your MT4 platform, you will likely find the “No Connection” message at the bottom right corner. In such a case, use my 5 methods to re-connect and get your MT4 online again. Sometimes, a simple action can solve a big problem.
27 replies to "How to Fix Annoying MT4 connection problems (5 Ways)"
Hi RIMANTAS PETRAUSKAS,
I read your all stuff and it is really great information and i really appreciate.
God Bless you
take care
Ruhail Khan
Thanks, Ruhail 😉
Glad you like my work.
Regards,
Rimantas Petrauskas
Dear Rimantas,
This is a slightly different issue, but older vesions MT4 are very often made impossible to connect to the server, forcibly by Metaquotes as part of their business strategy.
Are there any ways to avoid this and keep connected while sticking to the older version ?
People sometimes have a reason for wishing to hold on to the older version of MT4 albeit recommendation to update by Metaquotes or each broker.
Appreciate your smart advice.
Regards,
Fairy
Hi, I don’t recommend to keep your Mt4 to old version, because it will just stop working sooner or later.
WOW! That’s a lot of hardwork you’ve done I am so amazed by this blog it was so good.
Regards
Harsh
Thanks
Tried everything and came up short… On a whim I selected open new account and all but my server were active. I scanned for servers twice and the second time it came back. I had tried several times to scan from the connection block below with no luck, but when scanning from the open new account dialogue box, it came back to life. Something to try if you have similar results.
Thanks for suggestion. Sounds like an odd thing to do, but if it helps then why not.
^^^^ thanks so much for that, mines did work when I tried that
Dear Rimantas,
since yesterday my demo account connects once but then there is no progress. The little diagram is green/read so that is fine but no data exchange. The figures say for example 3/0 kb. If I can then the server The figures are updated to 5/1 kb. Does it mean that just the connection pretty bad/slow? I also opened a new demo account twice, but same problem. Up to Wednesday everything was fine but now it´s not. Do you have any idea?
Thanks for any help.
Hi, I would contact broker. This does not seem normal if MT4 shows the connection exists, but you see no data exchange.
Thanks for your advice. But it is working again 🙂
Yeah, sometimes we just need patience until things fixes themselves 🙂
Good luck
My solution to this problem is:
1. Make a copy of your MT4 folder, when the program is running perfectly, esp. the config folder, which contains the server connectivity data.
2. When the “No connection” problem arises, replace the files in the config folder with the backed-up ones (ie. just overwrite them).
3. Restart the program.
ForceFollower
Good solution, but in case broker changed server IP you will not make MT4 connect and you would be doing disservice to yourself by deleting previous .srv files that possible already had new IP stored.
Wow this is great. After looking for options and trying to contact my broker, I landed on this page and tried the first method (re-scan servers) which worked pretty well and fast. now am back to trading.
Thanks for the info.
Glad it helped 😉
With all of your experience, which is astounding, do you actually trade manually or have you designed your own EA to trade for you and if so is it for sale to the public?
I am using only automated trading strategies. Some of them can be found at http://www.vavatrade.com
My issue is different ,i set my take profits and stop losses in the 15 minutes chart,the price reaches those take profit points and it does not stop out,market is volatile keeps going up and coming back to those take profit points but it still shows negatives,i try to refresh ,restart in vain .After an hour one trade is finally stopped out but two remain running yet price passed those take profit levels several times by the candles left behind.What do you think might be the cause of this??
Am so dissappointed with meta trader 4 yet its the only one i know how to use.
It’s probably brokers fault. Contact your broker.
Thank you for sharing these ways.
Your article solved my problems.
Thank you very much.
I have an interesting problem. I have MT4 on a broker supplied VPS. It opens fine and all appears well but often during the trading day I click on the screen to change a chart or time frame and find the chart to be asleep. 3-5 seconds later I get a black screen with a small message in the center: Reconnecting The connection has been lost. Attempting to connect, 1of 20. It always connects on the first attempt. Occasionally, MT4 does this whole process on it’s own as it seems to poll the system periodically. I see this happen 15-20 times per day and find it asleep 5-7 times per day when I click on the chart. All the times this has happened my Connection Status window is showing green over blue with no interruption and while the charts are unresponsive my data feed continues to work updating my Market Watch Window and chart prices as well as my open positions. I can see the action but cannot participate until after the re-connection. My non VPS MT4 application from the same broker runs fine at the same time on another computer. I do have another broker’s non VPS MT4 application running on the computer that has the above VPS application on it and that also runs fine continuously. No difference if I close the other broker’s application that running along side the VPS application. Re-logging into the VPS’ MT4 application does not stop the problem nor does rebooting the VPS. I was supposedly given a new VPS but I still have the same problem. Do you have any idea as to what may be happening here? Thank you
Looks like you simply have a bad VPS server from a bad provider. Switch to http://vpsforextrader.com for a better experience. We are using them for 5+ years with no trouble.
Wired, checked my internet connection and page MSN.com runs, but command window shows Request timed out, all the times
Note that it could that broker server is not accepting PING commands in which case you would see the timeout message. But this does not always mean the server is down. Contact your broker for more info.
Rimantas
I don’t even checked broker commands. Simply my net shows that I don’t have internet connection, while all works fine 🙂
My problem is that I’m pretty much often disconnected or hang out on my MT4 but it could be VSA relative volumen reasons which slows my platform very much.
Thanks
Bary