SMACKException: Die folgenden Adressen fehlgeschlagen: 'localhost: 5222' schlug fehl, weil java.net.ConnectException: versagte nach 30000ms localhost/127.0.0.1 (Port 5222) verbinden: isConnected fehlgeschlagen: ECONNREFUSED (Verbindung verweigert)Wie man Ejabberd Verbindung mit Smack Client Android machen?
XMPPTCPConnectionConfiguration.Builder config =
XMPPTCPConnectionConfiguration
.builder();
config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
config.setServiceName("localhost");
config.setHost("localhost");
config.setPort(5222);
config.setDebuggerEnabled(true);
XMPPTCPConnection.setUseStreamManagementResumptiodDefault(true);
XMPPTCPConnection.setUseStreamManagementDefault(true);
connection = new XMPPTCPConnection(config.build());
XMPPConnectionListener connectionListener = new
XMPPConnectionListener();
connection.addConnectionListener(connectionListener);
Bitte helfen sie mir darauf. Vielen Dank im Voraus