Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Jsonrpc port taken

othrayte edited this page Aug 21, 2012 · 3 revisions

If TU is not scrobbling or showing rating dialogs and the message "ERROR: JSONRPC Server: Failed to bind serversocket" appears in XBMCs log file then XBMC has not been able to bind the JSONRPC port. TU needs to connect to this socket/port to enable scrobbling and rating dialogs. By default the port is number 9090 (tcp). Known reasons that this might fail are

  • Other programs using that port Possible programs that might conflict
  • Logitech Media Server (formerly Squeezebox Server)
  • Weird firewall settings

One possible solution if you can't use port 9090 is to change which port XBMC uses, to do this you need to add the following setting to your advanced settings file, if you don't know what that is see [this XBMC wiki article](http://wiki.xbmc.org/index.php?title=Userdata/advancedsettings.xml).

<advancedsettings>
    <jsonrpc>
        <tcpport>9999</tcpport>
    </jsonrpc>
</advancedsettings>
Currently a second step is required (all versions of TU upto and including v0.6.5). This has been changed in unreleased code and may not be required. You need to find your install of TU. Given you know where your advancedsettings.xml file is (inside /userdata) navigate up to the XBMC directory and then to /addons/script.TraktUtilities/, then open the file 'notification_service.py' and change this line
tn = telnetlib.Telnet('localhost', 9090, 10)
to your new port number.
Clone this wiki locally