Clients randomly disconnecting from OpenFire

Hi,
I’m having an issue with OpenFire an OpenFire deployment on a Windows 7 computer where the Clients are randomly disconnecting and reconnecting. I’ve upgraded to the latest build (4.1.6) and I’m still having the same issue.
domain name: allianceallcall
server IP: 192.168.88.239
the disconnect Idle clients feature is disabled

Clients are mobile devices using AstraChat and the error logs are showing the following messages:

2017.11.08 17:07:23 org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to exception in session: (0x0000001E: nio socket, server, /192.168.88.71:59576 => 0.0.0.0/0.0.0.0:5222)

2017.11.08 17:16:42 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@1fed780 socket: Socket[addr=/192.168.88.239,port=64545,localport=5269] session: null
2017.11.08 17:16:42 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘allianceallcall’ to remote domain: ‘192.168.88.239’] - Unable to authenticate: Fail to create new session.
2017.11.08 17:16:42 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: allianceallcall to 192.168.88.239] - Unable to create a new session: Dialback (as a fallback) failed.
2017.11.08 17:16:42 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: allianceallcall to RS at: 192.168.88.239 (port: 5269)] - Unable to create a new outgoing session
2017.11.08 17:16:40 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@d24443 socket: Socket[addr=/192.168.88.239,port=64544,localport=5269] session: null
2017.11.08 17:16:25 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘allianceallcall’ to remote domain: ‘192.168.88.239’] - Unable to authenticate: Fail to create new session.
2017.11.08 17:16:25 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: allianceallcall to 192.168.88.239] - Unable to create a new session: Dialback (as a fallback) failed.
2017.11.08 17:16:25 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: allianceallcall to RS at: 192.168.88.239 (port: 5269)] - Unable to create a new outgoing session
2017.11.08 17:16:25 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@1f832be socket: Socket[addr=/192.168.88.239,port=64541,localport=5269] session: null
2017.11.08 17:16:23 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@27ea76 socket: Socket[addr=/192.168.88.239,port=64540,localport=5269] session: null
2017.11.08 17:15:32 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘allianceallcall’ to remote domain: ‘192.168.88.239’] - Unable to authenticate: Fail to create new session.
2017.11.08 17:15:32 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: allianceallcall to 192.168.88.239] - Unable to create a new session: Dialback (as a fallback) failed.
2017.11.08 17:15:32 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: allianceallcall to RS at: 192.168.88.239 (port: 5269)] - Unable to create a new outgoing session
2017.11.08 17:15:32 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@1a3c1b7 socket: Socket[addr=/192.168.88.239,port=64533,localport=5269] session: null
2017.11.08 17:15:30 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@1f5ea2d socket: Socket[addr=/192.168.88.239,port=64532,localport=5269] session: null
2017.11.08 17:15:26 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@1d50a88 socket: Socket[addr=/192.168.88.239,port=64531,localport=5269] session: null
2017.11.08 17:15:26 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Authenticate local domain: ‘allianceallcall’ to remote domain: ‘192.168.88.239’] - Unable to authenticate: Fail to create new session.
2017.11.08 17:15:26 org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: allianceallcall to 192.168.88.239] - Unable to create a new session: Dialback (as a fallback) failed.
2017.11.08 17:15:26 org.jivesoftware.openfire.server.ServerDialback[Acting as Originating Server: Create Outgoing Session from: allianceallcall to RS at: 192.168.88.239 (port: 5269)] - Unable to create a new outgoing session
2017.11.08 17:15:23 org.jivesoftware.openfire.net.SocketReader - Closing session due to incorrect hostname in stream header. Host: 192.168.88.239. Connection: org.jivesoftware.openfire.net.SocketConnection@45ecc1 socket: Socket[addr=/192.168.88.239,port=64530,localport=5269] session: null
at java.lang.Thread.run(Unknown Source)

can anybody help me please?

For this to work the most ‘cleanly’ with current versions of Spark and Openfire, you really need to have valid xmpp.domain settings that are not IPs and backed by proper local DNS SRV records. When clients connect, they should not use IP addresses for the xmpp domain, but the xmpp.domain that the Openfire server is configured to use.

Thanks for getting back with me so quick.

I’m somewhat new to managing OpenFire. Can you point me in the right direction to setup an xmpp.domain and register it with the DNS SRV record

Watch this video. This is for the Windows based setup, but basic DNS, networking stuff is the same on other platforms. You don’t need the second part with SSO (probably). You may also skip LDAP integration, if you don’t use that for users. How To: Video on setting up SSO/AD with Openfire

This was due to the wrong properties mentioned in ofProperty table of openfire.