I am using Linux Ubuntu 14.04.1 LTS running PMS 0.9.11.7 and PHT 1.3.6. It is a multiple IPs environment with 2 ethernet devices, one is the main LAN device and the other is used only for IPTV (required).
Everything works perfect, except for casting from any other computer on the LAN using Plex/Web. And this happens only with Plex/Web, any other client in the LAN has no problem casting to this PHT.
As I have learned (see my post in Plex/Web forum, Plex/Web uses the information that the server provides under /clients URL. (After this post on Plex/Web forum it seems that few things in PHT and Plex/Web have been fixed, so that the wrong behaviour is more clear now and the problem seems to lie on PHT side).
No matter what changes I do on the OS network stack, PHT always advertises the same IP. So I make sure one or the other of the ethernet devices driver is loaded first and so is one or the other IP listed first, and I also change the IP number so that it should be ordered first... This is how the devices are IPs are listed by PHT from the log for the four different combinations:
INFO: Network interfaces: INFO: * 1 lo (127.0.0.1) (loopback: 1) INFO: * 2 ethtv (10.2.2.2) (loopback: 0) INFO: * 5 bond0 (10.1.2.2) (loopback: 0)INFO: Network interfaces:
INFO: * 1 lo (127.0.0.1) (loopback: 1)
INFO: * 2 ethtv (10.0.2.2) (loopback: 0)
INFO: * 5 bond0 (10.1.2.2) (loopback: 0)INFO: Network interfaces:
INFO: * 1 lo (127.0.0.1) (loopback: 1)
INFO: * 4 bond0 (10.1.2.2) (loopback: 0)
INFO: * 5 ethtv (10.2.2.2) (loopback: 0)INFO: Network interfaces:
INFO: * 1 lo (127.0.0.1) (loopback: 1)
INFO: * 4 bond0 (10.1.2.2) (loopback: 0)
INFO: * 5 ethtv (10.0.2.2) (loopback: 0)
IP 10.1.2.2 is the main LAN IP and it is the one I need to be advertised by PHT and 10.0.2.2 or 10.2.2.2 is the IP used for IPTV and is not reachable from the LAN network.
With each change I restart the system, and no matter which combination, it always advertises the IP assigned to ethtv (IPTV), so what I always get when I call /clients on the server is like this:
Now on Plex/Web side it tries to cast to this IP, but it is not accessible.
How can I get PHT to advertise the IP I want/need?
On the other hand if I call https://plex.tv/pms/resources.xml I get this response, which shows that the main IP is listed first:
TIA!