How do I set up Google Talk in Pidgin?

Google created the new Google Hangout, that replaces also Google Talk, and seems that XMPP support has been removed.

But there's a partial solution: enable access to Gmail from "less secure apps" and Pidgin will connect to it.


I used:

in the Basic Tab:

Protocol: XMPP
Username: myusername (without @mydomain.com)
Domain: mydomain.com
Resource: (left this blank as default)
Password: mypassword
Checked Remember password

in the Advanced Tab:

Connection security: Require encryption
Connect port: 5222 (default)
Connect server: talk.google.com

If your account uses Two-Factor Authentication, generate an app password and use it as the password.