Network Functions 4014 error
I am using windows 10, I have 2 laptops and i tried on both and got the same error
Connection address should be added to the list of allowed ones on the client terminal side (Tools \ Options \ Expert Advisors).
So, in MetaTrader Tools\Options\Expert Advisors, add 127.0.0.1 to the Allow WebRequest for listed URL.
- www.mql5.com
The function can be called only from Expert Advisors and scripts, as they run in their own execution threads. If calling from an indicator, GetLastError() returns the error 4014 – "Function is not allowed for call".
You need only add socket server address into "Allow WebRequest for listed URL" (Tool-> Option -> Expert Advisors)
- www.mql5.com
I'm new to working with network function, I'm trying to create a simple client server connection between a python app and MQL5 following this tutorial https://www.mql5.com/en/articles/5691. I read the docs of networks functions again and i saw that you get this error if you call the network function from anything other than a script or EA. But this does not make since because i'm using an ea, here is a sample, code fails at: with 4014 error