Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member
    Join Date
    Jan 2016
    Location
    Colorado Springs, CO, USA
    Posts
    631

    Is there a way to discover via network LMS Server CLI Port ID

    I'm trying to write some code to auto-discover and configure my client software (Squeezelite-X) for connecting to LMS. I can discover servers on my network and that protocol provides the server name and Json(Http) port ID. Can I use Json to ask the server what its CLI port number is configured to?

    R Greg Dawson
    Squeezelite-X

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,335
    Not that I'm aware of. What are you doing that you can't do via the jsonrpc interface?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Senior Member
    Join Date
    Jan 2016
    Location
    Colorado Springs, CO, USA
    Posts
    631
    Quote Originally Posted by paul- View Post
    Not that I'm aware of. What are you doing that you can't do via the jsonrpc interface?
    The telnet interface allows me to subscribe/listen to server events, like new song events, player name changes, player status changes asynchronously. It was the easiest solution. I would like to not use telnet, so I guess I am going to have to learn CometD and use that. I did not think there was a way to discover Telnet/CLI port, but thought I'd check.

    R Greg Dawson
    Squeezelite-X

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,323

    Is there a way to discover vianetwork LMS Server CLI Port ID

    > I'm trying to write some code to auto-discover and configure my client
    > software (Squeezelite-X) for connecting to LMS. I can discover servers
    > on my network and that protocol provides the server name and Json(Http)
    > port ID. Can I use Json to ask the server what its CLI port number is
    > configured to?


    I'm not sure it's worth the effort, in particular on Windows: IIRC the
    Tray icon is hard coded to use port 9090. And I've hardly ever seen a
    complaint about it.

    --

    Michael

  5. #5
    Senior Member
    Join Date
    Jan 2016
    Location
    Colorado Springs, CO, USA
    Posts
    631
    Quote Originally Posted by mherger View Post
    > I'm trying to write some code to auto-discover and configure my client
    > software (Squeezelite-X) for connecting to LMS. I can discover servers
    > on my network and that protocol provides the server name and Json(Http)
    > port ID. Can I use Json to ask the server what its CLI port number is
    > configured to?


    I'm not sure it's worth the effort, in particular on Windows: IIRC the
    Tray icon is hard coded to use port 9090. And I've hardly ever seen a
    complaint about it.
    Michael
    Yah, just thought I'd check.
    Squeezelite-X

  6. #6
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,096

    Is there a way to discover via network LMS Server CLI Port ID

    Quote Originally Posted by rgdawson View Post
    The telnet interface allows me to subscribe/listen to server events, like new song events, player name changes, player status changes asynchronously. It was the easiest solution. I would like to not use telnet, so I guess I am going to have to learn CometD and use that. I did not think there was a way to discover Telnet/CLI port, but thought I'd check.

    R Greg Dawson
    You can add CLIP in the discovery packet request and it will return the cli port

    My discovery broadcast request is eVERS\0JSON\0CLIP
    Last edited by philippe_44; 2019-09-24 at 13:15.
    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

  7. #7
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,323

    Is there a way to discover vianetwork LMS Server CLI Port ID

    > You can add ‘CLIP’ in the discovery packet request and it will return
    > the cli port


    Hehe... it's always good to know there are people out there who actually
    understand this stuff :-D

    --

    Michael

  8. #8
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,096
    Quote Originally Posted by mherger View Post
    > You can add ‘CLIP in the discovery packet request and it will return
    > the cli port


    Hehe... it's always good to know there are people out there who actually
    understand this stuff :-D

    --

    Michael
    That was just one time

    BTW, your amp is on its way
    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

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    2,335
    Wish I knew that years ago, didn’t realize that a plug-in could add a discovery method.

    Perl is incredibly hard to follow sometimes with all of its overrides.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #10
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    5,096

    Is there a way to discover via network LMS Server CLI Port ID

    Quote Originally Posted by paul- View Post
    Wish I knew that years ago, didnt realize that a plug-in could add a discovery method.

    Perl is incredibly hard to follow sometimes with all of its overrides.
    Its not a plugin addition in that case, its native in LMS
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •