1

I am trying to establish a XMPP connection to talk.google.com on port 5222, however I am getting a 301 MOVED PERMANENTLY response redirecting me to hangouts.google.com.

I know Google abandoned GTalk, and what I could find is really inconclusive of whether the service is actually still up and running (although not maintained), or not.

I almost gave up thinking it is just not there anymore, however last try using external client (Adium...like Pidgin but for Mac) instead of my own library (XMPP-PHP), ended up actually connecting to the server and sending messages all fine.

Is there something I'm missing?

Norgul
  • 4,613
  • 13
  • 61
  • 144

2 Answers2

1

You want to do an DNS SRV record lookup to find the actual server to connect to, eg https://kingant.net/check_xmpp_dns/?h=gmail.com says that the client records for gmail.com's XMPP server are xmpp.l.google.com and alt{1..4}.xmpp.l.google.com

Alternatively, you could use a hangups-based solution to speak the native Hangouts protobuf format: https://github.com/tdryer/hangups/

EionRobb
  • 532
  • 5
  • 13
  • Unfortunately using any of the addresses just redirects. I don't want to use alternatives because I would like to figure out how to do it myself within my library. Using third-party options may be convenient, but I will gain no knowledge about what I was doing wrong :) – Norgul Mar 13 '19 at 19:15
1

I have found the right URL to be talk.l.google.com.

Zoe
  • 27,060
  • 21
  • 118
  • 148
Norgul
  • 4,613
  • 13
  • 61
  • 144