pippin wrote: 
> Is there a way to get the IP/port combination (control port) for the
> server SqueezeLite is currently using? Basically the result of the UDAP
> search response.
> 
> I wonder.. i can't be the first one to run into this...
> 
> I've built a portable radio using a Pi zero and I added a volume control
> knob and I use a script to send the volume commands to the server but I
> really don't want to hard-code the server IP since this looks wrong.
> 

Not that I've ever seen.   Squeezelite doesn't talk to the web control
port anyway.   Since you script is running on the same machine as the
squeezelite session.  If you are using a shell script, then just look at
active connections with netstat.  This is what we use in pCP.

netstat -nt 2>&1 | grep :3483 | grep ESTABLISHED | uniq -f 4 | awk '{
print $5 }' | grep :3483 | awk -F: '{ print $1 }'

For the control port you will have to poll the server once you find out
which server.


------------------------------------------------------------------------
paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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

Reply via email to