SASLErrorException: SASLError using DIGEST-MD5: not-authorized


I am trying to create android chat app using Openfire server and smack4.1.

As part of the app i am trying to run the two android emulators in two different machines. But run the openfire server inone local machine.

My Issue is:

machine1 : running the openfire server and emulator. here emulator connected the openfire server and populate the data from open fire server.

machine 2: running the emulator and connect the server from machine1. Here established the connection. But When i trying to login i am getting the below error:

org.jivesoftware.smack.sasl.SASLErrorException: SASLError using DIGEST-MD5: not-authorized





Please help me how to resolve this issue.

Thanks in advanceā€¦