Problem with openfire and amazon aws

Dear, i have installed openfire in amazon aws instance, i have to bind the server with the internal IP of the instance, becouse from the console of ec2 you cant’s see the public IP but only the private one.

If i star server with internal ip ( it works and run! and i can access it from external ip (ZZZ.ZZZ.ZZZ.ZZZ) with http://ZZZ.ZZZ.ZZZ.ZZZ:9090, installation works fine!

i can connect from digium client to this server with no problem, but if i connect from a FreshIM chat project, i receive this error:

2015.09.25 10:06:49 - SASLAuthentication: SaslException DIGEST-MD5: digest response format violation. Mismatched URI: xmpp/ZZZ.ZZZ.ZZZ.ZZZ; expecting: xmpp/ip-xxx-xxx-xxx-xxx

Any ideas?