> // custom authentication provider
>        providerRegistry.add(new MangoAppsAuthentication());
> 
>        // a roster manager is also required
>        providerRegistry.add(new MemoryRosterManager());
> XMPPServer server = new XMPPServer("xmpp.mangoapps.com");

Here you are setting your XMPP server domain to be 'xmpp.mangoapps.com'.

> 
> === CLIENT SIDE ====
> 
> I use a XMPP Client (Pidgin) with the following config parms
> 
> Protocol: XMPP
> Username: mohitb
> Domain: mangospring.com
> Resource: chatClient
> Password: mypassword

But here, you specify the domain as mangospring.com.  The XMPP domain does not 
need to be the same as the server's DNS name, but they often are the same.  If 
you want them to match, then you should use:

        XMPPServer server = new XMPPServer("mangospring.com")


Reply via email to