Issue with establishing Openfire XMPP Connection Android on live server via Asmack -


issue establishing openfire xmpp connection android on live server via asmack . unable establish connection server. same code working fine when point on localhost issue occurs when pointed on live server.

exception caught while establishing connection : connection failed. no response server

xmppconfig = new connectionconfiguration(constants.xmpp_base_url, constants.xmppp_port,constants.xmpp_resource); xmppconfig.setsaslauthenticationenabled(true); xmppconfig.setsecuritymode(connectionconfiguration.securitymode.disabled); if (xmppconfig == null)     throw new nullpointerexception("xmppservice must configured before can connect!"); try {     if (xmpp == null) {         xmpp = new xmppconnection(xmppconfig);     }     xmpp.connect();     state = state.connected; } catch (xmppexception ex) {     log.d(xmppcontroller.class.getname(), ex.tostring()); } 

issue has been resolved. issue existed on server side. server side settings blocking use of open-fire. issue not existed on android side.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -