I tried to have some servers to inform me via Jabber of some activities automatically.
Trying to write a piece of code that automatically connects in Java with SMACKX fails...
XMPPConnection.DEBUG_ENABLED = true;
XMPPConnection con = new XMPPConnection("10.102.160.117");
con.login("me@jabber", [i]xxx[/i]);
con.createChat("you@jabber").sendMessage("Howdy!");
Any idea on why ... ?
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)
Exodus manages to connect without a glitch :/
\T,
What is the value of the
What is the value of the
hosts
directive in the ejabberd configuration file?