(2016-08-28, 23:12)kchmon Wrote: I set IP to 192.168.1.123 in mythtv.pvr settings and it displays an error: "No response from MythTV Backend" when I restart.
Kodi log is here: http://pastebin.com/A3sDe3Ch
OK, I think I have found part of what is causing your problem. I just setup a new install of mythtv 0.28/fixes, together with Kodi 16.1 and pvr.mythtv addon using Mythbuntu 16.04. Everything works fine when I use a static IP on the PC, this is not the same as a Router reservation. I switched to using a Router reservation to set the IP and mythbackend appears to work with mythfrontend , but mythbackend is not listening on the IP address, it only listens on local addresses. The problem is that mythtvbackend is starting before networking has been fully established, this is most common with SSD, but I have seen it with spinning drives as well.
This can easily be confirmed by running netstat in terminal, do after a reboot
Router Reservation :
Code:
sudo netstat -nlp | grep 6543
tcp 0 0 127.0.0.1:6543 0.0.0.0:* LISTEN 1816/mythbackend
tcp6 0 0 ::1:6543 :::* LISTEN 1816/mythbackend
sudo netstat -nlp | grep 6544
tcp 0 0 127.0.0.1:6544 0.0.0.0:* LISTEN 1816/mythbackend
tcp6 0 0 ::1:6544 :::* LISTEN 1816/mythbackend
Edit
If you get similar output to the above, you can do (this stops and starts mythtv-backend)
sudo systemctl stop mythtv-backend.service
followed by
sudo systemctl start mythtv-backend.service
and then repeat the netstat command, this time you should also see the external IP
Static IP
Code:
sudo netstat -nlp | grep 6543
tcp 0 0 192.168.0.28:6543 0.0.0.0:* LISTEN 3386/mythbackend
tcp 0 0 127.0.0.1:6543 0.0.0.0:* LISTEN 3386/mythbackend
tcp6 0 0 fe80::ef95:9034:d7:6543 :::* LISTEN 3386/mythbackend
tcp6 0 0 ::1:6543 :::* LISTEN 3386/mythbackend
sudo netstat -nlp | grep 6544
tcp 0 0 192.168.0.28:6544 0.0.0.0:* LISTEN 3386/mythbackend
tcp 0 0 127.0.0.1:6544 0.0.0.0:* LISTEN 3386/mythbackend
tcp6 0 0 fe80::ef95:9034:d7:6544 :::* LISTEN 3386/mythbackend
tcp6 0 0 ::1:6544 :::* LISTEN 3386/mythbackend
The easiest way (in my view, there are other options like modifying systemd mythtv-backend.service file, but this may get overwritten when mythtv is updated) is to use a static IP on the PC (keep the resevation on the Router) and adjust the file /etc/network/interfaces to have a Static IP
Here is an example /etc/network/interfaces file:
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet static
address 192.168.0.28
netmask 255.255.255.0
gateway 192.168.0.2
network 192.168.0.0
broadcast 192.168.0.255
dns-nameservers 192.168.0.2
You will need to adjust the file to suit your network, the lines needing adjustment are:
auto enp2s0
iface enp2s0 inet static
address 192.168.0.28
gateway 192.168.0.2
dns-nameservers 192.168.0.2
Mike