pierre-emmanuelJ / iptv-proxy

Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
GNU General Public License v3.0
535 stars 153 forks source link

Unable to proxy xtream codes service #9

Closed itsneil closed 5 years ago

itsneil commented 5 years ago

Running the prebuild version 1.1.0 on an Ubuntu machine...

iptv-proxy --m3u-url "provider.com" --port 23132 --hostname hostname.com --xtream-user <redacted> --xtream-password <redacted> --xtream-base-url http://<redacted>:25461 --user test123 --password test456

When I attempt to connect using Kodi or IPTV Smarters it fails and I see the following logged to the console

[GIN] 2019/08/31 - 21:14:17 | 404 | 2.576µs | <ip> | GET /player_api.php?username=test123&password=test456

Grabbing the M3U works, however (using hostname.com:23132/iptv.m3u?username=test123&password=456)

Is there something I'm missing for Xtream support?

pierre-emmanuelJ commented 5 years ago

Thanks for this issue! It's weird, that's looks good. I'll check and then come back to you ASAP

pierre-emmanuelJ commented 5 years ago

It's weird I have try exactly with the same setting, and tested with iptv smarter iphone/android and I got this:

[GIN] 2019/09/02 - 16:00:13 | 200 |   26.753518ms |   <ip> | GET      /player_api.php?password=test456&username=test123
itsneil commented 5 years ago

Is it possible that the provider detects the proxying and blocks it? Could my 404 actually be the proxy failing to connect to the existing service, as opposed to me failing to connect to the proxy?

On 2 Sep 2019, at 17:06, Pierre-Emmanuel Jacquier notifications@github.com wrote:

 It's weird I have try exactly with the same setting, and tested with iptv smarter iphone/android and I got this:

[GIN] 2019/09/02 - 16:00:13 | 200 | 26.753518ms | | GET /player_api.php?password=test456&username=test123 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

pierre-emmanuelJ commented 5 years ago

Is it possible that the provider detects the proxying and blocks it? Could my 404 actually be the proxy failing to connect to the existing service, as opposed to me failing to connect to the proxy? On 2 Sep 2019, at 17:06, Pierre-Emmanuel Jacquier @.***> wrote:  It's weird I have try exactly with the same setting, and tested with iptv smarter iphone/android and I got this: [GIN] 2019/09/02 - 16:00:13 | 200 | 26.753518ms | | GET /player_api.php?password=test456&username=test123 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Do you think the user-agent is inportant for your provider?

Normally 404 is not the good code for that

pierre-emmanuelJ commented 5 years ago

Your provider is compatible with the latest version of iptv smarter using xtream login? have you tried?

itsneil commented 5 years ago

Yes, as I use IPTV Smarters normally (downloaded from store, put details in, works)

User Agent I’m not sure, I will ask but they are not keen on people using it in other ways...

I’m wondering if the proxy is unable to contact my provider, and that’s 404-OMG

On 2 Sep 2019, at 17:17, Pierre-Emmanuel Jacquier notifications@github.com wrote:

 Your provider is compatible with the latest version of iptv smarter using xtream login?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

pierre-emmanuelJ commented 5 years ago

Yes, as I use IPTV Smarters normally (downloaded from store, put details in, works) User Agent I’m not sure, I will ask but they are not keen on people using it in other ways... I’m wondering if the proxy is unable to contact my provider, and that’s 404-OMG On 2 Sep 2019, at 17:17, Pierre-Emmanuel Jacquier @.***> wrote:  Your provider is compatible with the latest version of iptv smarter using xtream login? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

I always return the status code from the provider, I never reply with a 404, excepted with GIN if you request the wrong endpoint

pierre-emmanuelJ commented 5 years ago

Did you solve your problem @itsneil ?

itsneil commented 5 years ago

I did! It mirrored my username and password in the —user and —password fields and it seemed to behave. Thank you for replying!

On 5 Sep 2019, at 19:54, Pierre-Emmanuel Jacquier notifications@github.com wrote:

Did you solve your problem @itsneil https://github.com/itsneil ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pierre-emmanuelJ/iptv-proxy/issues/9?email_source=notifications&email_token=ACS5FNJKJGWOC3XUSJ2R4Q3QIFIU3A5CNFSM4ISUTCTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AKK3A#issuecomment-528524652, or mute the thread https://github.com/notifications/unsubscribe-auth/ACS5FNOXHBLYPDAOEU7ZHPTQIFIU3ANCNFSM4ISUTCTA.

pierre-emmanuelJ commented 5 years ago

It's weird! I never seen that problem (I have tried couple of different xtream provider)

itsneil commented 5 years ago

I wouldn’t put it past my provider to be difficult…

On 5 Sep 2019, at 20:04, Pierre-Emmanuel Jacquier notifications@github.com wrote:

It's weird! I never seen that problem (I have tried couple of different xtream provider)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pierre-emmanuelJ/iptv-proxy/issues/9?email_source=notifications&email_token=ACS5FNJCTDCKFQOIDLTQ64TQIFJ4TA5CNFSM4ISUTCTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6ALKWI#issuecomment-528528729, or mute the thread https://github.com/notifications/unsubscribe-auth/ACS5FNNUDXBLK3ITIY64UGLQIFJ4TANCNFSM4ISUTCTA.

pierre-emmanuelJ commented 5 years ago

Send me an email if you want to speak about your provider :wink: