我正在尝试使用 smack 建立与 XMPP 服务器的连接。
ConnectionConfiguration cf = new ConnectionConfiguration("jabber.ccc.de");
cf.setTruststorePassword("changeme");
this.connection = new XMPPConnection(cf);
this.connection.connect();
this.connection.login("user", "password");
但是每当登录时,我都会收到 XMPPException (No response from the server.: ) 并且套接字被关闭。
任何想法这里出了什么问题?
问候