I am having problems with the SSLXMPPConnection locking up when using the “normal” port (i.e. 5222 rather than 5223). Obviously this should either fail or warn the user that the connection is not secure but the call to create a new SSLXMPPConnection never returns. Is there a workaround for this situation? Is there a way to test the port to determine if it is “normal” or SSL in advance of creating a connection?