Newly installed openfire server hostname

How to connect to an account from spark by giving newly installed openfire server on my hostname? How it will be possible for others to connect to my server i have no idea regarding this. Please help thank you.