Access Denied to MT4 sock file

Posted By: Jezza96

Access Denied to MT4 sock file - 04/25/21 00:07

Hi everyone,

I recently moved over to a Contabo vps from Google and have installed a Darwinex MT4 terminal (in portable mode) and Zorro S 2.35. When I try to trade a strategy using the ZorroMT4.dll I get the following error:

test_connection compiling...........
Login 0 MT4/5..
!ZorroMT4.dll V4.26
!Access denied: C:\Users\ADMINI~1\AppData\Local\Temp\2\mt4sock032xxxxxxxxx.sys
!Check account type/number 2xxxxxxxxx
Can't connect!

I have looked at this file and the appropriate users have access (Administrator in this case). As well as uninstalled and reinstalled both Zorro and MT4. Any help in resolving this is greatly appreciated. I never ran into this issue with the Google vps.
Posted By: simonkrebs

Re: Access Denied to MT4 sock file - 04/25/21 08:00

Have you compared the account numbers (MT4 terminal + Zorro) you're logged in with? Needs to be logged in to the same account.

I had this issue several times in past as I'm using different demo accounts ..

Also what EA version are you using?

Attached picture Bildschirmfoto 2021-04-25 um 09.57.07.png
Posted By: Jezza96

Re: Access Denied to MT4 sock file - 04/25/21 23:11

Hi Simon thanks for getting back to me. I am definitely logged into the correct account in the MT4 terminal and the accounts.csv file for Zorro is using the correct account number. The Zorro EA version is 2.11
Posted By: simonkrebs

Re: Access Denied to MT4 sock file - 04/26/21 08:21

Hi Jezza, I just compared to my file structure and was wondering about the "2" in your folder name. Did you compare the file/folder to your old VPS?

I ran that kind of setup you described (MT4 portable mode with EA 2.11 + Zorro 2.35) on different providers without a problem.

Attached File
Posted By: Jezza96

Re: Access Denied to MT4 sock file - 04/26/21 08:50

Hi Simon. In both cases, on my old google vps and my new contabo vps, mt4sock.sys file exists in both AppData/Local/Temp and AppData/Local/Temp/2. The google vps was running Zorro EA 2.09.
Posted By: jcl

Re: Access Denied to MT4 sock file - 04/26/21 14:59

Maybe the .sys file is locked or otherwise inaccessible on your PC. Close MT4 and Zorro, then delete that file manually and start again.
Posted By: Jezza96

Re: Access Denied to MT4 sock file - 04/27/21 09:28

Hi jcl, unfortunately deleting the file and starting again did not resolve the issue.
Posted By: Jezza96

Re: Access Denied to MT4 sock file - 04/30/21 09:56

Over the last couple of days I have tried a completely fresh OS install of the vps and using an Oanda MT4 terminal instead of a Darwinex terminal but I still get an Access Denied error to the MT4sock file...
Posted By: AndrewAMD

Re: Access Denied to MT4 sock file - 04/30/21 10:10

Is MT4 still in “portable mode”? Try installing it instead.
Posted By: qomposer

Re: Access Denied to MT4 sock file - 08/22/21 13:25

Hi @Jezza96 - I received the same error. I resolved this by making sure that the Zorro EA was attached to the chart of the symbol I wanted to trade first in MT4/5 and then clicked trade in Zorro. Hopefully that helps.
Posted By: DavidB1969

Re: Access Denied to MT4 sock file - 10/24/21 11:05

I had the same error. Triple checked the accounts.csv file. Turned out the "1"for live account was in the wrong column. Correcting this solved the issue.
© 2024 lite-C Forums