diddlesnaps / tvheadend

MIT License
10 stars 0 forks source link

Howto enable ipv6 ports? #17

Open tomgithub2018 opened 2 years ago

tomgithub2018 commented 2 years ago

What happened?

I do not find the possibility to enable ipv6 on the tvheadend snap.

I tried something like:

start snap.tvheadend.tvheadend.service -6

Like the commands on this site: https://docs.tvheadend.org/Appendices/command_line_options/

But i can not enable the ipv6 ports on TV Headend.

The command "netstat -ltn" still shows only the tcp ports (9981, 9982) and not the tcp6 ports.

Can someone help me please?

Background is, i need the tcp6 ports, because i only have a DS Lite Connection.

What should have happened?

netstat -ltn

should show the tvheadend ipv6 tcp ports opened

Output of snap info $snap_name

latest/stable:    4.2.8 2021-09-24 (192) 144MB -
  latest/candidate: ↑
  latest/beta:      ↑
  latest/edge:      4.2.8 2021-09-29 (195) 144MB -
installed:          4.2.8            (192) 144MB -

Output of snap connections $snap_name

Interface        Plug                       Slot           Notes
avahi-control    tvheadend:avahi-control    -              -
desktop          tvheadend:desktop          :desktop       -
dvb              tvheadend:dvb              :dvb           -
network          tvheadend:network          :network       -
network-bind     tvheadend:network-bind     :network-bind  -
removable-media  tvheadend:removable-media  -              -

Output of snap version

snap    2.52.1
snapd   2.52.1
series  16
debian  11
kernel  5.10.0-10-amd64

Relevant log output

No response

Teminal output of app

No response

MisterSausage commented 2 years ago

I've already added a pull request to fix this ( #16 ), but so far there's been no action. It's a very easy fix.

tomgithub2018 commented 2 years ago

I did work a lot to solve this problem, but it didn't work with the snapcraft tvheadend snap.

So i uninstalled the snap ("snap remove tvheadend") and installed the original tvheadend from this site following the instructions:

https://tvheadend.org/projects/tvheadend/wiki/AptRepositories

After installation i did this:

nano /etc/default/tvheadend

Add: OPTIONS="-u hts -g video -6" TVH_IPV6=1

After: /etc/init.d/tvheadend restart

Check with command: netstat -ltn

Ready! TVheadend is listening on the TCP ipv6 Ports :-)

I hope i could help you. Greetings.

MisterSausage commented 2 years ago

Thanks for the info.

Hopefully you'll be able to come back to the snap version at some point in the future if the PR I've submitted is accepted (and this snap project hasn't been abandoned!).

lucyllewy commented 2 years ago

I've just merged PR #16 which is building now and will be available in the edge channel of the Snap Store shortly. You can test this with snap refresh --edge tvheadend if you have it installed or snap install --edge tvheadend if you have not installed it yet or have uninstalled it. To enable IPv6 after the update has become available and you have it installed, run snap set tvheadend tvh-enable-ipv6=true in a terminal.

MisterSausage commented 2 years ago

Thank you

MisterSausage commented 2 years ago

@diddledani If you get the chance, could you release the build in the edge channel for arm64 as well as amd64, please?