How to Enable TCP Port 9090 for WebSocket (JSON-RPC) on LibreELEC?

  • Hi everyone,

    I'm trying to use the WebSocket JSON-RPC API on my LibreELEC setup to interact with Kodi. As I understand, the WebSocket service should run on TCP port 9090 by default, but I can't seem to connect to it from another device.

    Here's what I've checked so far:

    1. Kodi Settings:
      • I've enabled the following under Settings > Services > Control:
        • "Allow remote control via HTTP"
        • "Allow remote control from applications on this system"
        • "Allow remote control from applications on other systems"
    2. SSH and Netstat:
      • I SSH'd into LibreELEC and ran:

        Code
        netstat -tuln | grep 9090

        This does show port 9090 as open or listening.

        tcp        0      0 127.0.0.1:9090          0.0.0.0:*               LISTEN

    3. Firewall:
      • I'm not sure if LibreELEC has any default firewall blocking this port. I also ran:

        Code
        iptables -L

        But there doesn’t seem to be any explicit rule blocking it.

    4. Restart Kodi:
      • I've tried restarting the Kodi service using:

        Code
        systemctl restart kodi

        But it didn't resolve the issue.

    Is there anything additional I need to configure to enable TCP port 9090? Do I need to edit advancedsettings.xml or any other configuration file?

    I’d appreciate any advice or pointers on how to get this working. Thank you in advance!