Connecting remote via IP address

I’m trying to connect to Kodi using the IP address and port but I cannot do so, either via the Kodi remote app or just web UI. This instance of Kodi installed on my steam deck. The IP address and port it gives in Kodi system info is the same as my steam deck shows, and I can see my steam deck on the same IP address and port when I log into my router. Whenever I try to connect to these in the Kodi remote app it says it cannot find Kodi, and when I try using that IP/port in web UI it says could not connect to server. Does anyone know how to solve this? Is it perhaps something to do with steamOS, Linux or using it on steam deck?

Solved: for anyone else with this issue looking for an answer - avahi-daemon mDns service needs to be enabled in SteamOS (it’s not enabled by default). This allowed me to find Kodi in the app, but not connect. It seems port 8080 was in use so changing it to 8888 allowed the connection to work.