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

Options for access from outside the US/Canada without VPN? #51

Open
tudelas opened this issue Dec 20, 2024 · 11 comments
Open

Options for access from outside the US/Canada without VPN? #51

tudelas opened this issue Dec 20, 2024 · 11 comments

Comments

@tudelas
Copy link

tudelas commented Dec 20, 2024

Hi there,

First of all, thank you so much for the work your are doing. It is incredibly helpful and very well explained!

I'm a newbie here, I've been running the docker container on a VPS for some days now and it's working fantastic.
This requires me to run a VPN on my TV box, which even though is not an issue, could be a bit of a pain as I'm using other apps that are not US native.

My question is; is there any way to avoid me having to use VPN? I've seen that I could setup a NGINX service or maybe install a VPN in my VPS(?) but not really sure what would be the best option and if it would be an issue for data transfer limits or anything else? (Using AWS free tier for now).

Not sure if you would have any ideas or recommendations?

Btw, when I was using your direct m3u playlist url before, I had no issues connecting and didn't need a VPN (until the whole issue with the request abuse)

Anyway, thanks in advance and keep up the good work!

@dtankdempse
Copy link
Owner

Does your VPN app allow Split Tunneling? That would be the first thing to look into. With Split Tunneling, you can route the network traffic through your VPN for specific apps only. Most VPNs nowadays should support Split Tunneling.

Another option would be to use the m3u-playlist-proxy on your VPS. Load TheTVApp playlist URL into the m3u-playlist-proxy, set at least one header (like a User-Agent), then generate the playlist URL. Once that’s done, you can load the generated URL into your app, and the streaming traffic will be routed through your VPS. Just make sure your VPS doesn’t have bandwidth restrictions since all the streaming traffic will go through it.

@tudelas
Copy link
Author

tudelas commented Dec 20, 2024

Hey thanks for the quick reply!

Split tunneling is a good shout. Didn't even know my VPN had it to be honest.

I might give a try to using the m3u-playlist-proxy. The bandwidth could be an issue but I don't watch TV that much anyway so could be good to try it out, at least to learn and practice!

Thanks again for the help, much appreciated. I'll let you know how I get on!

@hnlabc
Copy link

hnlabc commented Dec 21, 2024

Does your VPN app allow Split Tunneling? That would be the first thing to look into. With Split Tunneling, you can route the network traffic through your VPN for specific apps only. Most VPNs nowadays should support Split Tunneling.

Another option would be to use the m3u-playlist-proxy on your VPS. Load TheTVApp playlist URL into the m3u-playlist-proxy, set at least one header (like a User-Agent), then generate the playlist URL. Once that’s done, you can load the generated URL into your app, and the streaming traffic will be routed through your VPS. Just make sure your VPS doesn’t have bandwidth restrictions since all the streaming traffic will go through it.

Thanks dtankdempse!

I had used the m3u-playlist-proxy on my VPS for TheTVApp playlist, it working well! Thanks!

I have one further question, i had deployed dcoker for thetvapp successfully, and get the playlist via http://IP_ADDRESS:4124/playlist, if is it possible , I just pick out some of channel from the playlist? for example, I play the channel of CNN via http://IP_ADDRESS:4124/CNN? or other method ? Thanks!

Thank again!

@dtankdempse
Copy link
Owner

@hnlabc That won't work since the streams are tokenized URLs that need to be refreshed regularly. You can't make a static playlist out of them because the URLs will expire and stop working without being updated.

@hnlabc
Copy link

hnlabc commented Dec 23, 2024

@hnlabc That won't work since the streams are tokenized URLs that need to be refreshed regularly. You can't make a static playlist out of them because the URLs will expire and stop working without being updated.

Got it! Thanks for reply and explanation!

@steinxborg
Copy link

steinxborg commented Jan 4, 2025

Try this: https://thetvapp-one.vercel.app/thetvapp
Then host your own https://github.com/dtankdempse/m3u-playlist-proxy (CA/US) to use without vpn. Add the playlist to m3u-playlist-proxy and set the required headers

@jasonnguyen2606
Copy link

Try this: https://thetvapp-one.vercel.app/thetvapp Then host your own https://github.com/dtankdempse/m3u-playlist-proxy (CA/US) to use without vpn. Add the playlist to m3u-playlist-proxy and set the required headers

The required headers you mentioned are from daddylive-m3u playlist right?https://github.com/dtankdempse/daddylive-m3u

@steinxborg
Copy link

Try this: https://thetvapp-one.vercel.app/thetvapp Then host your own https://github.com/dtankdempse/m3u-playlist-proxy (CA/US) to use without vpn. Add the playlist to m3u-playlist-proxy and set the required headers

The required headers you mentioned are from daddylive-m3u playlist right?https://github.com/dtankdempse/daddylive-m3u

No. It is for thetvapp. Just set the headers:

Referer: https://thetvapp.to/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

@hnlabc
Copy link

hnlabc commented Jan 9, 2025

@hnlabc That won't work since the streams are tokenized URLs that need to be refreshed regularly. You can't make a static playlist out of them because the URLs will expire and stop working without being updated.

Thank dtankdempse!
I had pulled the lastest docker images, I find the play link a bit different with the previous docker images,not find to get the token regularly with playlink, the play link like that: http://ip:port/channel?url=https...., thanks for update!my question is ,if any limite for the new playlink?for example, how long time need to refresh the playlink again? or how many time allow to refresh within 2 hours?
Thanks again! Have a good day!

@dtankdempse
Copy link
Owner

dtankdempse commented Jan 9, 2025

@hnlabc In the latest version, tokens are no longer attached to the streams listed in the /playlist. Instead, tokens are now dynamically attached to the stream when the /channel endpoint is accessed. This change ensures that a fresh token is assigned each time the URL is requested. With this new setup, you can now create a static playlist, as the /channel endpoint will automatically retrieve and attach the most up to date token whenever it is accessed.

Edit: You can refresh the playlist as often as needed. Tokens are automatically updated every 4 hours in the background.

@hnlabc
Copy link

hnlabc commented Jan 9, 2025

@hnlabc In the latest version, tokens are no longer attached to the streams listed in the /playlist. Instead, tokens are now dynamically attached to the stream when the /channel endpoint is accessed. This change ensures that a fresh token is assigned each time the URL is requested. With this new setup, you can now create a static playlist, as the /channel endpoint will automatically retrieve and attach the most up to date token whenever it is accessed.

Edit: You can refresh the playlist as often as needed. Tokens are automatically updated every 4 hours in the background.

Thanks for quickly reply!
The updated version more convenient now,thanks again!
Have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants