2015-02-11, 00:03
All,
I am trying to get notifications from headless kodi instance to then notify all the other head-ed instances to refresh their recently added lists
I am not able to connect using the code.
The root cause seems to be that kodi.bin isnt' listening on IPV4 IP for that 9090 TCP Port.
Any ideas? I am using Kodi 14.1 on Ubuntu 64bit, disabling IPV6 at the OS level helps but I think this a bug?
I am trying to get notifications from headless kodi instance to then notify all the other head-ed instances to refresh their recently added lists
I am not able to connect using the code.
Code:
#!/usr/bin/python
from websocket import create_connection
ws = create_connection("ws://192.168.100.1:9090/jsonrpc")
print "World'..."
ws.send('{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}')
print "Sent"
print "Reeiving..."
result = ws.recv()
print "Received '%s'" % result
ws.close()
The root cause seems to be that kodi.bin isnt' listening on IPV4 IP for that 9090 TCP Port.
Code:
$ sudo netstat -ntlp | grep kodi
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 11444/kodi.bin
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN 11444/kodi.bin
tcp6 0 0 :::9090 :::* LISTEN 11444/kodi.bin
tcp6 0 0 :::8080 :::* LISTEN 11444/kodi.bin
tcp6 0 0 :::36666 :::* LISTEN 11444/kodi.bin
tcp6 0 0 :::36667 :::* LISTEN 11444/kodi.bin
Any ideas? I am using Kodi 14.1 on Ubuntu 64bit, disabling IPV6 at the OS level helps but I think this a bug?