I have an installation of the Openfire server 3.4.4 and a standalone Java client(using Smack API) that connects to it. This works fine and I am able to send/receive messages via port 5222.
ConnectionConfiguration connConfig;
XMPPConnection connection;
connConfig = new ConnectionConfiguration(“localhost”, 5222);
System.out.println(“Starting IM client”);
try {
connection.connect();
System.out.println("Connected to " + connection.getHost());
connection.login(username, password);
} catch (XMPPException ex) {
// ex.printStackTrace();
System.out.println("Failed to connect to " + connection.getHost());
}
The next step is to try use HTTP Binding to get across firewall issues. I suppose one of the following 2 should solve my problem : Openfire server’s built-in HTTP Binding or the JabberHTTPBind. But I am unable to find any useful documentation/sample usage that could help me with this task.
If anybody has been able to achieve this, please help.
Thanks !!