Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
DinoNZ #1
Member since Dec 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Connecting to non-gmail account in Google Talk
Hi,

How do I connect to a non-gmail account (actually, it's hosted on gmail, but the domain name is not gmail.com)? I've tried various combinations of this:

client.Server = "gmail.com";
client.Username = "trialcompany@domain.com";
client.Password = "password";
client.ConnectServer = "talk.google.com";
client.Port = 5222;

Ive tried both "talk.google.com" and "talk.l.google.com", and also 5223. I've tried changing the server but that generally causes a socket error. Everything else generates an Auth error, although using Google's client I can log in as this account.

Any ideas?

Dino
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
When you domain is setup correctly with SRV records then it connects automatically. I assume you have not setup your srv records.

Use the following code:

  1. client.Server = "yourdomain.com";
  2. client.Username = "trialcompany"
  3. client.Password = "password";
  4. client.AutoResolveConnectServer = false;
  5. client.ConnectServer = "talk.google.com";
  6. client.Port = 5222;

Alex
Avatar
DinoNZ #3
Member since Dec 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Might have been a DNS caching issue - the DNS has been set up with the SRV records, but it didn't work for a few hours, then just started working.

Dino
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