Hi Everybody
I am trying to build an XMPP client for android. I'm using Smack API
i installed OpenFire Server on my computer
ConnectionConfiguration config = new
ConnectionConfiguration("localhost", 5222);
config.setCompressionEnabled(true);
config.setSASLAuthenticationEnabled(true);
XMPPConnection xmppcon = new XMPPConnection(config);
try {
xmppcon.connect();
Log.v(TAG, "CONNECTED TO SERVER");
} catch (XMPPException e) {
Log.v(TAG, "NOT CONNECTED. " + e.fillInStackTrace());
Log.v(TAG, "NOT CONNECTED MESSAGE. " + e.getMessage());
e.printStackTrace();
i got a this error
V/JABBER-------( 268): NOT CONNECTED. XMPPError connecting to
127.0.0.1:5222.: remote-server-error(502) XMPPError connecting to
127.0.0.1:5222.
V/JABBER-------( 268): -- caused by: java.net.ConnectException: /
127.0.0.1:5222 - Connection refused
Help me pls
Regards
Tsolmon
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en