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

Help with proxy

no avatar
User

dromine

Help with proxy

by dromine » Wed May 25, 2005 12:02 am

Good morning, I searched the forums but didn't see this exact question being asked. I need to connect through a proxy server using SOCKS. I saw in the API documentation the two methods for SOCKS, but I didnt see how to actually invoke those for a connection. For instance..

FTPClient ftp = new FTPClient();
ftp.initSOCKS("80", "11.111.1.11");
ftp.initSOCKSAuthentication("user", "pswd");
ftp.connect();

The ftp.connect(); returns a null pointer. Can somone please tell me the correct syntax for making this type of connection?

- Thank you
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Help with proxy

by support2 » Wed May 25, 2005 12:37 am

At a minimum you need to specify the host you are logging into via setRemoteHost().

Who is online

Users browsing this forum: No registered users and 12 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign