Lost websocket connection
#16
Some further information on identifying this issue.

On doing a netstat on the kodi server you can see that the port is only LISTENING locally (or not at all if remote control is off even for this system):
[email protected]:~$ netstat -nlut | grep :9090
tcp        0      0 127.0.0.1:9090          0.0.0.0:*               LISTEN     
tcp6       0      0 ::1:9090                :::*                    LISTEN     


But after enabling settings→services→control→Allow remote control from applications on other systems, the LISTEN port shows open to all:
[email protected]:~$ netstat -nlut | grep :9090
tcp        0      0 0.0.0.0:9090            0.0.0.0:*               LISTEN     
tcp6       0      0 :::9090                 :::*                    LISTEN   
Reply
#17
(2020-04-29, 20:27)DjZU Wrote: I run into the same problem and could solve it.

Make sure that your firewall is allowing incoming traffic for the EventServer listening on the UDP port 9777 (this is the default port as seen in your 'guisettings.xml' file in 'userdata' folder). See https://kodi.wiki/view/EventServer#Event...ventServer

Make sure that your firewall is allowing incoming traffic for the JSON-RPC API listening on the TCP port 9090 by default. See https://kodi.wiki/view/JSON-RPC_API#WebSocket
If you ever changed this port in your 'advancedsettings.xml' file in 'userdata' folder (see https://kodi.wiki/view/Advancedsettings.xml#jsonrpc), then you also have to give the same value to 'socketsPort:' on line 31 at this time in the file 'kodi-webinterface.js' located in '/usr/share/kodi/addons/webinterface.default/js/' for Linux. Note that this file may be replaced and your change erased in case of Kodi update.

I also posted this answer on https://github.com/xbmc/chorus2/issues/2...-621379839

thank you that fix it for me also
Reply



Logout Mark Read Team Forum Stats Members Help
Lost websocket connection0
This forum uses Lukasz Tkacz MyBB addons.