dcsimg
Socks support in Java1.2
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gary_crawford
Posted On:   Tuesday, June 19, 2001 12:44 AM

I would like to ftp from one of our Compaq Tru64 manchines to the outside world via MS proxy 2.0. I'm using the netcomponents ftp library and have set the socksProxyHost etc. I seem to be able to make the control connection but the data connection fails. The debug I get out look like this:- DEBUG: Remote system is UNIX Type: L8 DEBUG: getFiles() des.exe|des.exe DEBUG: setRemoteFiles() des.exe setRemoteFiles: Caught IOException com.oroinc.net.ftp.FTPConnectionClosedException: Connection closed without indic ation. at com.oroinc.net.ftp.FTP.__getReply(FTP.java, Compiled Code) at com.oroinc.net.ftp.FTP.sendCommand(FTP.java, Compile   More>>

I would like to ftp from one of our Compaq Tru64 manchines to the outside world via MS proxy 2.0.

I'm using the netcomponents ftp library and have set the socksProxyHost etc.
I seem to be able to make the control connection but the data connection fails.

The debug I get out look like this:-

			
DEBUG: Remote system is UNIX Type: L8
DEBUG: getFiles() des.exe|des.exe
DEBUG: setRemoteFiles() des.exe
setRemoteFiles: Caught IOException
com.oroinc.net.ftp.FTPConnectionClosedException: Connection closed without indic
ation.
at com.oroinc.net.ftp.FTP.__getReply(FTP.java, Compiled Code)
at com.oroinc.net.ftp.FTP.sendCommand(FTP.java, Compiled Code)
at com.oroinc.net.ftp.FTP.sendCommand(FTP.java, Compiled Code)
at com.oroinc.net.ftp.FTP.port(FTP.java, Compiled Code)
at com.oroinc.net.ftp.FTPClient.__openDataConnection(FTPClient.java, Com
piled Code)
at com.oroinc.net.ftp.FTPClient.listNames(FTPClient.java, Compiled Code)
at gary.javaftp.setRemoteFiles(javaftp.java, Compiled Code)

Can anyone tell me if what I am trying to do is possible!
Thanks


Gary
   <<Less

Re: Socks support in Java1.2

Posted By:   gary_crawford  
Posted On:   Tuesday, June 19, 2001 09:38 AM

Managed to get this working myself!
I added

ftp.enterLocalPassiveMode();

after I have connected

ftp being a subclass of the Netcomponents FTPClient class

Gary
About | Sitemap | Contact