Try port 21. That or maybe the server is only configured for implicit ssl.
----- Original Message -----
From: "Chetan" <[email protected]>
To: <[email protected]>
Sent: Tuesday, April 07, 2009 10:59 PM
Subject: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection
closed without indication
Hi,
I am trying to establish a FTPS connection to a server using username and
password.
I am getting
Just before connection
Could not connect to server.
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed
without indication.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:364)
at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:540)
at
org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:167)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:178)
at com.accenture.ftps.trail.FTPSExample.main(FTPSExample.java:93)
When I try to make the connection.
Here is the code snippet that I am using
ftps = new FTPSClient(protocol,false);
ftps.addProtocolCommandListener(new PrintCommandListener(new
PrintWriter(System.out)));
try
{
int reply;
System.out.println("Just before connection");
ftps.connect(server,990);
System.out.println("Connected to " + server + ".");
Here is the filezilla message
220-FileZilla Server version 0.9.31 beta
220-written by Tim Kosse ([email protected])
220 Please visit http://sourceforge.net/projects/filezilla/
421 Login time exceeded. Closing control connection.
Can some one help.
Thanks
Chetan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]