go-hls-proxy icon indicating copy to clipboard operation
go-hls-proxy copied to clipboard

Unable to bind to port

Open CHJ85 opened this issue 3 years ago • 8 comments

Hi there. Great script. But I'm not able to bind to port. My command is hls-server -url http://***.m3u8 --bind-to 38613. The script starts but stops immediately. This only happens when I include the --bind-to command. Any idea? Because I can't really use this script if the port keeps changing.

CHJ85 avatar Sep 14 '21 19:09 CHJ85

hello, is url "master playlist" or that url m3u8 holds ts files list?

blinkinglight avatar Sep 14 '21 21:09 blinkinglight

you could try: hls-server --url [url] --name "test" --frontend = "http://localhost" because hls-proxy is more like part or the system than standalone service

blinkinglight avatar Sep 14 '21 21:09 blinkinglight

Thanks. I'll try that. As for your question, it's not a master, but a tracks-v1a1/mono.m3u8. And yes, it holds a ts list.

CHJ85 avatar Sep 14 '21 22:09 CHJ85

That did not work. I tried --url https://*****/tracks-v1a1/mono.m3u8 --name "Smithsonian" --frontend = "http://localhost:64646" This gave "unsupported protocol scheme".

CHJ85 avatar Sep 14 '21 22:09 CHJ85

i am redesigning system, so current solution is a bit abandoned. but i have plans on v2 and diffrent design probably with docker support. ok. to your last post - i will check code tomorow, and give you response

blinkinglight avatar Sep 14 '21 22:09 blinkinglight

Okay. Thank you!

CHJ85 avatar Sep 14 '21 22:09 CHJ85

-bind-to ":38613"

Hi there. Great script. But I'm not able to bind to port. My command is hls-server -url http://***.m3u8 --bind-to 38613. The script starts but stops immediately. This only happens when I include the --bind-to command. Any idea? Because I can't really use this script if the port keeps changing.

hls-server -url http://***.m3u8 -bind-to ":38613"
go run ./ -url http://***.m3u8 -bind-to ":38613"

Juvenal-Yescas avatar Oct 13 '21 18:10 Juvenal-Yescas

Ah I see. Thank you!

CHJ85 avatar Oct 13 '21 21:10 CHJ85