Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Port/User/Password settings => no Connection #13

Closed
andy5macht opened this issue Jul 16, 2019 · 27 comments
Closed

No Port/User/Password settings => no Connection #13

andy5macht opened this issue Jul 16, 2019 · 27 comments
Labels

Comments

@andy5macht
Copy link

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

@PeterPedro
Copy link

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.

@regseb
Copy link
Owner

regseb commented Jul 18, 2019

@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?

@andy5macht
Copy link
Author

andy5macht commented Jul 18, 2019

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

@PeterPedro
Copy link

@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.

@regseb
Copy link
Owner

regseb commented Jul 21, 2019

@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 regseb added the bug label Jul 21, 2019
@andy5macht
Copy link
Author

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

@regseb
Copy link
Owner

regseb commented Jul 28, 2019

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

@andy5macht
Copy link
Author

andy5macht commented Jul 29, 2019

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
Copy link
Author

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

@mmmmmat
Copy link

mmmmmat commented Jul 31, 2019

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.

@regseb
Copy link
Owner

regseb commented Aug 2, 2019

@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.

@sebastienaubry
Copy link

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.

@mmmmmat
Copy link

mmmmmat commented Aug 2, 2019

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.

@regseb
Copy link
Owner

regseb commented Aug 2, 2019

@sebastienaubry
Copy link

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
Copy link

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"

@regseb
Copy link
Owner

regseb commented Aug 9, 2019

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. 😕

@PeterPedro
Copy link

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"

`

@mikeperalta1
Copy link

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.

@Wolvverine
Copy link

Wolvverine commented Nov 9, 2022

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

@regseb
Copy link
Owner

regseb commented Nov 10, 2022

@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).

@Wolvverine
Copy link

Wolvverine commented Nov 16, 2022

@regseb
image
image

also:
ws://user:password@192.168.1.16:18080/jsonrpc
the same problem.

@regseb
Copy link
Owner

regseb commented Nov 16, 2022

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).

@Wolvverine
Copy link

》"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 ;)

@regseb
Copy link
Owner

regseb commented Nov 16, 2022

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

@Wolvverine
Copy link

ws://192.168.1.16:9090/jsonrpc

Actually is ok

@regseb
Copy link
Owner

regseb commented Nov 30, 2022

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

@regseb regseb closed this as completed Nov 30, 2022
@regseb regseb removed the help wanted label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants