Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

ck4ever

Posts

1

Joined

Tue Sep 16, 2008 1:36 am

Connect to a FTP Server that behind a proxy server

by ck4ever » Tue Sep 16, 2008 1:44 am

Hi,

I'm trying to create a custom FTP client using edtFTPj/free, to connect to a FTP Server that is locating behind a Proxy server. I used FTPClient.initSOCKS, and FTP.initSOCKSAuthentication, but no avail. I was able to connect to the FTP server, but when comes to Authenticate to Proxy server, I was not able to.

FTP.initSOCKS("21","proxyserver");
FTP.initSOCKSAuthentication("proxyID@proxyserver fireID","password");
this.client = new FTPClient();
this.client.setRemoteHost(this.host);
this.client.setRemotePort(this.port);
this.client.setTimeout((int)Delay.SLEEP_MINUTE * 2);
this.client.connect();
this.client.login(this.username, this.password);

Anyone with any suggestion would be great.

Thanks
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Connect to a FTP Server that behind a proxy server

by support2 » Tue Sep 16, 2008 6:47 am

Do you know what kind of proxy server it is? Can you connect with Filezilla?

Who is online

Users browsing this forum: No registered users and 14 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign