The prpblem is dead simple but I tried the various configurations I thought were relevant but ... :( I have a jabber server running on a host (no dns, just IP). The server is accessible from Exodus with NOOO problem... but if I do as what follows :
XMPPConnection.DEBUG_ENABLED = true;
XMPPConnection con = new XMPPConnection("10.102.160.117");
Here is the trace I get :
stream:error (host-unknown) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:320) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63) No response from the server.: at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:58) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:430) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:389) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:370) at com.a3system.jabber.Test.main(Test.java:23)
The host cannot be pinged (Ubuntu server)... Just ssh, http, Jabber ! Incidently, ejabberd runs on the default port 5222 (by heart).