Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

How to connect IClient to dukascopy server through a proxy?
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57605
Page 1 of 1

Author:  blsck [ Tue 23 Feb, 2021, 02:41 ]
Post subject:  How to connect IClient to dukascopy server through a proxy?

I run a JForex API client in a server, this server can't directly connect to dukascopy server.
Does anyone know how can i connect the JForex API client to dukascopy server through a proxy?

Author:  API Support [ Thu 06 May, 2021, 16:34 ]
Post subject:  Re: How to connect IClient to dukascopy server through a proxy?

Greetings.

Set following system properties before calling IClient.connect():

System.setProperty("http.proxyHost", ...);
System.setProperty("http.proxyPort", ...);
System.setProperty("https.proxyHost", ...);
System.setProperty("https.proxyPort", ...);

Regards.

  Page 1 of 1