Download MetaTrader 5

MetaTester 5 Agents Manager using wrong network

To add comments, please log in or register
Articles can help you to solidify your knowledge. Come and read them!
Havenard
33
Havenard 2015.06.26 23:30 

I'm trying to use the the MetaTester 5 Agents Manager on a server for local use, however, I have several local and virtual network adapters on this server, including two VPNs.

The Agents Manager is binding the agents to the IP address of one of the VPNs instead of binding it to the actual local network where I wish to use it, and naturally I'm unable to connect to the agents from my local network.

The program doesn't seem to offer me means to select what network I want it to open the ports to. Any idea how to workaround this problem?

Alain Verleyen
Moderator
30739
Alain Verleyen 2015.06.26 23:35  
Havenard:

I'm trying to use the the MetaTester 5 Agents Manager on a server for local use, however, I have several local and virtual network adapters on this server, including two VPNs.

The Agents Manager is binding the agents to the IP address of one of the VPNs instead of binding it to the actual local network where I wish to use it, and naturally I'm unable to connect to the agents from my local network.

The program doesn't seem to offer me means to select what network I want it to open the ports to. Any idea how to workaround this problem?

The agents are not bound to a specific address. You just have to configure your firewall to all access to your local IP/port.
Havenard
33
Havenard 2015.06.26 23:55  
Alain Verleyen:
The agents are not bind to a specific address. You just have to configure your firewall to all access to your local IP/port.

Yes they are, but nevermind I just figured out myself how to do it, I'll leave it here in case someone else needs it.


Open Agents Manager, Stop and Uninstall all agents.

Open command prompt and go to the MetaTester 5 Agents Manager installation folder (cd "C:\Program Files\MetaTrader 5 Strategy Tester")

Run the commands:

MetaTester64.exe /install /password:MetaTester /start /address:192.168.0.1:2000
MetaTester64.exe /install /password:MetaTester /start /address:192.168.0.1:2001
MetaTester64.exe /install /password:MetaTester /start /address:192.168.0.1:2002 ...

One for each CPU Thread you have (or as many as you want to use), while specifying the correct network IP address you want them to bind to or binding to IP 0.0.0.0 to have them work on all networks interfaces.

Once they are installed with the correct IP address they will bind to the same address again even if restarted.

Alain Verleyen
Moderator
30739
Alain Verleyen 2015.06.27 00:22  
Havenard:

Yes they are, but nevermind I just figured out myself how to do it, I'll leave it here in case someone else needs it.


...

Thanks. But by default the agents are not bound to a specific address when you install them via the Setup program.
To add comments, please log in or register