Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

NoReponseException on connect(asmack 4.0.0)

$
0
0

ConnectionConfiguration config = new ConnectionConfiguration(    

                                                            "192.168.8.158", 5222);

XMPPConnection connection = new XMPPTCPConnection(config);

                                        try {

                                                  connection.connect(); // Throw SmackException$NoReponseException here.

                                        } catch (SmackException e) {

                                                  // TODO Auto-generated catch block

                                                  e.printStackTrace();

                                        } catch (IOException e) {

                                                  // TODO Auto-generated catch block

                                                  e.printStackTrace();

                                        } catch (XMPPException e) {

                                                  // TODO Auto-generated catch block

                                                  e.printStackTrace();

                                        }

 

The openfire just use the default settings, and I can use Spark to connect the server.


Viewing all articles
Browse latest Browse all 10742

Trending Articles