NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 2 3 4 5 … 43 Next »
Reverse proxy - ssl - kodi client

 
  • 0 Vote(s) - 0 Average
Reverse proxy - ssl - kodi client
fattony
Offline

Junior Member

United Kingdom
Posts: 9
Threads: 1
Joined: Oct 2020
#1
2020-10-19, 07:33 PM (This post was last modified: 2020-10-19, 07:36 PM by fattony.)
Hi I am new to nextpvr

NextPVR ver: 5.0.9.201018
Kodi plugin ver: 3.3.21

I have setup nextpvr on a linux server together with nginx as a reverse proxy running on port 443.

This seems to be working great through chrome browser & I am able to connect fine 
through the proxy & am able to play content!

I would like to connect to the nextpvr server with kodi as the client.
I setup nextpvr kodi client with the following…


connection: 
                  NextPVR Hostname                           test.duckdns.org
                  NextPVR Port                                                            443
                  NextPVR PinCode                                          password


I have tried multiple combinations of settings, appending https to the hostname etc but nothing works!

It looks like the nextpvr kodi plugin is appending http:// to the hostname which is causing the problem.

Here is the relevant section from the kodi log, I can upload the full log if needed.


Code:
2020-10-19 20:00:58.774 T:123145373360128  NOTICE: AddOnLog: NextPVR PVR Client: Buffer created!
2020-10-19 20:00:58.774 T:123145373360128  NOTICE: AddOnLog: NextPVR PVR Client: DummyBuffer created!
2020-10-19 20:00:58.774 T:123145373360128  NOTICE: AddOnLog: NextPVR PVR Client: Buffer created!
2020-10-19 20:00:58.774 T:123145373360128  NOTICE: AddOnLog: NextPVR PVR Client: RecordingBuffer created!
2020-10-19 20:00:58.774 T:123145373360128  NOTICE: AddOnLog: NextPVR PVR Client: Buffer created!
2020-10-19 20:00:58.774 T:123145373360128  NOTICE: AddOnLog: NextPVR PVR Client: DummyBuffer created!
2020-10-19 20:00:58.783 T:123145373360128   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
2020-10-19 20:00:58.783 T:123145373360128   ERROR: CCurlFile::Open failed with code 400 for http://test.duckdns.org:443/service?method=session.initiate&ver=1.0&device=xbmc:
2020-10-19 20:01:01.276 T:123145373360128   ERROR: ADDON: Dll NextPVR PVR Client - Client returned bad status (1) from Create and is not usable



? Is there a way for kodi plugin to connect to the nextpvr server via ssl 443?

Kind regards
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#2
2020-10-19, 07:51 PM
I added an option in Matrix to use https It still is not documented but the steps are

1. Confirm NextPVR web is working with https
2. If you are using an unsigned cert read how to enable unsigned certs in Kodi. I don't support this but info is here https://kodi.wiki/view/SSL_certificates and it does work.
3. Edit userdata/addon_data/pvr.nextpvr/settings.xml to

<setting id="hostprotocol">https</setting>

If the setting isn't there open settings and hit save.

Martin
fattony
Offline

Junior Member

United Kingdom
Posts: 9
Threads: 1
Joined: Oct 2020
#3
2020-10-19, 08:18 PM
Hi & thanks martin

I edited userdata/addon_data/pvr.nextpvr/settings.xml to include <setting id="hostprotocol">https</setting>
restarted kodi & nextpvr is still attempting to connect to http


Code:
ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
2020-10-19 21:06:01.862 T:123145562263552   ERROR: CCurlFile::Open failed with code 400 for http://test.duckdns.org:443/service?method=session.initiate&ver=1.0&device=xbmc:
2020-10-19 21:06:03.741 T:123145562263552   ERROR: ADDON: Dll NextPVR PVR Client - Client returned bad status (1) from Create and is not usable
2020-10-19 21:06:09.420 T:123145562263552   ERROR: UpdateAddons: Failed to create add-on NextPVR PVR Client, status = 1

here is the contents of userdata/addon_data/pvr.nextpvr/settings.xml


