<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 16, 2016 at 2:35 PM, Mike Perkins <span dir="ltr"><<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5">On 16/04/16 19:10, Mike Perkins wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Localhost means "this computer". If you supply that address to the backend, it won't know where to<br>
send anything other than itself.<br>
<br>
For any mythtv setup that uses more than a single machine that is both back and front end, you<br>
/must/ give every device an IP address and supply that address to mythtv through setup. That is the<br>
only way that the backend knows where everything is.<br>
<br>
</blockquote></div></div>
Meh. I meant "If the frontend supplies that address to the backend, the backend won't know where to send anything other than itself."</blockquote><div><br></div><div>Thanks.  I understand localhost = this computer = <span style="font-size:12.8px">127.0.0.1 (usually).  My frontend and backend are on the same machine.  So I believe that means they could use either localhost or </span><span style="font-size:12.8px">192.168.1.100 or some combination to talk to each other.  In fact, my frontend is using </span><span style="font-size:12.8px">localhost and my backend (at least as far as mythtv-setup/General is concerned) is set to 192.168.1.100, and they are working perfectly well together.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">My problem is that mythtv-status and mythweb want to access the database via </span><span style="font-size:12.8px"><a href="http://192.168.1.100:6543">192.168.1.100:6543</a>, and the connection gets rejected.  I see two possible solutions:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">1) Change a setting / config file somewhere so they instead ask for <a href="http://127.0.0.1:6543">127.0.0.1:6543</a>, or </span></div><div><span style="font-size:12.8px">2) </span><span style="font-size:12.8px">Change a setting / config file somewhere so that port 6543 is happy communicating via </span><span style="font-size:12.8px">192.168.1.100 (I believe this is the preferred solution if I ever want to use a remote front end.)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">So far I haven't been able to get either 1 or 2 to work.  My latest discovery is this:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">$ sudo netstat -tnlp | grep :3306</span><br></div><div><div style=""><span style="font-size:12.8px">tcp6       0      0 :::3306                 :::*                 LISTEN      2209/mysqld     </span></div><div style=""><span style="font-size:12.8px"><br></span></div><div style=""><span style="font-size:12.8px">$ sudo netstat -tnlp | grep :6543</span></div><div style=""><span style="font-size:12.8px">tcp        0      0 <a href="http://127.0.0.1:6543">127.0.0.1:6543</a>      0.0.0.0:*       LISTEN      2550/mythbackend</span></div><div style=""><span style="font-size:12.8px">tcp6      0      0 ::1:6543                 :::*                LISTEN      2550/mythbackend</span></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px">Which is a reminder that port 6543 belongs to mythbackend, not mysq.  I'd like to change the <a href="http://127.0.0.1:6543">127.0.0.1:6543</a> in the second to last line to <a href="http://192.168.1.100:6543">192.168.1.100:6543</a>.  But I'm not sure where I do that.  The IP addresses in mythtv-setup/General are already set to 192.168.1.100.  So I think it's a field I need to change in the database (hostname?), but I don't know how to do that yet - looking into it now.  But that doesn't sound completely right either, since this database is a copy of the database on my old machine (with the same 192.168.1.100 IP address) where mythweb and mythtv-status worked fine.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Am I on the right track?</div></div></div></div>