castkodi icon indicating copy to clipboard operation
castkodi copied to clipboard

No Port/User/Password settings => no Connection

Open andy5macht opened this issue 6 years ago • 19 comments

I was using this addon for years now. But since some time i can not cast to kodi because of a connection issue. As i can see there are missing port/user/password settings. So Cast Kodi doesnt know how to connect? grafik

andy5macht avatar Jul 16 '19 18:07 andy5macht

Yeah, it works in my laptop but not in my desktop, I get the same message from the picture. It's the same kodi box and same settings, no firewall and I can connect with other software.

PeterPedro avatar Jul 18 '19 05:07 PeterPedro

@andy5macht Version 4 of Cast Kodi connects to Kodi with the WebSocket JSON-RPC protocol. Port, Username and Password are no longer required. Have you activated Allow remote control from applications on this system and Allow remote control from applications on other systems? These parameters can be found in Kodi: Settings / Services / Control / Application control (or in German: Einstellungen / Dienste / Steuerung / Anwendungskontrolle ; Fernsteuerung durch Anwendungen dieses Rechners erlauben and Fernsteuerung durch Anwendungen andere Rechner erlauben). If you open this URL: http://192.168.0.166:9090/jsonrpc, does the page load indefinitely or does the connection fail?

@PeterPedro The URL http://192.168.0.166:9090/jsonrpc (by changing the IP address) is accessible (load indefinitely) from your laptop and desktop?

regseb avatar Jul 18 '19 17:07 regseb

yes both options are enabled. the page is loading indefinitely. what else can i do?

andy5macht avatar Jul 18 '19 21:07 andy5macht

@regseb It's working now, I don't know why it wasn't working before, but it's probably my fault. Thanks.

The only problem I have now is that when it's inside the >> menu on the top right it opens with scrollbars and it's a bit annoying but it's not a big deal anyways.

PeterPedro avatar Jul 20 '19 05:07 PeterPedro

@andy5macht If the page loads indefinitely, it means you have access to Kodi. 🤔 You can also test with this URL: ws://192.168.0.166:9090/jsonrpc Maybe the problem is Kodi's version. What is your version of Kodi, Firefox and Cast Kodi?

regseb avatar Jul 21 '19 17:07 regseb

ws://192.168.0.166:9090/jsonrpc also does never stop loading...

Kodi version 18.3 Firefox version 68.0.1 (64-Bit) Cast Kodi version 4.2.0

andy5macht avatar Jul 23 '19 16:07 andy5macht

I tested with the same versions as you and I don't have a problem. Cast Kodi uses the URL ws://192.168.0.0.166:9090/jsonrpc to connect to Kodi. If you have access to it, I don't understand why Cast Kodi can't connect.

You can do this test:

  • Open moz-extension://4dbeb1a6-add8-4c22-8191-ef12886e496e/options/index.html
  • Displays Firefox Developer Tools (with F12)
  • Go to the Console tab
  • Selects all types: Errors, Warnings, Logs, Info, Debug, CSS, XHR and Requests
  • Deletes the last digit of the IP address
  • Rewrite the last digit of the IP address
  • Wait for the warning "Since version 4.0.0..." to be displayed
  • Copies here the messages displayed in the Console

regseb avatar Jul 28 '19 11:07 regseb

This:

  • Open moz-extension://4dbeb1a6-add8-4c22-8191-ef12886e496e/options/index.html

was not possible. Instead I opened extensions/addons => Cast Kodi => Settings. I did all the other steps to get to the console and get logs but nothing appeared. Maybe i did something wrong? I tried 32bit version on same PC: works I tried differen PC with 64bit Firefox: works I tried to "clean" Firefox 64bit but still not working. I get mad.

andy5macht avatar Jul 29 '19 18:07 andy5macht

Now it works! I have no clue why but it works! (Did not change anything after my last comment!)

andy5macht avatar Jul 31 '19 16:07 andy5macht

I'm getting this issue as of a few days ago.

ws://192.168.1.63:9090/jsonrpc loads indefinitely

http://192.168.1.63:8181/jsonrpc loads a json file "description | "JSON-RPC API of XBMC"" (I'm not sure why my Kodi instance is on a non-standard port but there was a reason and I've been using this extension for a few years with no issue)

