iOS with Official Kodi Remote to iOS with Kodi

Not sure if anyone has ever even attempted to do this: I have Kodi installed on one of my iPhone SE using the Pulse build and everything works awesome when connected to my Samsung smart tv via lightning to hdmi adapter. I also have another iPhone SE that I thought I would try using the official Kodi remote to use as the remote for the other iPhone SE. I have entered ip settings etc. And amazingly enough it connects and I am now using 2 iPhones, one for Kodi and one as the remote. The issue I’m having is that when I go to use them both later on or next day Kodi works fine connected to the tv on the one iPhone SE but the Official Kodi Remote app will not connect to the other iPhone again…with the message ‘could not connect to the server’. Is there an issue with iPhones losing connection to the network after a period of time (although it connects to the internet using wifi no problem) or is there an issue with the Official Kodi Remote app that may be causing this issue??