JSON-RPC not listening on ipv4 address

  • Hello,

    I'm trying to get THE remote for Kodi connected to my LibreELEC 7.0.2 install. The remote application says JSON-RPC is not available. When running netstat -an on the LibreELEC PC i see the service is listening on port 9090 only on the ipv6 loopback address:

    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 0.0.0.0:4713 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:1050 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
    tcp 0 0 10.10.11.60:37202 10.10.10.225:34890 ESTABLISHED
    tcp 0 64 10.10.11.60:22 10.10.11.1:57666 ESTABLISHED
    tcp 0 0 :::4713 :::* LISTEN
    tcp 0 0 :::111 :::* LISTEN
    tcp 0 0 :::8080 :::* LISTEN
    tcp 0 0 :::22 :::* LISTEN
    tcp 0 0 :::36666 :::* LISTEN
    tcp 0 0 :::36667 :::* LISTEN
    tcp 0 0 :::9090 :::* LISTEN
    udp 0 0 0.0.0.0:921 0.0.0.0:*
    udp 0 0 0.0.0.0:5353 0.0.0.0:*
    udp 0 0 0.0.0.0:9777 0.0.0.0:*
    udp 0 0 10.10.11.60:59066 10.10.10.254:53 ESTABLISHED
    udp 0 0 0.0.0.0:1900 0.0.0.0:*
    udp 0 0 0.0.0.0:39142 0.0.0.0:*
    udp 0 0 0.0.0.0:10545 0.0.0.0:*
    udp 0 0 0.0.0.0:111 0.0.0.0:*
    udp 0 0 10.10.11.255:137 0.0.0.0:*
    udp 0 0 10.10.11.60:137 0.0.0.0:*
    udp 0 0 0.0.0.0:137 0.0.0.0:*
    udp 0 0 10.10.11.255:138 0.0.0.0:*
    udp 0 0 10.10.11.60:138 0.0.0.0:*
    udp 0 0 0.0.0.0:138 0.0.0.0:*
    udp 0 0 :::921 :::*
    udp 0 0 :::5353 :::*
    udp 0 0 :::111 :::*

    So that explains why it doesn not work, but i'm unable to get it to listen on the ipv4 addresses. I disabled ipv6 in LibreELEC settings, tried 6to4 etc but nothing works.

    Hopefully someone can help!

    Regards.

    • Official Post

    mine shows this as well

    Code
    LibreELEC:~ # netstat -nap | grep 9090tcp        0      0 ::1:9090                :::*                    LISTEN      363/kodi.bin

    however my json rpc seems to be working using the kodi remote for iOS

    Code
    13:41:42 T:547977609440   DEBUG: CWebServer[8080]: request received for /jsonrpc
  • Hello,

    I don´t know if my case is related to your problem. But it seems to have the right keywords. So lets give it a try :

    I have set up my kodi box to be reachable from the world wide web to receive JSON-RPC commands. In theory everything should work. I have a dynamcDNS adress and my box is reachable from this address. In my local network i can access the Box and play arround with the Chorus webinterface (Play, Pauise, Stop and so on)
    But i am not able to send any commands from outside my network. I am able to reach the chorus webinterface and enter my crendentials but from there on, nothing happens. I am completely out of ideas and hope someone of you can help me.