Sparkman wrote: 
> Thanks.  LMS is on the 168.1 network as well.  All my players are there
> and I'm accessing LMS from my PC on the 168.1 network (the .2 network is
> not accessible from the .1 network).   Not sure why it thinks LMS is on
> the .2 network then.  Where does the plugin pick that up from?  Should
> hard coding it to use .1 not resolve it?
> 

I don't know. If you look here

Code:
--------------------
    
  Starting Squeeze2cast: 
/share/HDA_DATA/.qpkg/LogitechMediaServer/SlimServer/Cache/InstalledPlugins/Plugins/CastBridge/Bin/squeeze2cast-x86
 -Z -I -f 
/share/HDA_DATA/.qpkg/LogitechMediaServer/SlimServer/Logs/castbridge.log -x 
/share/HDA_DATA/.qpkg/LogitechMediaServer/SlimServer/prefs/castbridge.xml
  [17:42:22.429818] main:1237 Starting squeeze2cast version: v1.21.1 (Mar 13 
2020 @ 17:02:45)
  [17:42:22.444887] Start:1011 Binding to 192.168.1.119:49152
  [17:42:22.576261] AddCastDevice:926 [0x8186980]: adding renderer (CCU-FR)
  [17:42:22.579850] AddCastDevice:926 [0x818755c]: adding renderer (CC-MB)
  [17:42:22.580803] slimproto:855 squeezelite [0x8108100] <=> player [0x8186980]
  [17:42:22.581128] slimproto:856 [0x8108100] connecting to 192.168.2.119:3483
  [17:42:22.583783] slimproto:886 [0x8108100] connected
  [17:42:22.584354] slimproto:855 squeezelite [0x810c040] <=> player [0x818755c]
  [17:42:22.584591] sendHELO:133 [0x8108100] cap: 
CanHTTPS=1,Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=0,HasDigitalOut=1,MaxSampleRate=192000,aac,ogg,ops,flc,aif,pcm,mp3
  [17:42:22.584654] slimproto:856 [0x810c040] connecting to 192.168.2.119:3483
  
--------------------


This address is the result of an answer to a broadcast request "hey, is
there an LMS server around ?" and the IP address is the IP of the
responder. This is squeezelite code that has been using a lot, that
specific part I only modified it to get more information from the
discovery (like the CLI port). So best in your case is to force the LMS
server address (which is different from the "socket to use"). You'll
find that in the common player's settings, under "Player discovery
options".

Meanwhile, I looked into LMS server code and there is an option to
explicitely query LMS for it's IP address (IPAD), but again it should
not be needed, @ralphy if you read this, let me know if you think we
should add that to main squeezelite code, if you have heard about users
having LMS detected on the wrong net (again, this is this part of the
code in slimproto.c)


Code:
--------------------
    
        do {
  
                LOG_INFO("sending discovery");
                memset(&s, 0, sizeof(s));
  
                if (sendto(disc_sock, buf, 1, 0, (struct sockaddr *)&d, 
sizeof(d)) < 0) {
                        LOG_INFO("error sending disovery");
                }
  
                if (poll(&pollinfo, 1, 5000) == 1) {
                        char readbuf[10];
                        socklen_t slen = sizeof(s);
                        recvfrom(disc_sock, readbuf, 10, 0, (struct sockaddr 
*)&s, &slen);
                        LOG_INFO("got response from: %s:%d", 
inet_ntoa(s.sin_addr), ntohs(s.sin_port));
                }
  
                if (default_server) {
                        server_addr(default_server, &s.sin_addr.s_addr, &port);
                }
  
        } while (s.sin_addr.s_addr == 0 && running);
  
--------------------


Even with the type "disovery" which has been here for many years :)



LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi
B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010,
AppleTV 4, Airport Express, GGMM E5
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=104614

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to