Openfire it's available to download at Ignite Realtime website It's also possible to download relative source codeenter link description here
Windows installer:
Unix-Linux-Mac install:
You can find detailed instructions on official documentation