java.net.ConnectException

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.


rafael
tip

Check if your MongoDB is available.


rp
tip

host port isnt set

tip

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.


rafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafael
tip

spring-data-redis requires redis 2.6+ to work properly.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • JBoss Community / Mailing Lists
    via by Unknown author,
    • java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA6275) at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA6275) at sun.net.www.http.HttpClient.openServer(HttpClient.java:402) at sun.net.www.http.HttpClient.openServer(HttpClient.java:618) at sun.net.www.protocol.https.HttpsClient.<init>(DashoA6275) at sun.net.www.protocol.https.HttpsClient.a(DashoA6275) at sun.net.www.protocol.https.HttpsClient.a(DashoA6275) at sun.net.www.protocol.https.HttpsClient.a(DashoA6275) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConnect(DashoA6275) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA6275) at edu.yale.its.tp.cas.util.SecureURL.retrieve(Unknown Source)

    Users with the same issue

    ivanszkypeter
    17 times, last one,
    Casper
    1 times, last one,
    Eric
    1 times, last one,
    treefolk
    1 times, last one,
    Andreas Häber
    9 times, last one,
    478 more bugmates