Connect with port mapping

Hello!
I had a problem with Openfire 3.6.4
Openfire had installed in a local network on the computer 192.168.0.2 (xmpp.domain = myglobname.com) From a local network there is an access to the Internet through the computer 192.168.0.1 (it the basic DNS). The computer 192.168.0.1 has the external network interface with a name, for example, myglobname.com
On all ports Openfire between computers 192.168.0.1 and 192.168.0.2 it is adjusted “port mapping”.
If I am connected to openfire from the Internet using a name myglobname.com all works well. If I am connected from a local network using 192.168.0.2 address connection is established, but I do not receive any user from the list of contacts. What do I do incorrectly? How to force openfire to work with a local and global network together?
I apologize if my english is not good.

What client do you use? What if you try to login to globname.com in you client but manually specify a host as 192.168.0.2? Also i dint quite understand this part about the port mapping. What exactly is done. 192.168.0.1 is a DNS? Or is it a router?