java.net.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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

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

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.

  • GitHub comment 3189#200407713
    via GitHub by deepu105
    ,
  • Exception and throwable not being caught
    via Stack Overflow by Arya
    ,
  • GitHub comment 62#144899449
    via GitHub by ziploc1010
    ,
  • Can't run cassandra stress tool
    via Stack Overflow by user3726031
    ,
  • Cannot HTTPS IPT instance
    via GitHub by dbaars
    ,
    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)[na:1.8.0_91] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[na:1.8.0_91] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[na:1.8.0_91] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[na:1.8.0_91] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[na:1.8.0_91] at java.net.Socket.connect(Socket.java:589)[na:1.8.0_91] at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)[httpclient-4.5.2.jar:4.5.2] at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)[httpclient-4.5.2.jar:4.5.2]

    Users with the same issue

    Unknown visitor1 times, last one,
    batwalrus76
    4 times, last one,
    raytest
    2 times, last one,
    musketyr
    1 times, last one,
    bernardpaulus
    2 times, last one,
    479 more bugmates