No Port/User/Password settings => no Connection
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?

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.
@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?
yes both options are enabled. the page is loading indefinitely. what else can i do?
@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.
@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?
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
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
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.
Now it works! I have no clue why but it works! (Did not change anything after my last comment!)
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.
@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.
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.
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 Can you test URL http://192.168.1.63:9090/jsonrpc? @sebastienaubry Same with http://192.168.1.36:9090/jsonrpc?
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.
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"
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. 😕
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" |
`
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.
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.

@Wolvverine Two types of addresses are accepted:
- IP address :
192.168.1.16(Cast Kodi will use the default values and connect tows://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).
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).
》"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 ;)
What value do you have in Settings / Web Interface / Advanced options: Websockets port and Websockets host ?
ws://192.168.1.16:9090/jsonrpc
Actually is ok
@Wolvverine It should work with only the IP address 192.168.1.16 (because you use the default port).
