Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread BosseJ


pavowren wrote: 
> thanks guys for your valuable, thoughtful ideas!
> d6jg/BosseJ, let me mull over your suggestions but for now,
> i 'seem' to have come up with a working solution.
> 
> 1) plugged in an old linksys router (running dd-wrt) and gave it
> 192.168.1.1 lan addr.  i did this once before but hated the idea of it
> being ON all the time.
> 2) specified this to be the gateway/router for eth0.  previously this
> was a serious problem since when hotspot was nearby, it would not be
> used; i.e., no internet and could not stream spotify.
> 3) solution for #2 was to specify "interface wlan0 / metric 100"
> (suggested by epoch1970) in /etc/dhcpcd.conf indicating that we prefer
> wifi over wired interface.  with this, now when hotspot appears, pi has
> internet access.
> 
> and the setup is working out for now... but the questions remain:
> 1) why can't jivelite deal with the simplest setup of all components
> being in the same box? why not default to localhost when any connection
> fails?
> 2) how can i get rid of the linksys router, a 'dummy' gateway?  
> 3) jivelite being UI for the player squeezelite, why is it talking
> directly to LMS?  i imagined the design was
> jivelite<-->squeezelite<-->lms.

Glad to see you found a solution with reasonable changes!

If I may comment on your questions:

Code:

1) why can't jivelite deal with the simplest setup of all components being 
in the same box? why not default to localhost when any connection fails?


I think JiveLite was designed to emulate the behavior of a dedicated
player device such as the SB3 or Touch. In this scenario the LMS server
was always on some other computer over the network. Squeezelite is
simply the network stream decoder translating the stream (or file) to a
DAC playable format.

Code:

2) how can i get rid of the linksys router, a 'dummy' gateway?

  
I'm sure you work something out. You have a couple of suggestions above
:)

Code:

3) jivelite being UI for the player squeezelite, why is it talking directly 
to LMS?  i imagined the design was jivelite<-->squeezelite<-->lms


No, JiveLite is not the UI for Squeezelite. JiveLite is the UI for LMS
since that is where the music is stored and everything is managed, where
the functional additions are implemented in plugins etc. Squeezelite
have no such functionality whatsoever.



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread pavowren


BosseJ wrote: 
> Hmm, I always find it hard to follow my advice :-( 
> I am not a windows user (well, some perhaps, but by no means with any
> administrator skills) so I cannot really recommend a dns caching server
> for windows with confidence, but I could hint at one that seems to do
> what's expected for a simple test:
> http://mayakron.altervista.org/wikibase/show.php?id=AcrylicHome
> I guess there's a few hours learning curve even for that, but you seem
> to have skills so maybe it goes faster for you.
> 
> Other solutions to (temporarily) add a dns server to your backbone LAN
> would be to install dnsmasq on some *nix based device. Perhaps your NAS
> (which I think you mentioned earlier)? That would also open up the
> possibility to run dnsmasq as a combined dns/dhcp server on your
> backbone which would ease future expansions, such as adding more
> devices. 
> You could probably also install dnsmasq on your PI3B+, but that would
> further complicate things I'm afraid (you would need to force dnsmasq to
> only listen on etho and not lo or wlan0).

thanks guys for your valuable, thoughtful ideas!
d6jg/BosseJ, let me mull over your suggestions but for now,
i 'seem' to have come up with a working solution.

1) plugged in an old linksys router (running dd-wrt) and gave it
192.168.1.1 lan addr.  i did this once before but hated the idea of it
being ON all the time.
2) specified this to be the gateway/router for eth0.  previously this
was a serious problem since when hotspot was nearby, it would not be
used; i.e., no internet and could not stream spotify.
3) solution for #2 was to specify "interface wlan0 / metric 100"
(suggested by epoch1970) in /etc/dhcpcd.conf indicating that we prefer
wifi over wired interface.  with this, now when hotspot appears, pi has
internet access.

and the setup is working out for now... but the questions remain:
1) why can't jivelite deal with the simplest setup of all components
being in the same box? why not default to localhost when any connection
fails?
2) how can i get rid of the linksys router, a 'dummy' gateway?  
3) jivelite being UI for the player squeezelite, why is it talking
directly to LMS?  i imagined the design was
jivelite<-->squeezelite<-->lms.



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread BosseJ


pavowren wrote: 
> yes, i was over at the jivelite forum and it seems some folks had a
> similar (but not quite mine) situation where they removed the ethernet
> connection, began using wifi and then, jivelite would fail to connect to
> lms.  common solution was re-installation or reset with wifi present.  i
> was about to follow suit but now believe it would be futile in my case. 
> as you point out, problem is jivelite's persistence for wifi. even after
> hotspot goes away, it retains the wifi address, so of course, it cannot
> connect.  yes, it should be able to handle the simplest configuration
> where all are co-resident in the same machine!
> 
> as for trying out a 'dummy' dns server, i will look into using a local
> router if it can be set up as such.
> otherwise, do you know of a windows10 software that can do this quick
> and dirty?
> 
> this old retired brain is getting a real workout, hopefully keeping the
> synapses alive...

Hmm, I always find it hard to follow my advice :-( 
I am not a windows user (well, some perhaps, but by no means with any
administrator skills) so I cannot really recommend a dns caching server
for windows with confidence, but I could hint at one that seems to do
what's expected for a simple test:
http://mayakron.altervista.org/wikibase/show.php?id=AcrylicHome
I guess there's a few hours learning curve even for that, but you seem
to have skills so maybe it goes faster for you.

Other solutions to (temporarily) add a dns server to your backbone LAN
would be to install dnsmasq on some *nix based device. Perhaps your NAS
(which I think you mentioned earlier)? That would also open up the
possibility to run dnsmasq as a combined dns/dhcp server on your
backbone which would ease future expansions, such as adding more
devices. 
You could probably also install dnsmasq on your PI3B+, but that would
further complicate things I'm afraid (you would need to force dnsmasq to
only listen on etho and not lo or wlan0).



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread d6jg

If you really want to continue to use the phone as the connection to the
internet then what I would do is.

I’d get a wireless Ethernet router. That’s a router with Ethernet
connection Wan side and normal lan / WiFi onnthe private side.
Then I’d plug a Wireless Access Point configured in client mode into the
WAN port. I’d use this to connect to your mobile hotspot when it’s
available,
I’d rebuild the Pi as a LAN only device and give it a reserved IP from
the private side dhcp server.
Then I’d open and forward TCP 9000 & TCP/UDP 3483 from the WAN interface
to the IP of the Pi. That will let your phone access an Control LMS
The existence of a proper router will ensure that LMS will work with or
without an internet connection.
The port forwarding is safe in this scenario even without password as
there is a further router in play in the form of the hotspot.
I appreciate you have added 2 boxes into the equation but this will work
and doesn’t involve an additional SIM card.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread pavowren


BosseJ wrote: 
> Perhaps you could ask Ralphy in the JiveLite thread in these forums,
> https://forums.slimdevices.com/showthread.php?98156-Announce-JiveLite-cut-down-squeezebox-control-application
> if there is any way to force JiveLite to always use the eth0
> 192.168.1.23 IP as the LMS server and never the wireless IP?
> Assuming you compiled from the Github sources, Ralphy's fork, and not
> from Googlecode archive (Triode's original sources).
> 
> BTW, it seems as JiveLite only communicates with the LMS server and the
> LMS server then controls the Squeezelite player software. There seems to
> be no direct connection between JiveLite and Squeezelite. This explains
> why you only loose control ability on the local display of the PI3B+,
> but never on the PC/laptop browser to the LMS web gui. LMS listens on
> all interfaces, if wlan fails it doesn't matter for the  eth0 traffic.
> However, JiveLite chooses one interface for communication with LMS and
> sticks with that. Besides, JiveLite seem to prefer the wlan, perhaps
> because that is the only network route which can provide DNS replies.
> (You could, as a test for this speculation, setup a small DNS server
> elsewhere on your network just to provide replies, a small footprint
> caching DNS will be fine. Then start the PI3B+ without the hotspot
> available and see what gives - check the JiveLite configs for LMS server
> IP etc.)
> 
> edit: you see in this source from Github:
> https://github.com/ralph-irving/jivelite/blob/master/src/jive_dns.c that
> JiveLite monitors the resolv.conf for changes. That's why it overwrites
> the LMS server address in the lua probably when the Pi3B+ connects to
> the hotspot.

yes, i was over at the jivelite forum and it seems some folks had a
similar (but not quite mine) situation where they removed the ethernet
connection, began using wifi and then, jivelite would fail to connect to
lms.  common solution was re-installation or reset with wifi present.  i
was about to follow suit but now believe it would be futile in my case. 
as you point out, problem is jivelite's persistence for wifi. even after
hotspot goes away, it retains the wifi address, so of course, it cannot
connect.  yes, it should be able to handle the simplest configuration
where all are co-resident in the same machine!

as for trying out a 'dummy' dns server, i will look into using a local
router if it can be set up as such.
otherwise, do you know of a windows10 software that can do this quick
and dirty?

this old retired brain is getting a real workout, hopefully keeping the
synapses alive...



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread d6jg


BosseJ wrote: 
> Perhaps you could ask Ralphy in the JiveLite thread in these forums,
> https://forums.slimdevices.com/showthread.php?98156-Announce-JiveLite-cut-down-squeezebox-control-application
> if there is any way to force JiveLite to always use the eth0
> 192.168.1.23 IP as the LMS server and never the wireless IP?
> Assuming you compiled from the Github sources, Ralphy's fork, and not
> from Googlecode archive (Triode's original sources).
> 
> BTW, it seems as JiveLite only communicates with the LMS server and the
> LMS server then controls the Squeezelite player software. There seems to
> be no direct connection between JiveLite and Squeezelite. This explains
> why you only loose control ability on the local display of the PI3B+,
> but never on the PC/laptop browser to the LMS web gui. LMS listens on
> all interfaces, if wlan fails it doesn't matter for the  eth0 traffic.
> However, JiveLite chooses one interface for communication with LMS and
> sticks with that. Besides, JiveLite seem to prefer the wlan, perhaps
> because that is the only network route which can provide DNS replies.
> (You could, as a test for this speculation, setup a small DNS server
> elsewhere on your network just to provide replies, a small footprint
> caching DNS will be fine. Then start the PI3B+ without the hotspot
> available and see what gives - check the JiveLite configs for LMS server
> IP etc.)
> 
> edit: you see in this source from Github:
> https://github.com/ralph-irving/jivelite/blob/master/src/jive_dns.c that
> JiveLite monitors the resolv.conf for changes. That's why it overwrites
> the LMS server address in the lua probably when the Pi3B+ connects to
> the hotspot.

I think you have now isolated the real issue which is completely
different to what was originally posted.
I fixed by uninstalling and reinstalling Jivelite but I was using
piCorePlayer which has a version of Jivelite precompiled and is one
click install and / or uninstall.
Given that there is a network bridge in play I cannot see how you will
ever get the phone to control LMS but hey...



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-25 Thread BosseJ


pavowren wrote: 
> over at jivelite forum, bunch of people were talking about this!
> how did you uninstall/reinstall jivelite exactly?  'cause i made it some
> months ago following http://hagensieker.com/jivelite/index.php
> instructions.
> 
> snooping around the .jivelite directory, i found SlimDiscovery.lua which
> had the following line:
> {serverInit={ip="192.168.43.252",}
> that's the wlan0 address which the hotspot dynamically assigned.
> of course, when hotspot goes away, this addr is no longer around.
> so i changed it 127.0.0.1 or 192.168.1.23 but neither worked.  jivelite
> fails to connect to LMS.
> do i need to somehow compile this .lua file?
> 
> when i took the mobile hotspot near the pi,
> this file magically returned to what it was, 192.168.43.252.
> i assume jivelite is doing this but why and how?

Perhaps you could ask Ralphy in the JiveLite thread in these forums,
https://forums.slimdevices.com/showthread.php?98156-Announce-JiveLite-cut-down-squeezebox-control-application
if there is any way to force JiveLite to always use the eth0
192.168.1.23 IP as the LMS server and never the wireless IP?
Assuming you compiled from the Github sources, Ralphy's fork, and not
from Googlecode archive (Triode's original sources).

BTW, it seems as JiveLite only communicates with the LMS server and the
LMS server then controls the Squeezelite player software. There seems to
be no direct connection between JiveLite and Squeezelite. This explains
why you only loose control ability on the local display of the PI3B+,
but never on the PC/laptop browser to the LMS web gui. LMS listens on
all interfaces, if wlan fails it doesn't matter for the  eth0 traffic.
However, JiveLite chooses one interface for communication with LMS and
sticks with that. Besides, JiveLite seem to prefer the wlan, perhaps
because that is the only network route which can provide DNS replies.
(You could, as a test for this speculation, setup a small DNS server
elsewhere on your network just to provide replies, a small footprint
caching DNS will be fine. Then start the PI3B+ without the hotspot
available and see what gives - check the JiveLite configs for LMS server
IP etc.)



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren


d6jg wrote: 
> Actually I think I have seen this before now I think about it.
> I was building a piCorePlayer player which was initially wired. After
> build I switched to wireless and I recall I had to uninstall and
> reinstall Jivelite to get it to recognise that I was now using a
> different interface. 
> Since you want LMS on the LAN interface try dropping the WiFi connection
> and reinstall Jivelite when only the LAN is operative.

over at jivelite forum, bunch of people were talking about this!
how did you uninstall/reinstall jivelite exactly?  'cause i made it some
months ago following http://hagensieker.com/jivelite/index.php
instructions.

snooping around the .jivelite directory, i found SlimDiscovery.lua which
had the following line:
{serverInit={ip="192.168.43.252",}
that's the wlan0 address which the hotspot dynamically assigned.
of course, when hotspot goes away, this addr is no longer around.
so i changed it 127.0.0.1 or 192.168.1.23 but neither worked.  jivelite
fails to connect to LMS.
do i need to somehow compile this .lua file?

when i took the mobile hotspot near the pi,
this file magically returned to what it was, 192.168.43.252.
i assume jivelite is doing this but why and how?



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread bpa


pavowren wrote: 
> thanks for that.
> i was reading the doc wrong.
> here's what the log says:
> 
> [14:46:50.504244] slimproto:883 connecting to 127.0.0.1:3483
> [14:46:50.504824] slimproto:908 unable to connect to server 0
> [14:46:55.505206] slimproto:908 unable to connect to server 0
> [14:47:00.505734] slimproto:922 connected
> [14:47:00.505918] slimproto:933 local player
> 
> questions:
> 1. is server 0 at 127.0.0.1?
> 2. is 3483 special port for players?
> 3. so did it eventually connect?  it says "connected".

A good connect would typically look like . Why no discovery on your
system ?

Code:


  19:02:39.408802] discover_server:756 sending discovery
  [19:02:39.409022] discover_server:767 got response from: 192.168.1.58:3483
  [19:02:39.484130] slimproto:848 connecting to 192.168.1.58:3483
  [19:02:39.484239] slimproto:881 connected
  [19:02:39.484256] slimproto:892 local player
  [19:02:39.484265] sendHELO:124 mac: 74:da:38:a6:39:77
  



Personally I would avoid using 127.0.0.1 (loopback) as it is equivalent
to using "me" in a conversation instead of a proper name - it is
possible source of confusion.
Can you not get squeezelite to talk to  LMS at 192.168.1.23 ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg


http://wiki.slimdevices.com/index.php/Connecting_remotely
Ports explained



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren


bpa wrote: 
> If you want see what is going on - enable logging and look at log.
> 
> For example, run squeezelite with "-d slimproto=info" to check that it
> connects to the LMS.

thanks for that.
i was reading the doc wrong.
here's what the log says:

[14:46:50.504244] slimproto:883 connecting to 127.0.0.1:3483
[14:46:50.504824] slimproto:908 unable to connect to server 0
[14:46:55.505206] slimproto:908 unable to connect to server 0
[14:47:00.505734] slimproto:922 connected
[14:47:00.505918] slimproto:933 local player

questions:
1. is server 0 at 127.0.0.1?
2. is 3483 special port for players?
3. so did it eventually connect?  it says "connected".



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg

Probably but I don’t know.
Seek out a post by Ralphy and pm him 
I don’t now think this is a networking or squeezelite issue as you have
demonstrated that both work it’s solely Jivelite 
(You do have a bridge in play though)



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren


d6jg wrote: 
> Actually I think I have seen this before now I think about it.
> I was building a piCorePlayer player which was initially wired. After
> build I switched to wireless and I recall I had to uninstall and
> reinstall Jivelite to get it to recognise that I was now using a
> different interface. 
> Since you want LMS on the LAN interface try dropping the WiFi connection
> and reinstall Jivelite when only the LAN is operative.

as i recall, i built jivelite from scratch (via
https://github.com/ralph-irving/triode-jivelite.git).
surely i shouldn't have to do it again.  
isn't there some magical config file that would tell jivelite to use lan
instead of wlan?



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread bpa


If you want see what is going on - enable logging and look at log.

For example, run squeezelite with "-d slimproto=info" to check that it
connects to the LMS.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg


Actually I think I have seen this before now I think about it.
I was building a piCorePlayer player which was initially wired. After
build I switched to wireless and I recall I had to uninstall and
reinstall Jivelite to get it to recognise that I was now using a
different interface. 
Since you want LMS on the LAN interface try dropping the WiFi connection
and reinstall Jivelite when only the LAN is operative.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren

d6jg wrote: 
> When you control squeezelite via web browser which interface do you
> connect to? 
> Look in LMS settings / information. Are there two instances of your Pi
> there as players? 
> I’d say that Jivelite is somehow trying to control squeezelite on the
> wrong interface?

on the browser, i connect to LMS using 192.168.1.23:9000.
that's the static ip addr of raspberrypi's eth0.
LMS shows only one player, squeezelite, at 127.0.0.1.

i didn't expect jivelite to be doing any network requests. it's just UI
for squeezelite.
that's why i'm picking on squeezelite.
tried to turn on debug but of course, it doesn't work. i specified the
-d log=debug option for squeezelite but
the log file is empty. but of course...



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread DJanGo


pavowren wrote: 
> 
> - ALL devices connect to internet via the mobile hotspot.
> 

How do you do that?
Has every from these all devices a wlan nic?
pavowren wrote: 
> 
> - even lan-connected (i.e. ethernet wired) devices use the hotspot for
> internet, so the raspberryPi does not have to be a router, bridge or
> access point.
> 
That means some device with two nics a cable (ethernet) and a wireless
(IEEE 802.11) act as a bridge. Cause you gor two different
networktypes.

pavowren wrote: 
> 
> - without the hotspot, via a browser over lan connection, i have no
> trouble connecting to LMS and playing its local music.
> - THE (and only) problem is that at raspberryPi itself (it has a local
> display managed by jivelite), if i attempt to play music, squeezelite
> cannot connect to LMS!
> 

show us your jivelite setup in detail !



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg

When you control squeezelite via web browser which interface do you
connect to? 
Look in LMS settings / information. Are there two instances of your Pi
there as players? 
I’d say that Jivelite is somehow trying to control squeezelite on the
wrong interface?



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread bpa


pavowren wrote: 
> time to leave networking and pick on squeezelite

This is a networking issue.  Both Squeezelite & LMS issues TCP network
requests and it is up to raspbian to route them.  If they are not
connecting it is how Raspbian is routing IP requests when there is no
internet.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren


DJanGo wrote: 
> Networking sounds soo easy but everytime something sounds easy mostly it
> isnt. :o:cool:

d6jg/DJanGo,
yes, my networking knowledge is limited but not at zero level.
please consider these points:

- ALL devices connect to internet via the mobile hotspot. i was very
pleasantly surprised how well this works, as they say seamlessly.
- even lan-connected (i.e. ethernet wired) devices use the hotspot for
internet, so the raspberryPi does not have to be a router, bridge or
access point.
- lan is strictly private and used for direct connections to local
devices, such as, printer, raspberryPi and local network storage.
- without the hotspot, via a browser over lan connection, i have no
trouble connecting to LMS and playing its local music.
- THE (and only) problem is that at raspberryPi itself (it has a local
display managed by jivelite), if i attempt to play music, squeezelite
cannot connect to LMS!

how idiotic is that?
LMS is bound to 127.0.0.1 and the player, squeezelite, is told that its
server is at 127.0.0.1.
and they can talk to each other? 
apparently, they can since as i said, i can play music if i use a
desktop browser
but not at the pi itself.

that is why even a networking neophyte says 
it's gotta be software, specifically squeezelite since it is the
component that's failing!
but why?

time to leave networking and pick on squeezelite



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread epoch1970

Very challenging thread to follow...

pavowren wrote: 
> i believe i mentioned this before.
> i can add a "dummy" router to the lan, assign it as the gateway. then
> squeezelite works!
> BUT when the hotspot comes around, it won't work; i.e., no internet
> access.
> it seems to be an either/or situation.
> and clearly a networking issue within raspian.

So in some configuration rotation you only have the problem of the Pi
not being able to use the internet, otherwise all is fine.
In this case I suggest you add 
Code:

interface wlan0
  metric 100


to /etc/dhcpcd.conf

That will give wireless priority over ethernet, when in Rasbian (in
dhcpcd) the default is to the contrary. The Pi will use the wireless
default gateway instead of the dud on the LAN.

PS: I wouldn't mess with LMS options all that much. Look 'here'
(https://github.com/Logitech/slimserver/blob/public/7.9/slimserver.pl#L743)
for the complete list, and see how squeezelite couldn't care less about
--httpadd.
In general with systemd machines, do not bind services to addresses or
interfaces, execution order is not guaranteed, binding can cause random
failures.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread DJanGo

d6jg wrote: 
> It’s a case of limited knowledge of networking.

Networking sounds soo easy but everytime something sounds easy mostly it
isnt. :o:cool:



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg

DJanGo wrote: 
> the design.
> Rasbian has proper (but limited) routing capabilities on board .
> But -without- a active target aka WLAN0 or whatever the NIC is named -
> there is no way "or target" for a route.

I know what you are saying but I slightly disagree. Forgetting LMS
entirely if the Pi was built as a router with WLAN as it’s WAN port it
would still route LAN side correctly even if no active WLAN. 
A standard router will work LAN side even if it’s WAN (whether Ethernet,
WiFi or 4g).
I think that the operating mode that has been chosen is actually a
bridge and that certainly will not work without an active interface to
its gateway. That said the subnets are different and for a bridge to
work they need to be the same and crucially the router (in this case the
hotspot) needs to be active.
It’s a case of limited knowledge of networking.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread DJanGo


d6jg wrote: 
> And its not a networking issue in Raspbian more a lack of 
the design.
Rasbian has proper (but limited) routing capabilities on board .
But -without- a active target aka WLAN0 or whatever the NIC is named -
there is no way "or target" for a route.  
d6jg wrote: 
> Easy. No. Not without the right *Hardware/design of the Network(s)* on
> the Pi.



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg

And it’s not a networking issue in Raspbian more a lack of routing
software in Raspbian

What you are trying to do is in effect make the Pi act as a router. The
default Raspbian doesn’t allow for that. It’s ability to work with 2
network interfaces is similar to having a LAN and WiFi on a laptop. They
don’t by default route.

IF you can get the routing aspect to work what you need then is
LAN side the Pi needs to act as a DHCP server with itself configured as
the gateway.
On the WAN side (WiFi) then it needs to be a dhcp Client to the WiFi
hotspot (preferably with a reserved IP)

Because the router (software) has to have a WAN and LAN configured it
will have a firewall. To get your mobile phone through the firewall to
LMS you will need to port forward certain TCP and UDP ports from WAN to
LAN

Then you connect your phone to LMS on the WAN ip which will port forward
to the LAN interface,

Easy. No. Not without the right software on the Pi.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg

pavowren wrote: 
> naturally i want to keep things simple; i.e., neither 4g router nor pi
> as a router.
> consider this:
> i boot the pi without wifi, only eth0 (without gateway), and using
> desktop browser over lan, all works as expected.
> so browser is really a functional equivalent to squeezelite running on
> pi.
> why is squeezelite having trouble to connecting to a localhost server?
> 
> i tried this.  kill squeezelite.  verify LMS is listening on 127.0.0.1.
> started squeezelite with specific arg -s 127.0.0.1.
> still it can't connect!
> 
> i believe i mentioned this before.
> i can add a "dummy" router to the lan, assign it as the gateway. then
> squeezelite works!
> BUT when the hotspot comes around, it won't work; i.e., no internet
> access.
> it seems to be an either/or situation.
> and clearly a networking issue within raspian.
> 
> i've posed a similar question on the raspian forum and hopefully
> some network gurus can help...

It doesn’t work because there is no router or switch. Routers/switches
do not only route TCP traffic but also UDP. 
LMS requires UDP in order to work.
Try adding a switch. Does that work on the LAN side? Leave the WiFi /
hotspot aspect at this stage.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread DJanGo


pavowren wrote: 
> at this point, i've concluded it's a networking issue in raspian9 and
> pursue that line,
> not necessarily any flaws in squeezelite or lms.
> 
> thank you for your thoughts and feedback...

No its not...

You have a system that has one permanent connection and one on/off
connection.
Both using different Networks.
And for sure, after powering your rpi it would search for a network and
voila eth0 is connected and has a static ip -> so it would be used
You decided NOT to use a gateway - thats your issue not rasbian 1;2;9 or
ocean11

Why you not using your local ip as the gateway?
Its because you need a default route to you wlan and your wlan isnt up
all the time.

THATS the issue



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren


BosseJ wrote: 
> In addition to reviewing your network you should review how you mount
> the USB-drive: try to do it manually, as basic as possible to remove any
> hidden dependencies to network (whatever they may be).
> How do you add music to the USB-drive? Using Samba (SMB export)? That
> could be a source for network dependency.
> 
> As for the network, it is not surprising that it gets confused when you
> have a key component such as the internet gateway walking around in the
> house and appearing randomly :-)
> Try to make all network connections manually and static, even for the
> wifi on the PI3B+: use dhcp for ip-address only but set the route
> manually to have it persistent.
> Do you have NetworkManager active on the Raspian/PI3B+? Disable that and
> set everything manually.
> 
> If you can get an extra data SIM from your mobile operator cheap (or for
> free), the advice to use a 4G router is excellent. That would stop the
> internet gateway from disappearing and reappearing randomly :-) And your
> phone could use the same wifi network when at home (no need for a mobile
> hotspot function). Your PC & laptop would be happy with a permanent
> gateway. You could keep your powerline backbone only as a fallback for
> access to LMS.

usb works wonderfully and simple to implement on LMS.
i use winSCP from the desktop.

my hotspot is provided by t-mobile. i did not know about data sim.
can it coexist with the cell sim?



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread pavowren


d6jg wrote: 
> This is where using the Pi as a router and a mobile as the gateway falls
> down.
> You would find that what you are trying to achieve will work perfectly
> if you used a proper 4g router but I appreciate that means swapping SIM
> cards around. It is as you have surmised all to do with the lack of
> gateway. A 4g router will always specify a default gateway to its dhcp
> clients even if there is no internet connection.
> You could probably get a Pi to work as a router in the same way but
> perhaps not with LMS on board and not using the phone as the gateway
> over WiFi

naturally i want to keep things simple; i.e., neither 4g router nor pi
as a router.
consider this:
i boot the pi without wifi, only eth0 (without gateway), and using
desktop browser over lan, all works as expected.
so browser is really a functional equivalent to squeezelite running on
pi.
why is squeezelite having trouble to connecting to a localhost server?

i tried this.  kill squeezelite.  verify LMS is listening on 127.0.0.1.
started squeezelite with specific arg -s 127.0.0.1.
still it can't connect!

i believe i mentioned this before.
i can add a "dummy" router to the lan, assign it as the gateway. then
squeezelite works!
BUT when the hotspot comes around, it won't work; i.e., no internet
access.
it seems to be an either/or situation.
and clearly a networking issue within raspian.

i've posed a similar question on the raspian forum and hopefully
some network gurus can help...



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread BosseJ


pavowren wrote: 
> you have sized up the situation correctly and thus, your questions are
> exactly mine.
> that in itself is some consolation.
> i would have thought my situation would be quite common (at least not
> uncommon) given all the purported cord cutters.
> 
> at this point, i've concluded it's a networking issue in raspian9 and
> pursue that line,
> not necessarily any flaws in squeezelite or lms.
> 
> thank you for your thoughts and feedback...

In addition to reviewing your network you should review how you mount
the USB-drive: try to do it manually, as basic as possible to remove any
hidden dependencies to network (whatever they may be).
How do you add music to the USB-drive? Using Samba (SMB export)? That
could be a source for network dependency.

As for the network, it is not surprising that it gets confused when you
have a key component such as the internet gateway walking around in the
house and appearing randomly :-)
Try to make all network connections manually and static, even for the
wifi on the PI3B+: use dhcp for ip-address only but set the route
manually to have it persistent.
Do you have NetworkManager active on the Raspian/PI3B+? Disable that and
set everything manually.

If you can get an extra data SIM from your mobile operator cheap (or for
free), the advice to use a 4G router is excellent. That would stop the
internet gateway from disappearing and reappearing randomly :-) And your
phone could use the same wifi network when at home (no need for a mobile
hotspot function). Your PC & laptop would be happy with a permanent
gateway. You could keep your powerline backbone only as a fallback for
access to LMS.



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg

I’ll add to that by saying that I have used a Pi as a router / vpn
server at one remote location where there is a public WiFi only and I
need a small secured LAN and access back to HO.
We used a router specific image for the Pi - can’t recall which.



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-24 Thread d6jg


This is where using the Pi as a router and a mobile as the gateway falls
down.
You would find that what you are trying to achieve will work perfectly
if you used a proper 4g router but I appreciate that means swapping SIM
cards around. It is as you have surmised all to do with the lack of
gateway. A 4g router will always specify a default gateway to its dhcp
clients even if there is no internet connection.
You could probably get a Pi to work as a router in the same way but
perhaps not with LMS on board and not using the phone as the gateway
over WiFi



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread pavowren


BosseJ wrote: 
> Even if you could define a gateway statically on the ethernet network,
> where should it point? You don't have any other routers you wrote and I
> got the impression that your only internet access is via the mobile
> hotspot (the mobile phone)? I assume that your PC and laptop have the
> same general solution as the PI3B+, ie wireless to your mobile (for
> internet access) and ethernet cable to your powerline backbone for
> access to your LMS/Jivelite device (the PI3B+). I assume you have
> manually set IP-addresses on the ethernet side on the PC and laptop
> also.
> 
> It makes some sense that you can access the LMS on the PI3B+ from your
> PC/laptop via 192.168.1.23 (ie via the powerline backbone) since I
> believe LMS listens on all interfaces. But why it should stop working
> when you remove the wireless connection is beyond me. And why the local
> playback from a locally attached USB-drive should stop when the wireless
> to the phone is disconnected is also incomprehensible to me. Perhaps ssh
> in to your LMS and monitor the LMS server log (eg 'sudo tail -f
> /var/log/squeezeboxserver/server.log') and then stop hotspot and see
> what the LMS has to say about that.
> 
> Perhaps you should ask on a Raspian 9 forum. It is too difficult to
> "debug" this without Raspian experience. Sorry, I can't help.

you have sized up the situation correctly and thus, your questions are
exactly mine.
that in itself is some consolation.
i would have thought my situation would be quite common (at least not
uncommon) given all the purported cord cutters.

at this point, i've concluded it's a networking issue in raspian9 and
pursue that line,
not necessarily any flaws in squeezelite or lms.

thank you for your thoughts and feedback...



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread DJanGo


pavowren wrote: 
> apparently, with Raspian 9

ahhh another thing i didnt read cause its not written by the TO

Please get yourself a break.
Add all the stuff onto a sheet of paper
If your done ask a complete question and submit all information...



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread BosseJ


pavowren wrote: 
> apparently, with Raspian 9, /etc/dhcpcd.conf is used rather than
> /etc/network/interfaces
> as stated before, specifying "any" gateway for eth0 renders wifi to not
> function at all.
> when the pi connects to the hotspot, wlan0 gets its gateway assigned to
> the hotspot and all's ok.
> 
> as for 192.168.1.23, it is used by any other device on the lan; e.g.,
> windows desktop and laptop with ethernet cables so that
> i can ssh into the pie.   and of course, i can use the browser to view
> LMS.

Even if you could define a gateway statically on the ethernet network,
where should it point? You don't have any other routers you wrote and I
got the impression that your only internet access is via the mobile
hotspot (the mobile phone)? I assume that your PC and laptop have the
same general solution as the PI3B+, ie wireless to your mobile (for
internet access) and ethernet cable to your powerline backbone for
access to your LMS/Jivelite device (the PI3B+). I assume you have
manually set IP-addresses on the ethernet side on the PC and laptop
also.

It makes some sense that you can access the LMS on the PI3B+ from your
PC/laptop via 192.168.1.23 (ie via the powerline backbone) since I
believe LMS listens on all interfaces. But why it should stop working
when you remove the wireless connection is beyond me. And why the local
playback from a locally attached USB-drive should stop when the wireless
to the phone is disconnected is also incomprehensible to me. Perhaps ssh
in to your LMS and monitor the LMS server log (eg 'sudo tail -f
/var/log/squeezeboxserver/server.log') and then stop hotspot and see
what the LMS has to say about that.

Perhaps you should ask on a Raspian 9 forum. It is too difficult to
"debug" this without Raspian experience. Sorry, I can't help.



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread pavowren


DJanGo wrote: 
> Hi,
> 
> there is a lot of information and a lot is missing..
> 
> the way to change the ip must be in /etc/default/logitechmediaserver
> otherwise you may end with nothing when there is a update.
> 
> DONT modifying the /etc/default/logitechmediaserver !
> 
> each NIC can have must have its own gateway! I dont know where you read
> that other -nonsense- and who wrote that.
> but for sure that gateway must exist! You didnt wrote something about
> that (another device in 192.168.1.x Network).
> If there isnt any other device in that net you cant add a gateway.
> 
> 
> Thats a good way to mess things up
> > 
Code:

  >   > /etc/network/interfaces

> > is the right place!
> > 
Code:

  >   > auto eno1
  > iface eno1 inet static
  > address 192.168.1.23
  > netmask 255.255.255.0
  > 

> > 
> 
> So my question is "who" should use the 192.168.1.23 Address the pi onl
> or some other devices?

apparently, with Raspian 9, /etc/dhcpcd.conf is used rather than
/etc/network/interfaces
as stated before, specifying "any" gateway for eth0 renders wifi to not
function at all.
when the pi connects to the hotspot, wlan0 gets its gateway assigned to
the hotspot and all's ok.

as for 192.168.1.23, it is used by any other device on the lan; e.g.,
windows desktop and laptop with ethernet cables so that
i can ssh into the pie.   and of course, i can use the browser to view
LMS.



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread pavowren


BosseJ wrote: 
> Look at the commandline for starting Squeezelite. If no server is
> specified Squeezelite searches for a server via the network and of
> course the LMS server replies via the network interface it received the
> call on.
> From the Squeezelite man-page:
> > 
Code:

  >   > -s [:]
  > Connect  to  the  specified Logitech Media Server, otherwise uses automatic 
discovery to find server on the local network. This option should only be 
needed if automatic discovery does not work, or the server is not on the local 
network segment (e.g. behind a router).

> > 
> 
> Try to tell Squeezelite to attach to localhost since they both reside
> on the same PI3B+, by adding parameter > 
Code:

  >   > -s localhost

> >  on the commandline to start Squeezelite.

tried it already with both localhost, 127.0.0.1, even 192.168.1.23 (with
LMS set to 192.168.1.23)
same behavior:
all works fine via desktop browser interface 
but not locally at the pi itself.

of course, dr. murphy is active today, even when i take the mobile
hotspot down to the remote corner of the house,
wifi is strong and the pi is able to connect, weakly but still connect.

at this point, my issue is academic but i'm sure curious as to why and
how this gateway thing works or not work



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread BosseJ


pavowren wrote: 
> just tried this by modifying the /etc/default/logitechmediaserver and
> LMS did bind to 192.168.1.23.
> but again, i had no trouble accessing and playing local music via
> desktop browser (of course it has the hotspot nearby).
> strange thing is there at the pi itself, there was no audio!
> despite the fact on the browser, LMS shows a track is playing
> 
> so ultimately i believe this is a networking issue, more specifically
> one of the default gateway.
> as long as the wifi hotspot is available (and its default gateway),
> everything works.
> but one would think that LMS with a locally attached music should be
> able to play without internet.

Look at the commandline for starting Squeezelite. If no server is
specified Squeezelite searches for a server via the network and of
course the LMS server replies via the network interface it received the
call on.
>From the Squeezelite man-page:

Code:

-s [:]
  Connect  to  the  specified Logitech Media Server, otherwise uses automatic 
discovery to find server on the local network. This option should only be 
needed if automatic discovery does not work, or the server is not on the local 
network segment (e.g. behind a router).



Try to tell Squeezelite to attach to localhost since they both reside on
the same PI3B+, by adding parameter 
Code:

-s localhost

 on the commandline to start Squeezelite.



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread DJanGo


Hi,

there is a lot of information and a lot is missing..

the way to change the ip must be in /etc/default/logitechmediaserver
otherwise you may end with nothing when there is a update.

DONT modifying the /etc/default/logitechmediaserver !

each NIC can have must have its own gateway! I dont know where you read
that other -nonsense- and who wrote that.
but for sure that gateway must exist! You didnt wrote something about
that (another device in 182.168.1.x Network).

>  it has eth0 connection with static ip address, 192.168.1.23 specified
> in /etc/dhcpcd.conf
Thats a good way to mess things up

Code:

/etc/network/interfaces

is the right place!

Code:

auto eno1
  iface eno1 inet static
  address 192.168.1.23
  netmask 255.255.255.0
  



So my question is "who" should use the 192.168.1.23 Address the pi onl
or some other devices?



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread pavowren


Paul Webster wrote: 
> Starting LMS with command line including --httpaddr 192.168.1.23
> might be the answer for you.
> However, I'm not sure that pCP provides an easy way to do that from the
> web interface.

just tried this by modifying the /etc/default/logitechmediaserver and
LMS did bind to 192.168.1.23.
but again, i had no trouble accessing and playing local music via
desktop browser (of course it has the hotspot nearby).
strange thing is there at the pi itself, there was no audio!
despite the fact on the browser, LMS shows a track is playing

so ultimately i believe this is a networking issue, more specifically
one of the default gateway.
as long as the wifi hotspot is available (and its default gateway),
everything works.
but one would think that LMS with a locally attached music should be
able to play without internet.



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-23 Thread pavowren


BosseJ wrote: 
> Yes, it sound strange.
> First, LMS does get any IP-address by itself, the OS on the device (the
> PI3B+) does by dhcp broadcast on the connected interfaces. LMS uses
> whatever IP-address the OS reports, but LMS is not designed to handle
> dual networks as far as I know (it can, but may be confused sometimes).
> When you say that you have both ethernet and wifi connected on the
> PI3B+, you have dual network interfaces on that machine active at the
> same time. If you haven't set any static IP-address on either ethernet
> or wifi on the PI3B+ and you still get IP-addresses when connected, then
> you have at least two dhcp-servers on you network. And they are probably
> not the same since they provide IP-addresses from different sub-nets.
> Or I may have misunderstood your network, of course :-)
> 
> Some clarifying answers would help I think:
> 1. Into what kind of device is the other end of the ethernet cable
> connected? A switch - what other devices are connected to that then? A
> router - is it the same as the wifi hotspot or something else?
> 2. What kind of device is the mobile hotspot? Your mobile smartphone? A
> 3G/4G router?
> (I am trying to clarify how many internet connections you have and the
> rough layout of your network.)
> 3. What application is "My Music" and on what device are you running
> that? (My Music is a menu item on the web GUI on LMS, is that what
> you're referring to? Where do you then run the browser to the LMS web
> GUI?)
> 
> Also, to clarify your network, please log in to your Pi3B+ using ssh
> (for example Putty on a Windows PC) from some local computer.
> In the terminal ssh-window, run command > 
Code:

  >   > sudo route

> >  and show us the result.
> Next, run command > 
Code:

  >   > ifconfig

> > , both with and without the ethernet cable attached and show the
> results.
> 
> Hopefully it will be a bit clearer and maybe somewhat easier to
> provide useful advice.

ok here are network info with/without the hotspot:

with hotspot present
=
pi@raspberryPi:~ $ ifconfig
eth0: flags=4163  mtu 1500
inet 192.168.1.23  netmask 255.255.255.0  broadcast
192.168.1.255
inet6 fe80::7cfc:82aa:8dfb:d773  prefixlen 64  scopeid
0x20
ether b8:27:eb:fd:ab:5a  txqueuelen 1000  (Ethernet)
RX packets 590  bytes 58461 (57.0 KiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 72  bytes 9625 (9.3 KiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 96364  bytes 15265974 (14.5 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 96364  bytes 15265974 (14.5 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163  mtu 1500
inet 192.168.43.252  netmask 255.255.255.0  broadcast
192.168.43.255
inet6 fe80::5aed:ac0e:fc8d:62e0  prefixlen 64  scopeid
0x20
ether b8:27:eb:a8:fe:0f  txqueuelen 1000  (Ethernet)
RX packets 18948  bytes 12339175 (11.7 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 17827  bytes 1628806 (1.5 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@raspberryPi:~ $ ip route show
default via 192.168.43.1 dev wlan0 src 192.168.43.252 metric 303
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.23 metric
202
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.252
metric 303

LMS info:
Logitech Media Server Version: 7.9.2 - 1530185314 @ Thu Jun 28 14:19:19
CEST 2018
Hostname: raspberryPi
Server IP Address: 192.168.43.252
Server HTTP Port Number: 9000
Operating system: Debian - EN - utf8 
Platform Architecture: armv7l-linux
Perl Version: 5.24.1 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 0.95
IO::Socket::SSL: 2.044
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 1

Player Model: SqueezeLite
Player Type: squeezelite
Firmware: v1.9.0-1105
Player IP Address: 127.0.0.1
Player MAC Address: b8:27:eb:fd:ab:5a

From



with hotspot absent

pi@raspberryPi:~ $ ifconfig
eth0: flags=4163  mtu 1500
inet 192.168.1.23  netmask 255.255.255.0  broadcast
192.168.1.255
inet6 fe80::7cfc:82aa:8dfb:d773  prefixlen 64  scopeid
0x20
ether b8:27:eb:fd:ab:5a  txqueuelen 1000  (Ethernet)
RX packets 1937  bytes 361811 (353.3 KiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 2968  bytes 3940366 (3.7 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 123678  bytes 19464288 (18.5 MiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 123678  bytes 19464288 (18.5 MiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099  

Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-22 Thread pavowren


BosseJ wrote: 
> Yes, it sound strange.
> First, LMS does get any IP-address by itself, the OS on the device (the
> PI3B+) does by dhcp broadcast on the connected interfaces. LMS uses
> whatever IP-address the OS reports, but LMS is not designed to handle
> dual networks as far as I know (it can, but may be confused sometimes).
> When you say that you have both ethernet and wifi connected on the
> PI3B+, you have dual network interfaces on that machine active at the
> same time. If you haven't set any static IP-address on either ethernet
> or wifi on the PI3B+ and you still get IP-addresses when connected, then
> you have at least two dhcp-servers on you network. And they are probably
> not the same since they provide IP-addresses from different sub-nets.
> Or I may have misunderstood your network, of course :-)
> 
> Some clarifying answers would help I think:
> 1. Into what kind of device is the other end of the ethernet cable
> connected? A switch - what other devices are connected to that then? A
> router - is it the same as the wifi hotspot or something else?
> 2. What kind of device is the mobile hotspot? Your mobile smartphone? A
> 3G/4G router?
> (I am trying to clarify how many internet connections you have and the
> rough layout of your network.)
> 3. What application is "My Music" and on what device are you running
> that? (My Music is a menu item on the web GUI on LMS, is that what
> you're referring to? Where do you then run the browser to the LMS web
> GUI?)
> 
> Also, to clarify your network, please log in to your Pi3B+ using ssh
> (for example Putty on a Windows PC) from some local computer.
> In the terminal ssh-window, run command > 
Code:

  >   > sudo route

> >  and show us the result.
> Next, run command > 
Code:

  >   > ifconfig

> > , both with and without the ethernet cable attached and show the
> results.
> 
> Hopefully it will be a bit clearer and maybe somewhat easier to
> provide useful advice.

thanks folks for your responses!
first, let me clarify my goals and network configuration.
since i've recentlly cut the cord, my internet connection is via mobile
hotspot (galaxy s8+ running oreo 8.1).

- my raspberry pi 3b+ is running raspbian 'stretch'
- it has eth0 connection with static ip address, 192.168.1.23 specified
in /etc/dhcpcd.conf
- eth0 has NO router or gateway specification.  in fact, if i do specify
it, wifi will not work.  i read elsewhere that the system can have only
one gateway, so this make sense i suppose since when wlan0 gets its
dynamic address from the hotspot, it also gets its gateway assigned as
well.
- my LAN has no router or switch. desktop, laptops and the pi all use
the powerline ethernet adapters, so it's simply a backbone with no hub.
i have already tried putting in a physical router but to no benefit.
- when hotspot is available, pi always gets assigned 192.168.43.252 and
everything is beautiful. spotify streaming works and i can play music
stored on the usb stick attached to the pi.
- jivelite is the interface to the soft player squeezelite, and this is
"My Music" i was referring to.

BUT here's the problem:
- when i take the hotspot away (to downstairs to work on the desktop),
of course as expected, i cannot stream spotify.
- but i should be able to play local music (it's on a usb stick plugged
into the pi itself), but cannot.  when i click on My Music icon, it
displays that spinning wheel and the statement "Connecting...  to
raspberryPi" or something close to it.  and it times out eventually.

so my goal is to be able to move the hotspot away and still be able to
listen to local music.
when hotspot returns, spotify and internet radio all work as expected.
not a huge deal but still irritating... and i keep thinking it should
just work!


i hope i have described the situation a bit better this time.
tomorrow, i will ssh into pi and provide the routing info.

Paul, your idea about --httpaddr 192.168.1.23 is something i wanted to
try.
'cause LMS has the "old" hotspot as its addr and now when the hotspot is
gone, of course it won't and can't respond.
do you happen to know where in Raspian the LMS execute command lies?

i'm curious how LMS decides to bind to wifi addr rather than the static
eth0?



pavowren's Profile: http://forums.slimdevices.com/member.php?userid=51958
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-22 Thread d6jg

Sounds like he’s rug the Pi as a router between LAN and WiFi. As
others have said LMS will bind to one address.
The use case isn’t described so almost impossible to answer except one
point. It’s easy to set a static or reserved ip on the LAN side.
You can reserve via whatever is running dhcp
You can static via ifconfig



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-22 Thread Greg Erskine


The OP hasn't mentioned pCP, so I assume he has probably using Raspbian.



Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-22 Thread Paul Webster


... also, there are a bunch of other command line options that move
various other functions to a specific IP address.

Maybe LMS could do with a command that moves them all to a particular
subnet so that it would not matter if the address changed through the
wonders of DHCP.

Something like --ipsubnet=192.168.2.000 and optional
--ipsubmask=255.255.255.0
then LMS could check against the list of available IP addresses to pick
the one that fits the best.



Paul Webster
http://dabdig.blogspot.com
Author Radio France (FIP etc) plugin

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-22 Thread Paul Webster


Starting LMS with command line including --httpaddr 192.168.1.23
might be the answer for you.
However, I'm not sure that pCP provides an easy way to do that from the
web interface.



Paul Webster
http://dabdig.blogspot.com
Author Radio France (FIP etc) plugin

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] IP addr assigned to LMS

2018-11-22 Thread BosseJ


pavowren wrote: 
> hello,
> i have been looking into this issue for couple of weeks now and feel i'm
> at least zeroing into it.
> here's the setup:
> - LMS installed on a raspberryPi3B+ along with squeezelite and jivelite
> - media is local at /mnt/usb
> - ethernet connection and wi-fi via a mobile hotspot
> 
> problem:
> when hotspot goes away, My Music fails attempting to connect to
> "raspberryPi"
> 
> observations:
> - as expected, i have no problem connecting to LMS from a local browser
> via http://192.168.1.23:9000/
> - BUT it has the old ip addr assigned by the hotspot
> Logitech Media Server Version: 7.9.2 - 1530185314 @ Thu Jun 28 14:19:19
> CEST 2018
> Hostname: raspberryPi
> Server IP Address: 192.168.43.252
> - yet, via browser, all works including viewing My Music but not at the
> raspberryPi itself (jivelite)
> 
> questions:
> - how does LMS gets its ip addr assigned?  can i make it static to local
> eth0 addr, 192.168.1.23?
> - since all components are local to raspberryPi, why should ip addr
> matter at all?
> - lastly, how does brower access work as expected but local access does
> not? very frustrating to say the least...
> 
> any insights would be greatly appreciated...
> hong son

Yes, it sound strange.
First, LMS does get any IP-address by itself, the OS on the device (the
PI3B+) does by dhcp broadcast on the connected interfaces. LMS uses
whatever IP-address the OS reports, but LMS is not designed to handle
dual networks as far as I know (it can, but may be confused sometimes).
When you say that you have both ethernet and wifi connected on the
PI3B+, you have dual network interfaces on that machine active at the
same time. If you haven't set any static IP-address on either ethernet
or wifi on the PI3B+ and you still get IP-addresses when connected, then
you have at least two dhcp-servers on you network. And they are probably
not the same since they provide IP-addresses from different sub-nets.
Or I may have misunderstood your network, of course :-)

Some clarifying answers would help I think:
1. Into what kind of device is the other end of the ethernet cable
connected? A switch - what other devices are connected to that then? A
router - is it the same as the wifi hotspot or something else?
2. What kind of device is the mobile hotspot? Your mobile smartphone? A
3G/4G router?
(I am trying to clarify how many internet connections you have and the
rough layout of your network.)
3. What application is "My Music" and on what device are you running
that? (My Music is a menu item on the web GUI on LMS, is that what
you're referring to? Where do you then run the browser to the LMS web
GUI?)

Also, to clarify your network, please log in to your Pi3B+ using ssh
(for example Putty on a Windows PC) from some local computer.
In the terminal ssh-window, run command 
Code:

sudo route

 and show us the result.
Next, run command 
Code:

ifconfig

, both with and without the ethernet cable attached and show the
results.

Hopefully it will be a bit clearer and maybe somewhat easier to provide
useful advice.



2 Touch, 1 Picoreplayer 4.0.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz,
2GB
All wired

BosseJ's Profile: http://forums.slimdevices.com/member.php?userid=67378
View this thread: http://forums.slimdevices.com/showthread.php?t=109789

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter