java.net.ConnectException

Connection refused: connect

Samebug tips3

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


rafaelrafael

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

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

Solutions on the web1085

  • Stack trace

    • java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:337) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:198) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) at sun.net.www.http.HttpClient.openServer(HttpClient.java:483) at sun.net.www.http.HttpClient.<init>(HttpClient.java:213) at sun.net.www.http.HttpClient.New(HttpClient.java:300) at sun.net.www.http.HttpClient.New(HttpClient.java:316) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:992) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846) at jsystem.utils.UploadRunner.validateUrl(UploadRunner.java:107) at jsystem.treeui.TestTreeView.validateUrl(TestTreeView.java:691) at jsystem.treeui.TestTreeView.validateUrl(TestTreeView.java:698) at jsystem.treeui.TestTreeView.refreshOpenReportsButton(TestTreeView.java:721) at jsystem.treeui.TestTreeView.createToolBar(TestTreeView.java:451) at jsystem.treeui.TestTreeView.<init>(TestTreeView.java:214) at jsystem.treeui.TestRunner.startRunner(TestRunner.java:152) at jsystem.framework.launcher.Launcher2.run(Launcher2.java:78) at jsystem.framework.launcher.Launcher2.main(Launcher2.java:31)

    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

    marcbouvierdavmarcbouvierdav
    Once,
    osvzsosvzs
    Once,
    Victor_ITVictor_IT
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    731 more bugmates