Help Guys! It's Urgent

i Have bought a new domain and hosting as mydomain.com from godaddy.com
i want to use openfire server over wan so that users can log in out of my network by using any XMPP client. Not LAN ,i already configured it for LAN.

Following steps i had done…

  1. Allow port 5222,52223 from firewall
  2. Now i can login to my admin console using address myip:5222 (correct me if i have done it wrong).
    3.Added RCV records
    _xmpp-client._tcp.mydomain.net. 86400 IN SRV 5 0 5222 mydomain.net.
    _xmpp-server._tcp.mydomain.net. 86400 IN SRV 5 0 5269 mydomain.net.

correct me if i hv done it wrong.

Now Guide me how can i do NAT translation (i know it can be done via iptables in linux OS).
which ip should be translated to whom??
i d’nt have any idea about this.

is this necessary to have a router for this all???
should i need to do port forward??

Client must check if can not connect through TCP, you will switch to WebSocket