How to connect openfire from outside network

Hi,

I have configured openfire with AD. I am using Spark as a client to chat. It is working perfectly within Lan. But there are few users who want to use it from outside network on computer as well as on phone (iphone + android). I researched on this but did not get any satisfactory solution. Can anyone help ?