Code:
<settings version="2">
    <setting id="chunklivetv">64</setting>
    <setting id="chunkrecording">32</setting>
    <setting id="guideartwork">true</setting>
    <setting id="host">test.duckdns.org</setting>
    <setting id="host_mac">02:42:00:00:00:00</setting>
    <setting id="hostprotocol" default="true">https</setting>
    <setting id="kodilook" default="true">false</setting>
    <setting id="livestreamingmethod">0</setting>
    <setting id="pin">password</setting>
    <setting id="port">443</setting>
    <setting id="prebuffer">1</setting>
    <setting id="usetimeshift" default="true">false</setting>
    <setting id="wolenable" default="true">false</setting>
    <setting id="woltimeout">20</setting>
    <setting id="hostprotocol">https</setting>
</settings>


Iam using a signed certificate & have successfully connected to nextpvr throught the web interface with https.

Regards
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#4
2020-10-19, 08:25 PM
Is that Matrix? Those look like Leia settings. If it is Leia I don't have a clue how that first hostprotocol got in.

Martin
fattony
Offline

Junior Member

United Kingdom
Posts: 9
Threads: 1
Joined: Oct 2020
#5
2020-10-19, 08:33 PM
Sorry thought you meant the option has been active since Matrix.
yes i am on Leia 18.8
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#6
2020-10-19, 08:36 PM
You will have to wait or create a Kodi portable mode install for testing.

Martin
fattony
Offline

Junior Member

United Kingdom
Posts: 9
Threads: 1
Joined: Oct 2020
#7
2020-10-19, 08:41 PM
apologies i made a cockup in pasting userdata/addon_data/pvr.nextpvr/settings.xml



Code:
<settings version="2">
    <setting id="chunklivetv">64</setting>
    <setting id="chunkrecording">32</setting>
    <setting id="guideartwork">true</setting>
    <setting id="host">test.duckdns.org</setting>
    <setting id="host_mac">02:42:A0:10:00:00</setting>
    <setting id="kodilook" default="true">false</setting>
    <setting id="livestreamingmethod">0</setting>
    <setting id="pin">password</setting>
    <setting id="port">443</setting>
    <setting id="prebuffer">1</setting>
    <setting id="usetimeshift" default="true">false</setting>
    <setting id="wolenable" default="true">false</setting>
    <setting id="woltimeout">20</setting>
    <setting id="hostprotocol">https</setting>
</settings>
 
not sure what you mean by "You will have to wait or create a Kodi portable mode install for testing."
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#8
2020-10-19, 08:42 PM
There are no more Leia builds but Kodi portable mode lets you have a second instance of Kodi on a PC.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,777
Threads: 769
Joined: Nov 2003
#9
2020-10-19, 08:48 PM
(2020-10-19, 08:43 PM)mvallevand Wrote: Sub can this thread be moved to the Kodi sub forum please.
Done...
fattony
Offline

Junior Member

United Kingdom
Posts: 9
Threads: 1
Joined: Oct 2020
#10
2020-10-19, 09:18 PM
It seems that  the string is replaced on kodi restart

Code:
<setting id="hostprotocol">https</setting>

to
Code:
<setting id="hostprotocol" default="true">https</setting>


but the error above & connection fail remain the same


Regards
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): 1 2 3 4 5 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Suggestions for the KODI Add-on Escape7 51 10,068 12 minutes ago
Last Post: sub
  Kodi Channel not updating aTF6i 2 560 2025-03-09, 12:26 AM
Last Post: aTF6i
  EPG not loading in Kodi? membball84 3 555 2025-02-13, 01:24 AM
Last Post: membball84
  Automated Updates of IPTV Channels in NPVR and Kodi via APIs taylormia 1 1,001 2025-02-04, 03:13 AM
Last Post: lustfulmacaw
  Kodi 22 (Piers) and library thumbnails mvallevand 8 1,422 2025-01-15, 06:32 PM
Last Post: mvallevand
  Kodi Channel Icons wrong and can't be corrected wapkaplet 11 1,445 2024-10-23, 02:11 PM
Last Post: mvallevand
  Kodi PVR Client Not Working trongod 8 1,760 2024-09-11, 10:20 PM
Last Post: trongod
  NextPVR Client for CoreELEC ChrisI 3 731 2024-09-07, 10:11 PM
Last Post: mvallevand
  Kodi 21.0 Omega/NextPVR 21.1.0 PVR & Live TV Group Manager bouilliabai 28 4,785 2024-08-06, 10:00 PM
Last Post: sub
  Kodi-V5 WiFi Problem? kerryball 0 446 2024-06-26, 06:49 AM
Last Post: kerryball

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode