SMACKException: Aşağıdaki adresler başarısız oldu: 'localhost: 5222' başarısız java.net.ConnectException çünkü: 30000ms sonra/localhost'a 127.0.0.1 (bağlantı noktası 5222) bağlanmak için başarısız oldu:Smack istemcisi Android ile Ejabberd bağlantısı nasıl yapılır?
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);
ECONNREFUSED (Bağlantı reddedildi): IsConnected başarısız
Lütfen bana yardım edin. Teşekkürler