Running IrisClassifier behind a proxy: "Connection refused: no further information"

Hi, I’m a newbie in Deepleaning4Java.

At home (without a proxy), the IrisClassifier module runs fine: the DownloaderUtility actually downloads correctly the IrisData.zip file.

Adversely, the IrisClassifier module meets the following error when trying to download the same training file behind a proxy server:

  Exception in thread "main" java.net.ConnectException: Connection refused: no further information
       [...]
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
	at org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:1055)
	at org.nd4j.common.resources.Downloader.lambda$downloadAndExtract$1(Downloader.java:129)
	at org.nd4j.common.resources.Downloader.doOrWait(Downloader.java:197)
	at org.nd4j.common.resources.Downloader.downloadAndExtract(Downloader.java:125)
	at org.nd4j.common.resources.Downloader.downloadAndExtract(Downloader.java:120)
	at org.nd4j.common.resources.Downloader.downloadAndExtract(Downloader.java:101)
	at org.deeplearning4j.examples.utils.DownloaderUtility.Download(DownloaderUtility.java:118)
	at org.deeplearning4j.examples.utils.DownloaderUtility.Download(DownloaderUtility.java:99)
	at org.deeplearning4j.examples.quickstart.modeling.feedforward.classification.IrisClassifier.main(IrisClassifier.java:63)

In IntelliJ, I put in the manual proxy settings the right data (hostname, port number, login and pwd) and the ‘Check connection’ run successfully (File/Settings/Appearance & Behavior/System Settings/HTTP Proxy).

Would you know what needs to be done to overcome this issue (e.g. can the DownloaderUtility be modified to receive the proxy as parameters)? The same issue affects all other examples when the execution requires to download a data file.

I skimmed thru the community but with no avail.

Thanks for sharing your experience.

Solved.

In IntelliJ, I right clicked on ‘Modify Run Configuration…’, then on ‘Modify options’, selected ‘Add VM option’, which then appeared in the box. I thus put -Dhttp.proxyHost=ADDRESS -Dhttp.proxyPort=PORT -Dhttp.proxyUser=USER -Dhttp.proxyPassword=PWD -Dhttps.proxyHost=ADDRESS -Dhttps.proxyPort=PORT -Dhttps.proxyUser=USER -Dhttps.proxyPassword=PWD in the VM option.

@lbonansbrux thanks for replying with the answer. Sorry none of that was really specific to the framework. All I could think of would have been to mirror the dataset internally or something. Iris itself is only a 150 row csv.