Results 1 to 2 of 2
  1. #1
    sagngh8 is offline Member
    Join Date
    Nov 2010
    Posts
    6
    Rep Power
    0

    Default Unable to connect to ftp server java

    Hi Everyone

    Please help me guys.
    I should be able to successfully send and receive file to/from FTP server.

    But then, no changes occurred in the code and I started getting this :

    Error: java.net.ConnectException: Connection timed out: connect

    What I am doing is:

    FTPClient ftp = new FTPClient();

    ftp.connect( IPADDRESS of FTP server);

    connect() is giving this execption. I am not understanding the cause for it.

    Early reply is priceless

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    the end point address is changed, it was a dynamic ip and the lease expired and it renewed to something else?

    the remote system no longer accepts input for ftp service, they are down, or are filtering you.

    your isp is now filtering ftp traffic.

    try to use some other ftp client to see if this can connect to this remote server (e.g. that is different from your java application).

Similar Threads

  1. Java to connect remote server
    By idealguy in forum New To Java
    Replies: 1
    Last Post: 12-14-2010, 11:40 AM
  2. Replies: 4
    Last Post: 09-07-2010, 06:51 AM
  3. Replies: 3
    Last Post: 03-28-2010, 06:55 AM
  4. I m unable to connect one frame 2 the other
    By ankitraghuvanshi in forum NetBeans
    Replies: 2
    Last Post: 10-23-2008, 02:24 AM
  5. connect to web server from mobile using java app.
    By jankrishnan in forum Advanced Java
    Replies: 1
    Last Post: 07-15-2008, 04:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •