Bug 9462 - xPL Plugin initializes with wrong local ip
: xPL Plugin initializes with wrong local ip
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: xPL
: 7.2
: PC Debian Linux
: -- normal (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-11 01:06 UTC by Timo Krieger
Modified: 2009-07-31 10:29 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Krieger 2008-09-11 01:06:09 UTC
I've installed SqueezeCenter on a ubuntu machine and the xPL plugin is not working correctly. It uses 127.0.1.1 as $localip. The installed xPL Hub ignores this client since it uses the external ip for comparison. So the xPL plugin never gets xPL messages forwarded.

fix:
package Slim::Plugin::xPL::Plugin;

replace line 55-57:
====
 my $computername = Slim::Utils::Network::hostName();

 $localip = inet_ntoa((gethostbyname($computername))[4]);
====
with this:
====
 $localip = Slim::Utils::Network::hostAddr;
====
to use exactly the same external ip address for this plugin as for the SqueezeCenter.
Comment 1 Chris Owens 2008-09-22 10:13:14 UTC
Andy to review the fix and commit if ok.

Thanks Timo!
Comment 2 Andy Grundman 2008-09-23 08:46:39 UTC
Thanks, patch applied as 7.2.1 change 23252.
Comment 3 James Richardson 2008-12-15 12:07:37 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 4 Chris Owens 2009-07-31 10:29:50 UTC
Reduce number of active targets for SC