org.jivesoftware.smack.SmackException$ConnectionException

The following addresses failed: 'kontalk.halifax.rwth-aachen.de:5222' failed because java.net.ConnectException: kontalk.halifax.rwth-aachen.de/137.226.111.112:5222 - Connection refused


Solutions on the web13

Solution icon of github
The following addresses failed: 'kontalk.halifax.rwth-aachen.de:5222' failed because java.net.ConnectException: kontalk.halifax.rwth-aachen.de/137.226.111.112:5222 - Connection refused

Solution icon of github
The following addresses failed: 'kontalk.halifax.rwth-aachen.de:5222' failed because java.net.ConnectException: failed to connect to kontalk.halifax.rwth-aachen.de/137.226.111.112 (port 5222) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)

Solution icon of stackoverflow
The following addresses failed: 'localhost:5222' failed because java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 5222) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)

Solution icon of github
The following addresses failed: 'siuyinjanice.ddns.net:5222 prio:10:w:0' failed because java.net.ConnectException: failed to connect to siuyinjanice.ddns.net/210.6.73.9 (port 5222) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused

Solution icon of stackoverflow
via Stack Overflow by Calcutta
, 5 months ago
The following addresses failed: 'adastra.re:5222' failed because android.os.NetworkOnMainThreadException

Solution icon of github
The following addresses failed: '...:5222' failed because java.net.ConnectException: Bad file descriptor

Solution icon of stackoverflow
The following addresses failed: myapp.ddns.net:5222 Exception: null

Solution icon of stackoverflow
The following addresses failed: '192.168.0.31:5222' failed because java.net.SocketException: socket failed: EACCES (Permission denied)

Solution icon of stackoverflow
via Stack Overflow by Spierki
, 1 year ago
The following addresses failed: '192.168.57.100:5222' failed because java.net.ConnectException: failed to connect to /192.168.57.100 (port 5222) after 30000ms: isConnected failed: EHOSTUNREACH (No route to host) W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:596)

Solution icon of github
via GitHub by tahatauqeer
, 8 months ago
The following addresses failed: 'taha:5222' failed because java.net.SocketException: failed to connect to taha/192.168.1.4 (port 5222) after 30000ms: isConnected failed: EHOSTUNREACH (No route to host)

Stack trace

  • org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: 'kontalk.halifax.rwth-aachen.de:5222' failed because java.net.ConnectException: kontalk.halifax.rwth-aachen.de/137.226.111.112:5222 - Connection refused at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:192) at org.kontalk.service.XMPPConnectionHelper.connectOnce(XMPPConnectionHelper.java:141) at org.kontalk.client.NumberValidator.initConnection(NumberValidator.java:478) at org.kontalk.client.NumberValidator.run(NumberValidator.java:201)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.