m0ngr31 / EPlusTV

Virtual linear channels for ESPN, ESPN+, MSG+, NFL+, B1G+, NESN, Mountain West, FloSports, Paramount+, MLB.tv, and FOX Sports
MIT License
133 stars 23 forks source link

Port conflict #47

Closed Nemesis1433 closed 1 year ago

Nemesis1433 commented 1 year ago

Is it possible to change the listening port? Getting a conflict error in Portainer

Error: listen EADDRINUSE: address already in use :::8000

3v3rm4rt3lL commented 1 year ago

May this help: just change the first port that is the port host. Example : docker run -p 8092:8000

Nemesis1433 commented 1 year ago

No luck. Using Portainer and used custom command and changed as you suggested. Still starts up and says 8000 already in use.

Nemesis1433 commented 1 year ago

Anyone have any other thoughts? 8092:8000 still produces the same error in the logs on the container. port 8000 is already in use.

3v3rm4rt3lL commented 1 year ago

Every docker container has a insolate ip and ports, when you create a docker container with eplustv this create his own virtual ip and ports 8000, when u used 8092:8000 are telling that docker port 8000 use the port 8092 on host ip. Unless you are using the container eplustv behind other docker that is conflictic with the same 8000 ports. That is you main issue. 1675117210289

Nemesis1433 commented 1 year ago

Yep pretty much the issue. Portainer is on 8000. Only way I see of doing this is re-deploying Portainer and setting the agent port to 8001. Thanks for the help!

jefferson136 commented 1 year ago

Same issue as others above. I have tried changing the host port for EplusTV, but it doesn't work. I also tried changing Portainer's host port for TCP connections (the one that uses 8000) to something else, but this container is still not happy. Any chance of making the port configurable?

m0ngr31 commented 1 year ago

Are you using host or bridged mode networking?

Nemesis1433 commented 1 year ago

I got it all working. I set up a separate network (macvlan) for this and it's all good now. Thank you for following up!!

On Wed, Feb 15, 2023 at 8:37 PM Joe Ipson @.***> wrote:

Are you using host or bridged mode networking?

— Reply to this email directly, view it on GitHub https://github.com/m0ngr31/EPlusTV/issues/47#issuecomment-1432337735, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5RISSGXOB6DYXZ2SBYUDZ3WXWADXANCNFSM6AAAAAAUKMUQPA . You are receiving this because you authored the thread.Message ID: @.***>

jefferson136 commented 1 year ago

Are you using host or bridged mode networking?

I have a custom docker network setup running in bridge mode. That way I can communicate with my different containers using their container name for a hostname. Additionally, I have EPlusTV running thru a VPN container, but I had first set it up without that and still had the same issue. Any thoughts? Thanks!

Nemesis1433 commented 1 year ago

You need to put the VPN container and EPlusTV on a separate mac vlan. I set up a vlan on my home switch and then created the mac vlan using that and attached the containers to that vlan, now no issues.

On Thu, Feb 16, 2023 at 10:30 AM jefferson136 @.***> wrote:

Are you using host or bridged mode networking? I have a custom docker network setup running in bridge mode. That way I can communicate with my different containers using their container name for a hostname. Additionally, I have EPlusTV running thru a VPN container, but I had first set it up without that and still had the same issue. Any thoughts? Thanks!

— Reply to this email directly, view it on GitHub https://github.com/m0ngr31/EPlusTV/issues/47#issuecomment-1433270710, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5RISSHE7KJCOOM23B5BRQDWXZBZ3ANCNFSM6AAAAAAUKMUQPA . You are receiving this because you authored the thread.Message ID: @.***>

m0ngr31 commented 1 year ago

I'm going to close this