Other 'send to Kodi' extensions work for YouTube videos (but don't have remote control which is why I like this one).

Chorus loads on http://192.168.1.63:8181/ and works fine.

moz-extension://4dbeb1a6-add8-4c22-8191-ef12886e496e/options/index.html doesn't open.

Firefox 68.0.1 (64-bit) on Debian linux (testing). All extensions fully up to date at time of posting.

mmmmmat avatar Jul 31 '19 22:07 mmmmmat

@andy5macht It's good that it works for you.

@mmmmmat Can you go to the URL moz-extension://4dbeb1a6-add8-4c22-8191-ef12886e496e/options/index.html, but by changing 4dbe...496e to the Internal UUID of Cast Kodi that is displayed on page about:debugging#addons ? And follow the instructions in my previous message.

regseb avatar Aug 02 '19 17:08 regseb

Hello, I have the same bug here and followed these instructions. My Kodi server is at 192.168.1.36. I get:

GET http://192.168.1.3:9090/jsonrpc
GET http://192.168.1.36:9090/jsonrpc
Firefox can’t establish a connection to the server at ws://192.168.1.3:9090/jsonrpc. (jsonrpc.js:137:27)
Firefox can’t establish a connection to the server at ws://192.168.1.36:9090/jsonrpc.

sebastienaubry avatar Aug 02 '19 17:08 sebastienaubry

Thanks Sébastien, I'll try that. I get the same output as @sebastienaubry

GET http://192.168.1.63:9090/jsonrpc
Firefox can’t establish a connection to the server at ws://192.168.1.63:9090/jsonrpc.

mmmmmat avatar Aug 02 '19 17:08 mmmmmat

@mmmmmat Can you test URL http://192.168.1.63:9090/jsonrpc? @sebastienaubry Same with http://192.168.1.36:9090/jsonrpc?

regseb avatar Aug 02 '19 20:08 regseb

For me, it does not work and Firefox loads indefinitely. It must not be related to the client, since I get the same behaviour with Firefox for Windows and for Linux.

sebastienaubry avatar Aug 02 '19 22:08 sebastienaubry

For me it works on port 8080 with: http://192.168.1.36:8080/jsonrpc:

description | "JSON-RPC API of XBMC"
id | "http://xbmc.org/jsonrpc/ServiceDescription.json"
version | "10.3.0"

sebastienaubry avatar Aug 02 '19 22:08 sebastienaubry

It is normal that the page loads indefinitely because the extension connects to Kodi and waits for events. If you access http://192.168.1.36:9090/jsonrpc, the extension should also access it. So I don't understand why the extension doesn't work. 😕

regseb avatar Aug 09 '19 13:08 regseb

Unfortunately the issue returned, so it looks like some random behavior either from the addon or from kodi, for me this is the port that works... http://192.168.1.50:8080/jsonrpc it returns this:

`

description "JSON-RPC API of XBMC"
id "http://xbmc.org/jsonrpc/ServiceDescription.json"
methods {…}
notifications {…}
types {…}
version "10.1.2"

`

PeterPedro avatar Aug 13 '19 21:08 PeterPedro

I believe I have a similar problem. In 2 other Kodi-related extensions, I can simply use the hostname "kodi.home" and sometimes fill out the port "8080" (depending on the extension). But with CastKodi, entering any of many combinations of the hostname, raw IP, port/noport, http/https/nothing, doesn't ever seem to connect or work.

mikeperalta1 avatar May 30 '22 09:05 mikeperalta1

The option to set port, user and password should be available.These are configurable parameters in kodi. Not everyone's kodi works on 8080 and without a password user.

image

Wolvverine avatar Nov 09 '22 20:11 Wolvverine

@Wolvverine Two types of addresses are accepted:

  • IP address : 192.168.1.16 (Cast Kodi will use the default values and connect to ws://192.168.1.16:9090/jsonrpc)
  • Full address : ws://192.168.1.16:18080/jsonrpc

Kodi user/password are no longer required in Cast Kodi since version 4.0.0 (released in June 2019).

regseb avatar Nov 10 '22 10:11 regseb

@regseb image image

also: ws://user:[email protected]:18080/jsonrpc the same problem.

Wolvverine avatar Nov 16 '22 15:11 Wolvverine

The port 18080 shown in the screenshot is the port for HTTP connections. Cast Kodi connects with a WebSocket whose default port is 9090. This port can be changed in the advancedsettings.xml file:

<advancedsettings>
  <jsonrpc>
    <tcpport>9090</tcpport>
  </jsonrpc>
</advancedsettings>

@Wolvverine:

  • You can check that the file advancedsettings.xml exists.
    • If it does: see which port is configured.
    • If file doesn't exist: the port is 9090.
  • Check the IP address in Settings / System information / Summary page.
  • Go to http://192.168.1.16:18080 with your browser to check that you have access to Kodi (maybe Kodi and your browser aren't on the same local network).

regseb avatar Nov 16 '22 16:11 regseb

》"Go to http://192.168.1.16:18080 with your browser to check that you have access to Kodi (maybe Kodi and your browser aren't on the same local network)."

Above you just have a screenshot of the web interface ;)

Wolvverine avatar Nov 16 '22 18:11 Wolvverine

What value do you have in Settings / Web Interface / Advanced options: Websockets port and Websockets host ?

regseb avatar Nov 16 '22 19:11 regseb

ws://192.168.1.16:9090/jsonrpc

Actually is ok

Wolvverine avatar Nov 30 '22 09:11 Wolvverine

@Wolvverine It should work with only the IP address 192.168.1.16 (because you use the default port).

regseb avatar Nov 30 '22 10:11 regseb