Timeout and Shoutdown error on VPS Server but not at Home PC

 

I have write me a EA wich use Windows Wininet function to send FTp and read files from internet, at my Home PC everythink work good, but when i want to use it on a Windows VPS Server i get always timeout ans shoutdown error. And my VPS Hoster say i must ask the MetaTrader Developer it is not in his Support.

I dont know now where the problem is and how to avoid, because at my PC it works, just on the VPS it make that problem.

 
Firewall settings on the VPS?
 
Firewall is activated, how must the setting be that it work fine?
 
i just dont know why the MT makes that timeout and not run on the vps server but at my laptop/pc
 
PlanandTrade:
i just dont know why the MT makes that timeout and not run on the vps server but at my laptop/pc
Have you tried a FTP client on your VPS ? can it upload and download OK ?
 
I would turn off the local Windows Firewall - to start....usually the firewall settings cause issues like these ( Like what WHRoeder mentioned).
 
RaptorUK:
Have you tried a FTP client on your VPS ? can it upload and download OK ?


when i install the FTP Programm filezilla there is no problem with FTP.


I am not sure if this has to do with firewall, because if that would be a message from the firewall appear where you can allow or not allow access, but in my case the MT4 just make a shoutdown and timeout error, it does not look like somethink from firewall. this timeout error is anyway not good enough explained when it come and how to avoid it.

 
PlanandTrade:

when i install the FTP Programm filezilla there is no problem with FTP.


I am not sure if this has to do with firewall, because if that would be a message from the firewall appear where you can allow or not allow access, but in my case the MT4 just make a shoutdown and timeout error, it does not look like somethink from firewall. this timeout error is anyway not good enough explained when it come and how to avoid it.

You need to find out what is causing MT4 to shutdown, perhaps you can use something like Microsoft Sysinternals Process Explorer and Process Monitor to investigate . . . it's not a simple task or a quick one unless you know what you are doing: http://technet.microsoft.com/en-gb/sysinternals/bb896653.aspx
 
RaptorUK:
You need to find out what is causing MT4 to shutdown, perhaps you can use something like Microsoft Sysinternals Process Explorer and Process Monitor to investigate . . . it's not a simple task or a quick one unless you know what you are doing: http://technet.microsoft.com/en-gb/sysinternals/bb896653.aspx


When i delete the call from HTTPGET functions in the EA, then it does run without that error, so the problem comes from importing and using this HTTPGet function wich i have from this site: https://www.mql5.com/en/code/10121


Maybe when i use other functions or programms wich can make a HTTPGet then the MetaTrader dont get the timeout error anymore, but wich other can i use?

 
PlanandTrade:

When i delete the call from HTTPGET functions in the EA, then it does run without that error, so the problem comes from importing and using this HTTPGet function wich i have from this site: https://www.mql5.com/en/code/10121


Maybe when i use other functions or programms wich can make a HTTPGet then the MetaTrader dont get the timeout error anymore, but wich other can i use?


The wininet.dll is quite a good solution for the http request (though your first post mentions the ftp), and you may set the timeout for the request. But I am afraid the https://www.mql5.com/en/code/10121 is not a good example how to use it properly. Google the Microsoft sites for examples or find more reliable solution on other MQL-related sites.
Reason: