java.net.ConnectException: Connection timed out: connect

Coderanch | Vinod Vinu | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Graph problem java directed - Java Programming - KnowCoding.com

    knowcoding.com | 1 year ago
    java.net.ConnectException: Connection timed out: connect
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

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.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(Unknown Source)
    3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.PlainSocketImpl.connect(Unknown Source)
    5. java.net.SocksSocketImpl.connect(Unknown Source)
    6. java.net.Socket.connect(Unknown Source)
    6 frames
  3. Java JSSE
    BaseSSLSocketImpl.connect
    1. com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    2. com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    2 frames
  4. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:284)
    2. com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:201)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1672)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525)
    4 frames
  5. JavaMail API
    Service.connect
    1. javax.mail.Service.connect(Service.java:291)
    2. javax.mail.Service.connect(Service.java:172)
    2 frames
  6. Java EE Connector Architecture API Specification
    SendMail.main
    1. sample.SendMail.sendMail(SendMail.java:76)
    2. sample.SendMail.main(SendMail.java:24)
    2 frames