having the ejabberd authentication script connect to the userappserver at the DB IP address, and not at the login address (which can differ in advanced deployments)
Merge pull request #366 from shatterednirvana/xmpp-in-advanced-deployment

Having the ejabberd authentication script connect to the userappserver