I have tethering problems using Libreelec 8.0.2 on my RasPi3.
With LAN cable connected to my home network the RasPi gets IP address 192.168.4.50 with netmask 255.255.0.0. When I connect to my RasPi3 then via WiFi tethering I get IP address 172.16.0.2 and I am able to open 172.16.0.1:8080 (Kodi Web UI) and also 172.16.0.1:9981 (tvheadend server web UI). Also accessing the internet (router has 192.168.0.2) works fine.
The problem starts if LAN is not connected to my RasPi3 and I only like to access tvheadend via WiFi tethering. With that setup I get IP address 192.168.0.2 on my client and can access Kodi web UI with 192.168.0.1:8080. But 192.168.0.1:9981 permanently returns a web page with "access prohibited".
I am not sure if this is OpenELEC related or a configuration problem of tvheadend server add-on - please help to solve it somehow.
Many thanks.

LibreElec Config / Tethering
-
SwedishChef -
July 4, 2017 at 2:02 PM -
Thread is Unresolved
-
-
- Official Post
Why would you disconnect your rpi from the LAN?
-
My rpi should acts as a wireless tvheadend server in a camper. No LAN there
Any ideas where this problem could be located?
-
- Official Post
Prefix in tvheadend?
-
- Official Post
When you say "LAN is not connected" - was lan connected when you booted, then you unplugged it, or was it disconnected at bootup?
What does netstat tell you about what IP addresses tvheadend is bound to? netstat -tanp|grep 9981
-
Prefix in tvheadend?
should be fine!?
When you say "LAN is not connected" - was lan connected when you booted, then you unplugged it, or was it disconnected at bootup?
What does netstat tell you about what IP addresses tvheadend is bound to? netstat -tanp|grep 9981
Tethering disabled, reboot, WLAN connect to my home network and gets IP 192.168.11.67 and with that I can access 192.168.11.67:9981
tcp 0 0 0.0.0.0:9981 0.0.0.0:* LISTEN 492/tvheadend
tcp 0 0 192.168.11.67:9981 192.168.4.1:59229 ESTABLISHED 492/tvheadend
Tethering enabled, reboot, WLAN gets IP 192.168.0.1 and I access it from 192.168.0.2, 192.168.0.1:9981 says "ERR_CONNECTION_REFUSED"
LibreELEC:~ # netstat -tanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:4713 0.0.0.0:* LISTEN 261/pulseaudio
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 517/dispmanx_vncser
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 516/kodi.bin
tcp 0 0 0.0.0.0:1203 0.0.0.0:* LISTEN 516/kodi.bin
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 322/sshd
tcp 0 0 0.0.0.0:36666 0.0.0.0:* LISTEN 516/kodi.bin
tcp 0 1392 192.168.0.1:22 192.168.0.2:59703 ESTABLISHED 589/0
tcp 0 0 :::4713 :::* LISTEN 261/pulseaudio
tcp 0 0 :::5900 :::* LISTEN 517/dispmanx_vncser
tcp 0 0 :::111 :::* LISTEN 1/systemd
tcp 0 0 :::8080 :::* LISTEN 516/kodi.bin
tcp 0 0 :::22 :::* LISTEN 322/sshd
tcp 0 0 :::36666 :::* LISTEN 516/kodi.bin
tcp 0 0 :::36667 :::* LISTEN 516/kodi.bin
tcp 0 0 :::9090 :::* LISTEN 516/kodi.bin
With that setup tvheadend is not bound!!
Any more ideas?
-
- Official Post
Indeed tvheadend doesn't even seem to be running.
-
I did some more test and iIt looks like tvheadend only starts if
a) tethering is disabled or
b) LAN cable is attached an wired network gets an IP address. With that tethering can be activated and tvheadend starts and can be reached.
Does anyone has an idea how to solve this?
-
- Official Post
Can't connect to Tvheadend IP sounds similar, and there are a few other threads in Kodi forums that sound the same, but none of them have a conclusion. As it's tvheadend that doesn't start, look at the tvheadend server log for clues.