Change defult port 9981 9982 on tvheadend
Added by Ian Morrison almost 6 years ago
I am using HTS Tvheadend 4.2.7 on a Linux PC with TBS 5520SE Sat Tuner (Freesat) and HTS Tvheadend 4.2.4 on a Raspberry Pi with TV Hat (Freeview).
I use dynamic dns to map a changing IP to one of the boxes but cannot use the other box in the same way.
Both boxes are using ports 9981 and 9982
If I use my local VPN on the remote device I want to view them from then I can contact the boxes with their local IP address (192.168.0.x).
The online documentation says you can't change the default port numbers so am I stuck using VPN to contact these boxes from a remote network?
Many Thanks
IanM
Replies (1)
RE: Change defult port 9981 9982 on tvheadend - Added by Joe User almost 6 years ago
Not sure about 4.2, but 4.3 allows you to specify ports on the command line:
$ build.linux/tvheadend --help Usage: build.linux/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. -U, --dbus Enable DBus -e, --dbus_session DBus - use the session message bus instead of the system one -a, --adapters Only use specified DVB adapters (comma-separated, -1 = none) --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 For more information please visit the Tvheadend website: https://tvheadend.org
If the options are not available in 4.2, you can use iptables to redirect from alternative ports to the tvheadend ports.