XMPP giving error with Jitsi client

I setup XMPP on my server and opened the ports from iptables. When I try to login from Jitsi client i can see the following error from the log:

Sep 22 16:57:16 general info Hello and welcome to Prosody version 0.9.8
Sep 22 16:57:16 general info Prosody is using the select backend for connection handling
Sep 22 16:57:16 socket warn server.lua, [::]:5269: Address family not supported by protocol
Sep 22 16:57:16 portmanager error Failed to open server port 5269 on ::, Address family not supported by protocol
Sep 22 16:57:16 portmanager info Activated service ‘s2s’ on []:5269
Sep 22 16:57:16 socket warn server.lua, [::]:5222: Address family not supported by protocol
Sep 22 16:57:16 portmanager error Failed to open server port 5222 on ::, Address family not supported by protocol
Sep 22 16:57:16 portmanager info Activated service ‘c2s’ on [
]:5222
Sep 22 16:57:16 portmanager info Activated service ‘legacy_ssl’ on no ports
Sep 22 16:57:16 mod_posix info Prosody is about to detach from the console, disabling further console output
Sep 22 16:57:16 mod_posix info Successfully daemonized to PID 2959
Sep 22 16:57:40 c2s9c5820 info Client connected
Sep 22 16:57:40 c2s9c5820 info c2s stream for <10.68.X.219> closed: This server does not serve chat.domain.com
Sep 22 16:57:40 c2s9c5820 info Client disconnected: connection closed

I looked online but I haven’t found a solution. In the XMPP configuration on freepbx I have chat.domain.com as serve domain. I tried to put localhost as well but that doesn’t help.
Any advice of where to look??