there is an opensource chat server that I was able to setup for developement purposes before:
openfire
I used 'spark' as the chat client on both linux and windows clients. Also tried 'Pandion' for windows and it worked as well. I was able to get it to work following some guides online but sadly I didn't write a step-by-step guide back then.
good luck!