working on a VPS. Is it possible to write and then see the log?
My advisor writes a text log file that is stored in the appropriate place in the platform directory.
When we migrate to VPS I understand that I will not see any of this anymore? because there is no access to this VPS. Do I understand correctly? and can someone tell me an alternative?
There is also a second question about VPS – in normal mode, the Expert Advisor changes the value of the label on the screen during operation and then looks at whether it has been changed. Will this work on a VPS?
working on a VPS. Is it possible to write and then see the log?
Share
alximiks
1) The provider must provide you with a personal external ip.
2) Since you are connected via a router, this ip is received by your router, and your PC connects to the router in a completely different network and is not easily accessible from outside (you are behind NAT).
3) In order for your PC to be accessible from outside, you need to register “Forwarding” in the router settings, so that when accessing your external ip and remote port, the router will forward packets to the internal network (to the IP address of your PC and the port of the FTPServer, usually 20-21).
4) I almost forgot, you still need to check whether the ports for the FTPServer are added to the exceptions for the Firewall on the PC, since some ftpservers do not do this for some reason.
whatcan
I took advantage of your recommendations – I send the file via ftp. The adviser is still on my computer sends a file via FTP and I get it and can open it.
However, after the migration, it stops working.
When the EA is on my computer the settings are like in the picture
is it correct to register the FTPServer instead of localhost after migration –
ftp://78.85.х.ххх/ (my router’s address is my external ip)?
alexeyvik
So there is an example in the documentation…
whatcan
Thanks! a little clearer! And on the second question on labels will work on them? …well, apparently yes, since everything is duplicated on the VPS
laryx
My ADVISER writes logs to separate files, works on the VPS – no problems. All logs are normally recorded, then transferred to the local computer, if necessary, studied.
barabashkakvn
1. When migrating, to drag your file, you need to use the directive in the Expert Advisor
#property tester_file
2. You can see your log file created by your Expert Advisor only if your Expert Advisor sends it via ftp.