java.net.ConnectException

Connection refused: connect

Samebug tips3

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

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13672

  • via Google Groups by Stephen Neal, 1 year ago
    Connection refused: connect java.net.ConnectException: Connection refused: connect
  • via Pentaho BI Platform Tracking by Golda David, 1 year ago
    Connection refused: connect Connection refused: connect
  • via Oracle Community by 431393, 8 months ago
    Connection refused: connect java.net.ConnectException: Connection refused: connect
  • Stack trace

    • java.net.ConnectException: Connection refused: 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 java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at test.main(ClientClass.java:15)

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 10 months ago
    18 times, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    765 more bugmates