Unknown host exception when connecting to Ejabberd server hosted on server machine from Android API

I am using SMACK API 4.1.4 to communicate with Ejabberd server to communicate with my android app. My Ejabberd server is hosted above the domain name ie: - "dev.oodlesvdct.in". I am getting Unknown Host Exception when calling the connect API smack method.

Entering DOMAIN is "dev.oodlesvdct.in" and HOST is "dev.oodlesvdct.in".

But since I am installing an XMPP ie Pidgin client that works fine for me on the same server. **

Is there any configuration missing from the server side or is it due to the SMACK API methods.

**

I would be grateful if you can help me with this issue.

Connection closed with error org.jivesoftware.smack.XMPPException $ StreamErrorException: host-unknown You can read more about the meaning of this stream error at http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions  at org.jivesoftware .smack.tcp.XMPPTCPConnection $ PacketReader.parsePackets (XMPPTCPConnection.java:1003) at org.jivesoftware.smack.tcp.XMPPTCPConnection $ PacketReader.access $ 300 (XMPPTCPConnection.java.jmp.jpg) at org.jivesoftware.smack.tcp.XMPPTCPConnection $ PacketReader.access $ 300 (XMPPTCPConnection.java.jmp. PacketReader $ 1.run (XMPPTCPConnection.java:959) at java.lang.Thread.run (Thread.java:761)

Any help would be appreciated.

thank

+3


source to share





All Articles