[solved] XBMC binding with LIBREelec connection failed

I am getting connection failed when using the XBMC binding connecting to my LIBREELEC based RPI3.
I have disabled the built in wireless and IPv6 is turned off in the settings. Ive checked all the settings in Kodi to allow remote systems etc.
running netstat on the Kodi box I get the below - does this look right?

Kodi:~ # netstat -ntlp | grep kodi
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 462/kodi.bin
tcp 0 0 127.0.0.1:52307 0.0.0.0:* LISTEN 462/kodi.bin
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN 462/kodi.bin
tcp 0 0 0.0.0.0:1504 0.0.0.0:* LISTEN 462/kodi.bin
tcp 0 0 :::8080 :::* LISTEN 462/kodi.bin
tcp 0 0 :::36666 :::* LISTEN 462/kodi.bin
tcp 0 0 :::36667 :::* LISTEN 462/kodi.bin
tcp 0 0 ::1:9090 :::* LISTEN 462/kodi.bin

ok think i fixed it - I added tcp port 9999 in advancedsettings.xml - changed in openhab.cfg and it is working

I am using libreelec v17 and di not find a way to change the port with a advancedsettings.xml can anyone help me with the xbmc binding and libreelec?

try adding:

<jsonrpc>
    <compactoutput>false</compactoutput>
    <tcpport>9999</tcpport>
</jsonrpc>

to advancedsettings