NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 45 46 47 48 49 … 93 Next »
Enhanced Web Admin

Thread Closed 
 
  • 0 Vote(s) - 0 Average
Enhanced Web Admin
MickeF
Offline

Junior Member

Posts: 3
Threads: 0
Joined: Aug 2005
#381
2005-08-28, 05:50 PM
Sorry if this is already answered, but I can't seem to find anything.

I've just started using the EWA. Works well and is a great utility. However, in the M3U files I get when trying to play a recording I get the local IP address of my HTPC (i.e. 192.168.0.4):


#EXTM3U
#EXTINF:3600,Navy CIS_20050827_20002100
http://192.168.0.4:nnnn/gbpvr/public/download.aspx ...


I'd really like to get my DYNDNS address instead. Everything works locally of course, but the local IP doesn't help me when I'm not home.

I assume I could hack the "Download.aspx.cs" file, but is there another workaround available?
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#382
2005-08-28, 06:15 PM
It should use the same address that you access the web page with, i.e. if you use http://<pvr>:nnn/gbpvr/guide.aspx then the m3u is created with http://<pvr>:nnn/gbpvr/public/download.aspx.
MickeF
Offline

Junior Member

Posts: 3
Threads: 0
Joined: Aug 2005
#383
2005-08-28, 07:43 PM
normanr Wrote:It should use the same address that you access the web page with, i.e. if you use http://<pvr>:nnn/gbpvr/guide.aspx then the m3u is created with http://<pvr>:nnn/gbpvr/public/download.aspx.
Yeah, from looking at the code it should, but it doesn't. Mighty strange!

I've had a couple of friends try, but they get 192.168.0.4 instead of my external IP.
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#384
2005-08-28, 10:10 PM
mmm, as you can see it's using Request.Url. Are you using any strange firewall/proxy stuff to make the site visible to your friends?
MickeF
Offline

Junior Member

Posts: 3
Threads: 0
Joined: Aug 2005
#385
2005-08-29, 07:22 AM
I'll install Apache + PHP on a machine to see if I can reproduce this. I'm more familiar with that environment.

No strange proxxies or anything, just a Netgear (NAT) router which forwards the port in use to my HTPC.

This looks more like a web server problem.
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#386
2005-08-29, 09:26 AM
Nope, you're right. I've just checked from work, and it's putting in my ip address. (But because I'm using a vpn and not port forwarding, it 'works'). I wonder if it's a cassini or a .NET framework issue.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#387
2005-08-30, 03:36 AM
normanr Wrote:Nope, you're right. I've just checked from work, and it's putting in my ip address. (But because I'm using a vpn and not port forwarding, it 'works'). I wonder if it's a cassini or a .NET framework issue.

normanr....I think this is related to the route from the firewall and not a limitation of the .NET framwork or the web server gbpvr is using.

The only thing I could think to do would be (when creating the m3u file info) query the external IP of the PC running gbpvr and use this as the http://address appending the port number that is set in the gbpvr configuratuion and the rest of the encrypted file string.

Changing my m3u file to use my external IP:7647/fileinfo allowed the m3u file to work outside of my network.

I had not noticed this either since I have only used this feture on my local network.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#388
2005-08-30, 07:25 AM
It seems to put in the IP address of the network card you connect to, so if you PVR has a global IP then it would work. If you use it locally it's 127.0.0.1, otherwise it's your LAN ip. Maybe if GB-PVR manually overwrites the Request.Url hostname with what comes in the http headers it would work.
normanr
Offline

Posting Freak

Posts: 855
Threads: 3
Joined: Dec 2004
#389
2005-08-30, 09:56 PM
I've just changed
Code:
Response.Write(Request.Url.ToString() + "&mode=1\r\n");
to
Code:
string url = Request.Url.ToString().Replace(
    Request.Url.Scheme + Uri.SchemeDelimiter + Request.Url.Authority,
    Request.Url.Scheme + Uri.SchemeDelimiter + Request.Headers["Host"]);
Response.Write(url + "&mode=1\r\n");
Shout, if anybody wants a new build just for this fix, because I'm going on holiday next week.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#390
2005-08-31, 12:50 AM
Thanks for the workaround normanr....updated my source and recompiled and it appears to be working as advertised. Wink

I'll check out the stream from work tomorrow for final verification but based on the content in the m3u file I see no reason it should not work.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 12 Guest(s)

Pages (161): « Previous 1 … 37 38 39 40 41 … 161 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  SQLite GUI-based admin & query building? Braklet 3 1,955 2006-10-30, 02:45 PM
Last Post: Braklet
  Recordings made via the Web Admin interface are at the wrong resolution! mmatheny 9 3,076 2006-08-04, 06:34 PM
Last Post: HtV
  Enhanced Web Admin Hobson 3 2,377 2006-06-09, 07:47 AM
Last Post: Hobson
  Enhanced Web Admin (Time Slice error?) SFX Group 2 1,825 2006-02-04, 08:10 PM
Last Post: normanr
  Web Admin suggested feature babybob 0 1,152 2006-01-31, 10:12 PM
Last Post: babybob
  Enhanced Web Admin Request psycik 1 1,335 2005-10-10, 08:16 PM
Last Post: UncleJohnsBand
  reoccuring + web admin aegisx 0 1,174 2005-01-25, 10:57 PM
Last Post: aegisx
  GBPVR Web Admin KingArgyle 8 4,075 2004-12-15, 03:01 AM
Last Post: KingArgyle

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

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

Linear Mode
Threaded Mode