powered by Jive Software

Openfire connect from android

android

#1

hi all,
i am trying to connect or login from my android emulator to openfire service. but i cant login.
every time i get smack exception 'SMACKException: The following addresses failed: ‘192.168.0.9:5223’
Please help me to solve out my problem i setup openfire through tutorial
tutorial
i use this following code

private void initialiseConnection() {
XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration
.builder();
config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
config.setServiceName(serverAddress);
config.setHost(serverAddress);
config.setPort(5223);
config.setDebuggerEnabled(true);
XMPPTCPConnection.setUseStreamManagementResumptiodDefault(true);
XMPPTCPConnection.setUseStreamManagementDefault(true);
connection = new XMPPTCPConnection(config.build());

    XMPPConnectionListener connectionListener = new XMPPConnectionListener();
    connection.addConnectionListener(connectionListener);
    PingManager pingManager = PingManager.getInstanceFor(connection);
    pingManager.registerPingFailedListener(this);
    manager = FileTransferManager.getInstanceFor(connection);
    manager.addFileTransferListener(new FileTransferIMPL());
    FileTransferNegotiator.getInstanceFor(connection);
}

#2

Please provide more information (stacktrace, stanza logs of client, error messages on server side…).


#3

@Paul_Schaub from where i can find this log detail?