Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11412

Re: smack4.1 android client connection for openfire server

$
0
0

@Kinderen

Thanks for you reply.

 

I used below code:

 

XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()

                      .setUsernameAndPassword(username, password)

                      .setServiceName("localhost")

                      .setHost("10.42.0.3")

                      .setPort(5222)

                      .build();

 

                    AbstractXMPPConnection conn2 = new XMPPTCPConnection(config);

                    try {

                        conn2.connect();

                    } 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();

                    }

 

But i am unable connect to the openfire server.

Could you please hemp me? I really hanged here.

I am using Eclipse IDE and android 4.4.2.

 

One Question:

Is it possible to make android chat app using openfire server?

-also need to insert users from android client etc...

 

I really need some help....

 

Thanks


Viewing all articles
Browse latest Browse all 11412

Trending Articles