deepverma / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

problem connecting to Gtalk #60

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What are you doing to produce the error?
XMPPConnection xmpp = new XMPPConnection("gmail.com");
xmpp.connect();
xmpp.login("abc@gmail.com", password !);

What is the expected output?
get connected

What do you see instead? (Please attach a debug enabled logcat)
XMPPError connecting to gmail.com:5222.: remote-server-error(502) XMPPError 
connecting to gmail.com:5222.
   -- caused by: java.net.ConnectException: gmail.com/74.125.224.152:5222 - Connection refused

What version of aSmack / Android / Device do you use?
asmack-issue15.jar

What server do you use? Is there a public server to reproduce the problem?
gmail.com
What else might help us to reproduce and hunt down the problem?

Original issue reported on code.google.com by ibrahi...@gmail.com on 15 Jun 2011 at 1:41

GoogleCodeExporter commented 8 years ago
umm yea the only issue here is user error. look at this website on how to 
properly connect to gtalk.

http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/

Original comment by ktownbal...@gmail.com on 15 Jun 2011 at 5:54

GoogleCodeExporter commented 8 years ago
 i figured how it should be

ConnectionConfiguration cc = new ConnectionConfiguration("talk.google.com", 
5222, "gmail.com");
XMPPConnection xmpp = new XMPPConnection(cc);
xmpp.connect();
 SASLAuthentication.supportSASLMechanism("PLAIN", 0);
xmpp.login(username, password);

Original comment by ibrahi...@gmail.com on 15 Jun 2011 at 7:41