Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Hoss #1
Member since Apr 2008 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can't get two agsXMPP apps to talk over gmail.com
I'm new to all this so bear with me. :)

I wrote an app using agsXMPP that uses gmail.com server and it can communicate fine with a Google Talk app, but I can't get two copies of my agsXMPP app to talk to each other (two separate machines and gmail accounts).

I'm using very simple code from the command line example and they are both connecting fine (xmpp.Authenticated == true), just no messages getting back and forth:
            xmpp.Server = "gmail.com";
            xmpp.AutoResolveConnectServer = true;
            xmpp.Username = "account";
            xmpp.Password = "password";
            xmpp.Resource = null;
            xmpp.Priority = 10;
            xmpp.Port = 5222;
            xmpp.UseSSL = true;
            xmpp.SocketConnectionType = agsXMPP.net.SocketConnectionType.Direct;
            xmpp.UseStartTLS = true;
            xmpp.Open();

I log out either one of them and login with same account using Google Talk app and I can send messages both directions fine.
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
The contacts have to be on each other roster and need subscription from/to each other. Otherwise Google drops the messages.
This is also for preventing SPAM.

Most other servers don't have such a policy currently activated, but Google has. Unlike the other proprietary IM Systems XMPP is secure and prevents SPAM with such mechanisms. We have seen no SPAM yet on XMPP, when it starts then other server admins may activate such a policy as well pretty fast.
Software Developer
AG-Software
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS