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.

  • Java FTP connection timed out
    via Stack Overflow by user4490680
    ,
  • REST call inside proxy
    via Stack Overflow by chiru
    ,
  • Paypal HttpHostConnectException
    via Stack Overflow by Popeye
    ,
  • HttpsURLConnection: Connection Timed out error
    via by Unknown author,
  • grails mail service
    via Stack Overflow by tibortru
    ,
    • java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:924) at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:657) at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:643) at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:2033) at mil.dla.daps.ftp.FTPFunctions.uploadFTPFile(FTPFunctions.java:60) at mil.dla.daps.ftp.FTPFunctions.main(FTPFunctions.java:121)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    976 more bugmates