Enable ipv6 in tvheadend
Added by Marcos Santos 11 months ago
I would like some help enabling IPV6 on my tvheadend server, tvheadend is installed on a device that runs the enigma2 system.
I've been trying for days to enable IPv6 and I can't.
I tried what I found in this post here:
https://tvheadend.org/boards/5/topics/32891
I created the "tvheadend" file in the "/etc/default/tvheadend" folder as suggested in the post, I made the commands via Putty, but I still don't have IPV6 enabled.
This is the result of the "netstat -ltn" command:
root@user:~# netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9981 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9982 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4200 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::21 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::445 :::* LISTEN
tcp6 0 0 :::8001 :::* LISTEN
tcp6 0 0 :::8002 :::* LISTEN
tcp6 0 0 :::8554 :::* LISTEN
tcp6 0 0 :::139 :::* LISTEN
tcp6 0 0 :::111 :::* LISTEN
Could someone help me, please?
Replies (18)
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
Did you try enabling IPv6 from the command line when you launch TVH?
#tvheadend --ipv6
# ./tvheadend --help
Usage: ./tvheadend [OPTIONS]
Generic options
-h, --help Show this page
-v, --version Show version information
Service configuration
-c, --config Alternate configuration path
-B, --nobackup Don't backup configuration tree at upgrade
-f, --fork Fork and run as daemon
-u, --user Run as user
-g, --group Run as group
-p, --pid Alternate PID path
-C, --firstrun If no user account exists then create one with
no username and no password. Use with care as
it will allow world-wide administrative access
to your Tvheadend installation until you create or edit
the access control from within the Tvheadend web interface.
-a, --adapters Only use specified DVB adapters (comma-separated, -1 = none)
--satip_bindaddr Specify bind address for SAT>IP server
--satip_rtsp SAT>IP RTSP port number for server
(default: -1 = disable, 0 = webconfig, standard port is 554)
--nosatip Disable SAT>IP client
--satip_xml URL with the SAT>IP server XML location
Server connectivity
-6, --ipv6 Listen on IPv6
-b, --bindaddr Specify bind address
--http_port Specify alternative http port
--http_root Specify alternative http webroot
--htsp_port Specify alternative htsp port
--htsp_port2 Specify extra htsp port
--useragent Specify User-Agent header for the http client
--xspf Use XSPF playlist instead of M3U
Debug options
-d, --stderr Enable debug on stderr
-n, --nostderr Disable debug on stderr
-s, --syslog Enable debug to syslog
-S, --nosyslog Disable syslog (all messages)
-l, --logfile Enable debug to file
--debug Enable debug subsystems
--trace Enable trace subsystems
--subsystems List subsystems
--fileline Add file and line numbers to debug
--threadid Add the thread ID to debug
--libav More verbose libav log
--uidebug Enable web UI debug (non-minified JS)
-A, --abort Immediately abort
-D, --dump Enable coredumps for daemon
--noacl Disable all access control checks
--nobat Disable DVB bouquets
-j, --join Subscribe to a service permanently
Testing options
--tsfile_tuners Number of tsfile tuners
--tsfile tsfile input (mux file)
--tprofile Gather timing statistics for the code
--thrdebug Thread debugging
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
Excuse my ignorance, but how exactly do I do this?
I tried running this command in Putty, this is what appears in the console:
2024-01-05 08:28:46.796 [ INFO] main: Log started
2024-01-05 08:28:46.797 [ ERROR] tcp: bind: *:9981: Address already in use
2024-01-05 08:28:46.797 [ ERROR] tcp: bind: *:9982: Address already in use
2024-01-05 08:28:46.801 [ INFO] config: loaded
2024-01-05 08:28:46.801 [ INFO] config: scanfile (re)initialization with path <none>
2024-01-05 08:28:46.802 [ INFO] transcode: 'video' context type registered
2024-01-05 08:28:46.802 [ INFO] transcode: 'audio' context type registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHH264Decoder' decoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHTHEORADecoder' decoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHAACDecoder' decoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHVORBISDecoder' decoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHOPUSDecoder' decoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHH264Encoder' encoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHHEVCEncoder' encoder helper registered
2024-01-05 08:28:46.802 [ INFO] transcode: '&TVHAACEncoder' encoder helper registered
2024-01-05 08:28:46.802 [ INFO] codec: 'mpeg2video' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'mp2' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'aac' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'vorbis' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'flac' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'libvpx' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'libvpx-vp9' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'libtheora' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'libvorbis' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'h264_vaapi' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'hevc_vaapi' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'vp8_vaapi' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'vp9_vaapi' encoder registered
2024-01-05 08:28:46.802 [ INFO] codec: 'h264_omx' encoder registered
2024-01-05 08:28:46.803 [ INFO] codec: 'webtv-vp8' codec profile created
2024-01-05 08:28:46.803 [ ERROR] codec: codec 'libx264' not found
2024-01-05 08:28:46.803 [ ERROR] codec: unable to load codec profile: 'webtv-h264'
2024-01-05 08:28:46.803 [ INFO] codec: 'webtv-vorbis' codec profile created
2024-01-05 08:28:46.803 [ INFO] codec: 'webtv-aac' codec profile created
2024-01-05 08:28:46.803 [ INFO] codec: 'H264' codec profile created
2024-01-05 08:28:46.803 [ ERROR] codec: codec 'libx264' not found
2024-01-05 08:28:46.803 [ ERROR] codec: unable to create codec profile from config tree: 'webtv-h264'
2024-01-05 08:28:46.845 [ INFO] capmt: dvbapiau active
2024-01-05 08:28:46.845 [ INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS)
2024-01-05 08:28:46.845 [ INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu)
2024-01-05 08:28:46.847 [ INFO] capmt: dvbapiau: mode 5 connected to 127.0.0.1:9000 (single)
2024-01-05 08:28:46.847 [ INFO] capmt: dvbapiau: Connected to server 'OSCam v1.26, build r (arm-linux-gnueabihf-atto-libusb-pcsc); ' (protocol version 3)
2024-01-05 08:28:46.901 [ INFO] iptv: Using 2 input thread(s)
2024-01-05 08:28:47.328 [ INFO] scanfile: DVB-S - loaded 1 regions with 116 networks
2024-01-05 08:28:47.328 [ INFO] scanfile: DVB-T - loaded 46 regions with 1152 networks
2024-01-05 08:28:47.328 [ INFO] scanfile: DVB-C - loaded 20 regions with 84 networks
2024-01-05 08:28:47.328 [ INFO] scanfile: ATSC-T - loaded 2 regions with 14 networks
2024-01-05 08:28:47.328 [ INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
2024-01-05 08:28:47.329 [ INFO] scanfile: ISDB-T - loaded 2 regions with 1297networks
2024-01-05 08:28:48.902 [ ERROR] linuxdvb: unable to open /dev/dvb/adapter2/frontend0
2024-01-05 08:28:48.902 [ ERROR] linuxdvb: CAM /dev/dvb/adapter2/ca0 has no slots
2024-01-05 08:28:50.904 [ ERROR] linuxdvb: unable to open /dev/dvb/adapter1/frontend0
2024-01-05 08:28:50.904 [ ERROR] linuxdvb: CAM /dev/dvb/adapter1/ca0 has no slots
2024-01-05 08:28:52.906 [ ERROR] linuxdvb: unable to open /dev/dvb/adapter0/frontend0
2024-01-05 08:28:52.906 [ ERROR] linuxdvb: CAM /dev/dvb/adapter0/ca0 has no slots
2024-01-05 08:28:52.958 [ INFO] dvr: Creating new configuration ''
2024-01-05 08:28:52.961 [ INFO] epggrab: module uk_freesat created
2024-01-05 08:28:52.961 [ INFO] epggrab: module uk_freesat_eit created
2024-01-05 08:28:52.961 [ INFO] epggrab: module uk_freeview created
2024-01-05 08:28:52.961 [ INFO] epggrab: module nz_freeview2 created
2024-01-05 08:28:52.961 [ INFO] epggrab: module nz_freeview1 created
2024-01-05 08:28:52.961 [ INFO] epggrab: module viasat_baltic created
2024-01-05 08:28:52.961 [ INFO] epggrab: module Bulsatcom_39E created
2024-01-05 08:28:52.961 [ INFO] epggrab: module uk_cable_virgin created
2024-01-05 08:28:52.961 [ INFO] epggrab: module eit created
2024-01-05 08:28:52.961 [ INFO] epggrab: module psip created
2024-01-05 08:28:52.970 [ INFO] epggrab: module opentv-skyuk created
2024-01-05 08:28:52.970 [ INFO] epggrab: module opentv-ausat created
2024-01-05 08:28:52.970 [ INFO] epggrab: module opentv-skynz created
2024-01-05 08:28:52.970 [ INFO] epggrab: module opentv-skyit created
2024-01-05 08:28:52.972 [ INFO] epggrab: module xmltv created
2024-01-05 08:28:52.979 [ INFO] spawn: Executing "/usr/bin/tv_grab_br"
2024-01-05 08:28:55.003 [ INFO] epggrab: module /usr/bin/tv_grab_br created
2024-01-05 08:28:55.010 [ INFO] spawn: Executing "/bin/tv_grab_br"
2024-01-05 08:28:56.658 [ INFO] epggrab: module /bin/tv_grab_br created
2024-01-05 08:28:56.661 [ INFO] xmltv: xmltv: external socket enabled
2024-01-05 08:28:56.673 [ INFO] epgdb: gzip format detected, inflating (ratio24.2% deflated size 2024377)
2024-01-05 08:28:56.762 [ INFO] epgdb: parsing 8366942 bytes
2024-01-05 08:28:57.231 [ INFO] epgdb: loaded v3
2024-01-05 08:28:57.231 [ INFO] epgdb: config 1
2024-01-05 08:28:57.231 [ INFO] epgdb: broadcasts 20916
2024-01-05 08:28:57.245 [ INFO] dvr: Purging obsolete autorec entries for current schedule
2024-01-05 08:28:57.266 [ NOTICE] START: HTS Tvheadend version 4.3-2120~g18effa8ad-dirty started, running as PID:17583 UID:0 GID:0, CWD:/home/root CNF:/home/root/.hts/tvheadend
2024-01-05 08:28:57.358 [ ERROR] iptv: unable to fetch data from url [404-0/146]
I still don't have IPv6 activated.
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
Lines 2 & 3 of your log file suggest that another instance of TVH may be running because those ports are already in use. You need to find where TVH is launched from and update the command line parameters there.
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
I ran the command with tvheadend running, if I type systemctl stop tvheadend and then type the command, this is my log:
2024-01-05 16:26:44.301 [ INFO] main: Log started
2024-01-05 16:26:44.302 [ INFO] http: Starting HTTP server :::9981
2024-01-05 16:26:44.302 [ INFO] htsp: Starting HTSP server :::9982
2024-01-05 16:26:44.305 [ INFO] config: loaded
2024-01-05 16:26:44.306 [ INFO] config: scanfile (re)initialization with path <none>
2024-01-05 16:26:44.306 [ INFO] transcode: 'video' context type registered
2024-01-05 16:26:44.306 [ INFO] transcode: 'audio' context type registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHH264Decoder' decoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHTHEORADecoder' decoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHAACDecoder' decoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHVORBISDecoder' decoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHOPUSDecoder' decoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHH264Encoder' encoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHHEVCEncoder' encoder helper registered
2024-01-05 16:26:44.306 [ INFO] transcode: '&TVHAACEncoder' encoder helper registered
2024-01-05 16:26:44.306 [ INFO] codec: 'mpeg2video' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'mp2' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'aac' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'vorbis' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'flac' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'libvpx' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'libvpx-vp9' encoder registered
2024-01-05 16:26:44.306 [ INFO] codec: 'libtheora' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'libvorbis' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'h264_vaapi' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'hevc_vaapi' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'vp8_vaapi' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'vp9_vaapi' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'h264_omx' encoder registered
2024-01-05 16:26:44.307 [ INFO] codec: 'webtv-vp8' codec profile created
2024-01-05 16:26:44.307 [ ERROR] codec: codec 'libx264' not found
2024-01-05 16:26:44.307 [ ERROR] codec: unable to load codec profile: 'webtv-h264'
2024-01-05 16:26:44.307 [ INFO] codec: 'webtv-vorbis' codec profile created
2024-01-05 16:26:44.307 [ INFO] codec: 'webtv-aac' codec profile created
2024-01-05 16:26:44.307 [ INFO] codec: 'H264' codec profile created
2024-01-05 16:26:44.307 [ ERROR] codec: codec 'libx264' not found
2024-01-05 16:26:44.307 [ ERROR] codec: unable to create codec profile from config tree: 'webtv-h264'
2024-01-05 16:26:44.325 [ INFO] capmt: dvbapiau active
2024-01-05 16:26:44.325 [ INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS)
2024-01-05 16:26:44.325 [ INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu)
2024-01-05 16:26:44.327 [ INFO] capmt: dvbapiau: mode 5 connected to 127.0.0.1:9000 (single)
2024-01-05 16:26:44.328 [ INFO] capmt: dvbapiau: Connected to server 'OSCam v1.26, build r (arm-linux-gnueabihf-atto-libusb-pcsc); ' (protocol version 3)
2024-01-05 16:26:44.380 [ INFO] iptv: Using 2 input thread(s)
2024-01-05 16:26:44.381 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2
2024-01-05 16:26:44.381 [ ERROR] linuxdvb: CAM /dev/dvb/adapter2/ca0 has no slots
2024-01-05 16:26:44.382 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1
2024-01-05 16:26:44.382 [ ERROR] linuxdvb: CAM /dev/dvb/adapter1/ca0 has no slots
2024-01-05 16:26:44.383 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0
2024-01-05 16:26:44.383 [ ERROR] linuxdvb: CAM /dev/dvb/adapter0/ca0 has no slots
2024-01-05 16:26:44.456 [ INFO] dvr: Creating new configuration ''
2024-01-05 16:26:44.459 [ INFO] epggrab: module uk_freesat created
2024-01-05 16:26:44.459 [ INFO] epggrab: module uk_freesat_eit created
2024-01-05 16:26:44.459 [ INFO] epggrab: module uk_freeview created
2024-01-05 16:26:44.459 [ INFO] epggrab: module nz_freeview2 created
2024-01-05 16:26:44.459 [ INFO] epggrab: module nz_freeview1 created
2024-01-05 16:26:44.459 [ INFO] epggrab: module viasat_baltic created
2024-01-05 16:26:44.459 [ INFO] epggrab: module Bulsatcom_39E created
2024-01-05 16:26:44.459 [ INFO] epggrab: module uk_cable_virgin created
2024-01-05 16:26:44.460 [ INFO] epggrab: module eit created
2024-01-05 16:26:44.460 [ INFO] epggrab: module psip created
2024-01-05 16:26:44.468 [ INFO] epggrab: module opentv-skyuk created
2024-01-05 16:26:44.468 [ INFO] epggrab: module opentv-ausat created
2024-01-05 16:26:44.469 [ INFO] epggrab: module opentv-skynz created
2024-01-05 16:26:44.469 [ INFO] epggrab: module opentv-skyit created
2024-01-05 16:26:44.470 [ INFO] epggrab: module xmltv created
2024-01-05 16:26:44.479 [ INFO] spawn: Executing "/usr/bin/tv_grab_br"
2024-01-05 16:26:44.854 [ INFO] scanfile: DVB-S - loaded 1 regions with 116 networks
2024-01-05 16:26:44.854 [ INFO] scanfile: DVB-T - loaded 46 regions with 1152 networks
2024-01-05 16:26:44.854 [ INFO] scanfile: DVB-C - loaded 20 regions with 84 networks
2024-01-05 16:26:44.854 [ INFO] scanfile: ATSC-T - loaded 2 regions with 14 networks
2024-01-05 16:26:44.854 [ INFO] scanfile: ATSC-C - loaded 1 regions with 5 networks
2024-01-05 16:26:44.854 [ INFO] scanfile: ISDB-T - loaded 2 regions with 1297 networks
2024-01-05 16:26:46.727 [ INFO] epggrab: module /usr/bin/tv_grab_br created
2024-01-05 16:26:46.734 [ INFO] spawn: Executing "/bin/tv_grab_br"
2024-01-05 16:26:48.393 [ INFO] epggrab: module /bin/tv_grab_br created
2024-01-05 16:26:48.396 [ INFO] xmltv: xmltv: external socket enabled
2024-01-05 16:26:48.408 [ INFO] epgdb: gzip format detected, inflating (ratio 24.8% deflated size 1820541)
2024-01-05 16:26:48.486 [ INFO] epgdb: parsing 7332308 bytes
2024-01-05 16:26:48.893 [ INFO] epgdb: loaded v3
2024-01-05 16:26:48.893 [ INFO] epgdb: config 1
2024-01-05 16:26:48.893 [ INFO] epgdb: broadcasts 18360
2024-01-05 16:26:48.957 [ INFO] dvr: Purging obsolete autorec entries for current schedule
2024-01-05 16:26:48.974 [ NOTICE] START: HTS Tvheadend version 4.3-2120~g18effa8ad-dirty started, running as PID:10545 UID:0 GID:0, CWD:/home/root CNF:/home/root/.hts/tvheadend
2024-01-05 16:26:49.078 [ ERROR] iptv: unable to fetch data from url [404-0/146]
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
The port syntax on lines 2 & 3 seemed to change. Were you able to connect with IPv6?
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
No, giving the command "netstat -ltn" the log remains the same, ports 9981 and 9982 are not listening to ipv6
root@user:~# netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9981 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9982 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4200 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::21 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::445 :::* LISTEN
tcp6 0 0 :::8001 :::* LISTEN
tcp6 0 0 :::8002 :::* LISTEN
tcp6 0 0 :::8554 :::* LISTEN
tcp6 0 0 :::139 :::* LISTEN
tcp6 0 0 :::111 :::* LISTEN
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
It looks like I made mine work on my LibreELEC v4.2 test system, although I did not try to connect.
# netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:9090 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3702 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 :::8080 :::* LISTEN
tcp 0 0 :::36666 :::* LISTEN
tcp 0 0 :::9982 :::* LISTEN <=========
tcp 0 0 :::9981 :::* LISTEN <=========
tcp 0 0 :::445 :::* LISTEN
tcp 0 0 :::139 :::* LISTEN
tcp 0 0 :::111 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
I found where TVH was launched from and changed the command line parameters.
Are you able to provide some more information about your setup?
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
In your log, only IPV4 is apparently working, note that in the first column it says "tcp", if ipv6 was active, it should say "tcp6". My main tvheadend is running on an Enigma2 box, I have another one running on Libreelec, but the one I would like to enable IPV6 on is the one running on Enigma2, my intention is to be able to access it from the external network. If I can provide any more information, please let me know.
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
This is what my netstat looks like for normal TVH IPv4 operation.
# netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9982 0.0.0.0:* LISTEN <=========
tcp 0 0 0.0.0.0:9981 0.0.0.0:* LISTEN <=========
tcp 0 0 127.0.0.1:9090 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3702 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 :::8080 :::* LISTEN
tcp 0 0 :::36666 :::* LISTEN
tcp 0 0 :::445 :::* LISTEN
tcp 0 0 :::139 :::* LISTEN
tcp 0 0 :::111 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
I'm sorry, I can not help you any further as I don't use IPv6 anywhere.
Also, what do you mean by 'the external network'? Do you mean the Internet or do you mean from another computer on your local network?
If you mean the Internet: Could you try to use port forwarding on your router and forward from your public IPv6 address/port to the internal IPv4 address/port of your Enigma2 box?
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
To be quite honest, I don't have that much knowledge about IPV6, but as far as I know, unlike IPV4, with IPV6 each device receives an individual Public IP, so there is no need to do port forwarding.
In IPV4 we receive a single Public IP address, this address is assigned to the router and the router needs to do port forwarding to direct the flow that arrives at it to the appropriate device.
That's what I understand, but I could be wrong.
My intention here is to enable IPv6 on tvheadend so that I can access it from the internet, since the company put me on CGNAT I can no longer access my server from the internet, only on the local network.
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
Thanks!
I hope someone can help me with this.
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
I managed to get ipv6 to work!
But only manually, I still haven't been able to make tvheadend start automatically with IPv6 activated.
I managed to make IPv6 work like this:
systemctl stop tvheadend
/usr/bin/tvheadend -p /var/run/tvheadend.pid -c /home/root/.hts/tvheadend -6 --http_port 9981 --htsp_port 9982
This made tvheadend start with ipv6 enabled and this was the log:
netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4200 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::21 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::9981 :::* LISTEN
tcp6 0 0 :::445 :::* LISTEN
tcp6 0 0 :::9982 :::* LISTEN
tcp6 0 0 :::8001 :::* LISTEN
tcp6 0 0 :::8002 :::* LISTEN
tcp6 0 0 :::8554 :::* LISTEN
tcp6 0 0 :::139 :::* LISTEN
tcp6 0 0 :::111 :::* LISTEN
Can anyone help me make IPV6 start automatically?
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
You seem to be using systemctl.
I don't remember the exact details, but from memory this interacts with systemd. Have a look into how this works and where the command to start TVH is specified. You should be able to change the command line options there.
RE: Enable ipv6 in tvheadend - Added by Jonas Lang 11 months ago
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
Yeaah!!
Thanks for the tip, Delta Mike, I went to the systemd\system folder and opened the file "tvheadend.service"
It had the following settings:
[Service]
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -c /home/root/.hts/tvheadend
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5
So I modified the initialization command to:
[Service]
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -c /home/root/.hts/tvheadend -6 --http_port 9981 --htsp_port 9982
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5
Now it works perfectly!
Thank you very much for your help and patience.
RE: Enable ipv6 in tvheadend - Added by Delta Mike Charlie 11 months ago
Marcos Santos wrote:
Now it works perfectly!
Well done. Please let us know if you also get external access working too.
RE: Enable ipv6 in tvheadend - Added by Marcos Santos 11 months ago
Yes, I have full access via the internet now (external network). Just type my IPV6 address in square brackets like [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:9981 in the browser and I can access the Web interface.
Any doubt I am available.