Help with external IP configuration

I used Amazon to setup my openfire server. Everything works fine at the beginning.

But when I try to use the bytestream proxy, I found problem.

Openfire return the internal IP address to the client when the client query the bytestream service.

What should I do to configure the external IP address?

Thank you!!!