kodi-community-addons / plugin.audio.spotify

Unofficial spotify plugin for Kodi
GNU General Public License v3.0
293 stars 102 forks source link

Port overlap with Kodi - change port 9090 #151

Open seangineer opened 3 years ago

seangineer commented 3 years ago

Hello, I recently tried to enable the option "Allow remote control from applications on other systems" under Settings --> Services --> Control which resulted in the error "remote communications server failed to start" after which kodi crashed.

Upon further investigation, I checked the logs and noticed the following lines:

2020-10-10 11:04:36.433 T:281473385197584 ERROR: JSONRPC Server: Failed to connect to sdpd 2020-10-10 11:04:36.433 T:281473385197584 DEBUG: JSONRPC Server: Failed to bind IPv4 serversocket 2020-10-10 11:04:36.434 T:281473385197584 DEBUG: JSONRPC Server: Failed to bind IPv6 serversocket 2020-10-10 11:04:36.434 T:281473385197584 ERROR: JSONRPC Server: Failed to create serversocket(s)

At first I suspected an issue with sdpd, but this was not critical. So then I moved on to check if the port was already in use by other services using the command sudo lsof -i -P | grep -i "listen" and saw that spotty was binding to the port 9090, which is also required by the kodi JSON-RPC server. After disabling the spotify add-in, everything resumed to function as normal.

As such, is it possible to change port 9090 to another port within the spotify add-on?

Bolayniuss commented 3 years ago

The add-on also seems to conflict with airplay port 36666