Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert 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.

  2. ,
    via GitHub by rawlingsj

    host port isnt set

Solutions on the web

via Google Groups by stephen...@sap.com (JIRA), 1 year ago
via Stack Overflow by Bob Samadi
, 2 years ago
via Apache's JIRA Issue Tracker by Patrick Kleindienst, 1 year ago
Connection refused (Connection refused)
via openas2 by santosh-vjit
, 6 months ago
Connection refused (Connection refused)
java.net.ConnectException: Connection refused	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:579)	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:635)	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)	at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:977)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1302)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)	at com.mojang.launcher.Http.performGet(Http.java:54)	at net.minecraft.launcher.updater.RemoteVersionList.getContent(RemoteVersionList.java:60)	at net.minecraft.launcher.updater.RemoteVersionList.refreshVersions(RemoteVersionList.java:42)	at net.minecraft.launcher.updater.MinecraftVersionManager.refreshVersions(MinecraftVersionManager.java:62)	at net.minecraft.launcher.Launcher$2.run(Launcher.java:133)	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)