Hi,
I want to connect to a xmpp server, here is the settings, so how to make it work as I don't know the settings for "old style ssl" enabled.
1. Server port : 5223
2. Security mode must be disabled.
3. Make sure you tick 'Legacy SSL' to enable the 'Old style SSL' authentication.
Code:
final ConnectionConfiguration connConfig = new ConnectionConfiguration("xxxx", 5223, "xxx");
connConfig.setSASLAuthenticationEnabled(false);
connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.disab led);
XMPPConnection connection = new XMPPConnection(connConfig);
try {
connection.connect();
System.out.println("Connected: " + connection.isConnected());
} catch (XMPPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
I always got the following error:
Connection failed. No response from server.:
at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:121)
at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:636)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:596)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1010)
at test.main(test.java:29)