title: Unknown host exception while connecting with Ejabberd Server hosted on server machine from Android API
body: <p>I am using SMACK API 4.1.4 for communicating with Ejabberd server for chatting from my Android app. 
  My Ejabberd server is hosted over domain name i.e:- "dev.oodlesvdct.in".
  I am getting <strong>Unknown host exception</strong> while calling the connect method of smack API.</p>
  
  <p>Putting DOMAIN-"dev.oodlesvdct.in" and HOST - "dev.oodlesvdct.in". </p>
  
  <p>But as i install XMPP client i.e <strong>Pidgin</strong> that works fine for me on the same server.
  **</p>
  
  <blockquote>
    <p>Is there any configuration i am missing at server side or this is an
    issue due to SMACK API methods.</p>
  </blockquote>
  
  <p>**</p>
  
  <p>Would appreciate if you please help me regarding this issue.</p>
  
  <blockquote>
    <p>Connection closed with error
    org.jivesoftware.smack.XMPPException$StreamErrorException:
    host-unknown You can read more about the meaning of this stream error
    at <a href="http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions" rel="nofollow noreferrer">http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions</a>
     at
    org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1003)
    at
    org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:944)
    at
    org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:959)
    at java.lang.Thread.run(Thread.java:761)</p>
  </blockquote>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks</p>