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.


rafaelrafael
tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

tip

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


rafaelrafael
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.


rafaelrafael
tip

Check if your MongoDB is available.


rprp
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

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
    ,
  • GitHub comment 38#195716223
    via GitHub by admizh
    ,
  • Question on Creating Bot
    via GitHub by timyip3
    ,
    • java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:924) at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:627) 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 FTP.FTP_connector.uploadFile(FTP_connector.java:113)

    Users with the same issue

    ivanszkypeterivanszkypeter
    17 times, last one,
    CasperCasper
    1 times, last one,
    tfrtfr
    2 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    977 more bugmates