Miguel Angel - 2011-05-10

I connect to a ftp server with this line of code:

        JSch jsch = new JSch();
        jsch.setLogger(new LogConexionFTP());
        Session session = null;
        try {
            session = jsch.getSession(Constants.SERVIDOR_FTP_USUARIO, Constants.SERVIDOR_FTP_DEFAULT,
                                    22);
            session.setConfig("StrictHostKeyChecking", "no");
            session.setPassword(Constants.SERVIDOR_FTP_CLAVE);
            session.connect();
        } catch (JSchException e) {
            e.printStackTrace();
        }

I add my ip to the host file of the server. I was connecting successfully and it take 1 second to connect.
But now it takes about 1 minute to connect. Why could be the problem??