java.net.ConnectException: Connection timed out: connect

Stack Overflow | Angelina | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0

    FTPClient connection timeout/failed while trying to upload file

    Stack Overflow | 7 months ago | Angelina
    java.net.ConnectException: Connection timed out: connect
  2. 0

    Java FTP connection timed out

    Stack Overflow | 2 years ago | user4490680
    java.net.ConnectException: Connection timed out: connect
  3. 0

    unable to upload a file onto the ftp sever using FPSClient

    Stack Overflow | 6 months ago | Dany Lavrov
    java.net.ConnectException: Connection timed out: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Your firewall blocks the connection, disable it.
  6. 0
    samebug tip
    Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.

  1. osvzs 1 times, last 3 days ago
  2. Pilleo 1 times, last 4 days ago
  3. batwalrus76 2 times, last 6 days ago
  4. Dunmer 1 times, last 7 days ago
  5. johnxfly 5 times, last 2 weeks ago
59 more registered users
36 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    3. java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    5. java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    6. java.net.PlainSocketImpl.connect(Unknown Source)
    7. java.net.SocksSocketImpl.connect(Unknown Source)
    8. java.net.Socket.connect(Unknown Source)
    8 frames
  3. Commons Net
    FTPClient.storeFile
    1. org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:924)
    2. org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:657)
    3. org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:643)
    4. org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:2033)
    4 frames
  4. mil.dla.daps
    FTPFunctions.main
    1. mil.dla.daps.ftp.FTPFunctions.uploadFTPFile(FTPFunctions.java:60)
    2. mil.dla.daps.ftp.FTPFunctions.main(FTPFunctions.java:121)
    2 frames