Proxy Authentication Failed error

askarad

New Member
I'm trying to access an FTP server through an FTP SITE Proxy using \[code\]it.sauronsoftware.ftp4j.FTPClient\[/code\] I know my username/password is correct. I tried using \[code\]Authenticator\[/code\], but it has no use. Code:\[code\]import java.net.Authenticator;import it.sauronsoftware.ftp4j.FTPClient;import it.sauronsoftware.ftp4j.connectors.FTPProxyConnector;FTPClient client = new FTPClient(); FTPProxyConnector connector = new FTPProxyConnector("host", port); client.setConnector(connector); Authenticator.setDefault(new Authenticator() { @Override public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("user", "pass".toCharArray()); }}); System.setProperty("ftp.proxyHost", "host"); System.setProperty("ftp.proxyPort", "port"); System.setProperty("ftp.proxyUser", "user"); System.setProperty("ftp.proxyPass", "pass"); System.out.println("Proxy Accessed"); client.connect("FTPHOST"); client.login("FTPUSER", "FTPPASS");\[/code\]Gives me this error: \[code\]java.io.IOException: Proxy authentication failed\[/code\]Note: The FTP Proxy Connector - http://www.sauronsoftware.it/projec...tware/ftp4j/connectors/FTPProxyConnector.html
 
Back
Top