Question : Java FTPSClient Connection timeout

I connect to localhost with Filzilla Server using ftps.. but when i try to connect to a remote host i got the connection timeout error.. i can see it never go out of my network...

part of the code is...
         try
            {
                int reply;
                InetAddress servidor = InetAddress.getByName(server);
                String algo = servidor.getHostAddress();
                  System.out.println("Trying to Connect to " + server + ". IP:" + algo);
                ftps.connect(servidor);
                System.out.println("Connected to " + server + ".");
                 // After connection attempt, you should check the reply code to verify
                // success.
                reply = ftps.getReplyCode();
                ftps.execPROT("P");
                if (!FTPReply.isPositiveCompletion(reply))
                {
                    ftps.disconnect();
                    System.err.println("FTP server refused connection.");
                    System.exit(1);
                }
            }
            catch (IOException e)
            {
                if (ftps.isConnected())
                {
                    try
                    {
                        ftps.disconnect();
                    }
                    catch (IOException f)
                    {
                        // do nothing
                    }
                }
                System.err.println("Could not connect to server.");
                e.printStackTrace();
                System.exit(1);
            }
Could not connect to server.
java.net.ConnectException: Connection timed out: connect

help..

Answer : Java FTPSClient Connection timeout

What is the exact error message. Have you downloaded Skype and saved it to your desktop? So each time you try to run the Skype installer program, you get the Windows installer error?

But yea post a screenshot of the error....I can't read your mind to get all the details.
Random Solutions  
 
programming4us programming4us