Author Topic: UPnP 2025 - Continuation of the original UPnP/DLNA plugin  (Read 34830 times)

BoringName

  • Sr. Member
  • ****
  • Posts: 916
I've just tried again (12:20 GMT) and it's still bringing up the virus warning and refusing to download.

Not much I can do about that sorry. I guess it might fix itself the next time your system updates virus definitions?

I just checked for updates on my Win10 system and it downloaded an update for defender, it detected nothing even after I specifically told it to scan the file.

Guessing you are on windows 11 and microsoft is running some stupid AI bullshit with defender.

Just to confirm your browser hasn't been hijacked, when you click the download button on the plugin page does it direct you to a link on mediafire.com?

KenDavies

  • Newbie
  • *
  • Posts: 16

Not much I can do about that sorry. I guess it might fix itself the next time your system updates virus definitions?

I just checked for updates on my Win10 system and it downloaded an update for defender, it detected nothing even after I specifically told it to scan the file.

Guessing you are on windows 11 and microsoft is running some stupid AI bullshit with defender.

Just to confirm your browser hasn't been hijacked, when you click the download button on the plugin page does it direct you to a link on mediafire.com?

Yep, Windows 11. I ended up downloading it on a Mac and copying it across. Working a treat and thanks for looking into it.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Yep, Windows 11. I ended up downloading it on a Mac and copying it across. Working a treat and thanks for looking into it.

Something funny going on there. You can't download this file because it's a virus but I'll happily let you copy it to the system via other methods?

I'm going to make another guess you are using Edge as a browser?

If defender was doing it's job properly, it would delete Edge as well.

KenDavies

  • Newbie
  • *
  • Posts: 16

Something funny going on there. You can't download this file because it's a virus but I'll happily let you copy it to the system via other methods?

I'm going to make another guess you are using Edge as a browser?

If defender was doing it's job properly, it would delete Edge as well.

That explains it. I usually use Firefox but for some reason was in Edge. Firefox has just downloaded it without issue. That'll teach me...

BoringName

  • Sr. Member
  • ****
  • Posts: 916
I meant to post this earlier and forgot, earlier in the thread I posted that during testing, Verbeeliser info was streamed through BubbleUPnP to my mobile and this was incorrect. It was coming through my speakers and the song played through my mobile but I just didn't realise at the time as my mobile was right next to my PC speakers. I should have known better as there is no way Verbeeliser could have done this. I've edited the original post.

Currently I can't think of a way to make this work. While I could make verbeeliser stream to a UPnP device, getting it to do that without screwing up Musicbee's streaming of the track is what I can't figure out at the moment.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
That explains it. I usually use Firefox but for some reason was in Edge. Firefox has just downloaded it without issue. That'll teach me...

Everyone should be running a Pi-Hole. When you see the amount of crap that Edge tries to connect to you will hug the crap out of Firefox. I occasionally load it up for odd sites that firefox won't display properly that I think are safe and the amount of crap that loads up is insane, I've noticed recently it has the copilot logo.

Firefox + NoScript + uBlock Origin is hard to beat.

Since Chrome updated to Manifest V3 it can die in a fire.

hiccup

  • Hero Member
  • *****
  • Posts: 9107
It was 100% the issue for me. I was having the symptoms you described and they went away once I added them to the public firewall settings.
But I was using the emulator thing so on top of adding LMS and musicbee, you might need to do something with the Squeezebox. I assume these are separate devices on your network with their own IP?
The firewall settings on your PC should allow traffic to the Squeezebox but if you have a firewall on your router/switch you may need to open some ports on that.
You must be on to something then, but I don't really understand. (yet)
For testing all this, I currently have LMS installed locally on the same PC as MusicBee and foobar2000.
So I would think my router and firewall settings are not that relevant at this moment. (I could be wrong)

And as Squeezebox player I am only using SqueezePlay for the moment, so that's 'local' too.

Any suggestions where I could look to possibly change some ports or firewall settings?
Or will this not work because everything is currently on the same computer, and LMS should be on a different computer/server on the network?

(I'll send you a PM with an error log, perhaps that will give you some clue about what's going on)

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Or will this not work because everything is currently on the same computer, and LMS should be on a different computer/server on the network?

I had everything on the same computer. I didn't test Squeezeplay but I'm sure it will work the same as Softsqueeze did on my comp.

in windows - Settings-> Update & security -> Windows Security -> Firewall & Network Protection -> Allow an App through Firewall - > Change Settings -> Allow Another app -> browse

Just add Musicbee and the path to perl.exe (that lyrion is using) and make sure to tick both pirvate and public netowrks. You will need to restart Musicbee and LMS for the firewall rules to take effect.

edit: if you're using the older version of LMS that doesn't use perl.exe just make sure whatever EXE it's using is allowed in the firewall.
Last Edit: January 30, 2025, 04:43:57 PM by BoringName

hiccup

  • Hero Member
  • *****
  • Posts: 9107
edit: if you're using the older version of LMS that doesn't use perl.exe just make sure whatever EXE it's using is allowed in the firewall.
I have checked all that and have now allowed what I believe to be relevant to LMS.

But, I just had a new thought:
I'm running an LTSC version of Windows 10.
While it is the most stable install I have ever used, and it never posed any issues, I am now thinking if it perhaps has some 'multimedia/UPnP' stuff disabled or even completely absent.
That could explain why it works for you but not for me?
And the search continues…

edit:
For what it's worth:
These two locations had UPnP/media-streaming features disabled:





So I enabled both of them.
Still no luck, but it probably won't hurt coming closer to maybe get things working.

edit:
@BoringName
Since things are working for you, could you confirm if you have these settings activated or not?
Since allowing UPnP features in the OS and routers is usually considered to be some security risk, I would rather disable it if not strictly necessary.
 
Last Edit: January 30, 2025, 07:29:51 PM by hiccup

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10265
I'm back with some weirdness to report.

Unlike hiccup, I not running LTSC, but plain old Win10 with the latest updates. And MB 3.6.9160 P.

When I last checked in with the plugin, with its default settings, MB appeared (and played) on my Internet radio. On my Squeezebox device, only the album art appeared but it did not play. Nor was the track was not playing on MB.

I just installed v1.1 and nothing on my side has changed. I checked the UPnP Device Host service and it's running. As for the Media Streaming Options, I have none. Meaning that option doesn't appear in my Network and Sharing Center options. I have rebooted the PC. No change.  I added the Squeezebox server and client to my firewall's whitelist. No change.

There's this oddity being caused by this plugin. When I install a plugin, i always drag and drop from the zip file to the proper directories. The dll was in the plugins directory as expected. I uninstalled it and used the "Add Plugin..." and (of course) no change. But I did notice that it changed the Lyrics Reloaded (1.2.6) option to show source from top to bottom. This happens when I use the "Add Plugin..." button or when I drag and drop the .dll.

It's too early in the day to start with the adult beverages, so I'm going to take a walk to the local school yard and see what's available.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Since things are working for you, could you confirm if you have these settings activated or not?

I don't have a media streaming setting in control panel. The UPnP service was running but none of that should be necessary as the plugin is it's own server. Just to confirm I stopped running the service and the plugin still functioned normally.

I'll test out the logitech version of the server and see if that works. It certainly provides a lot more UPnP information in the logs, half the reason I had so many problems with Lyrion is the lack of detail in the log.

On my Squeezebox device, only the album art appeared but it did not play. Nor was the track was not playing on MB.

How did you "whitelist" the items in your firewall? The track info showing up but the song not playing is exactly what was happening to me before I allowed it through the firewall because it gets the song/stream info from a HTTP response but it has to connect to a URL to access the stream. The second part is what gets blocked and Musicbee doesn't know it's blocked by the firewall which is why it doesn't show an error in the log.

hiccup

  • Hero Member
  • *****
  • Posts: 9107
I'll test out the logitech version of the server and see if that works. It certainly provides a lot more UPnP information in the logs, half the reason I had so many problems with Lyrion is the lack of detail in the log.
Yeah, while I am sure Lyrion's LMS has many improvements over Logitech's LMS,, I couldn't find my way in it's interface, and wasn't even sure if it was running or not. Just not a good experience for me.
So that's why I returned to a slightly older but familiar Logitech release.
After I get that to work with UPnP, then I will see if I can get it to work with the Lyrion version also.

The next thing for me to try is probably to pull out the cable that connects my router to the dangerous and terrifying world out there, disable Windows's firewall completely, and see what happens.

BoringName

  • Sr. Member
  • ****
  • Posts: 916
Logitech Media Server 8.5.2 also uses perl. Located at
C:\Program Files\Squeezebox\Perl\perl\bin\perl.exe

This took ages to install as it had to unpack over 20, 000 files. That's a bit crazy.

Here are my steps.
Installed LMS 8.5.2
installed squeezeplayer
Added the Perl.exe to both public and private firewall settings.
Started LMS
Started squeezeplayer
Started Musicbee
Twiddled my thumbs for a few minutes because the Squeezeplayer wasn't showing in Musicbee
Installed the UPnP media service plugin in LMS
Restarted LMS
Restarted Musicbee
Set squeezeplayer as the output.
Played a song and it came through squeezeplayer just fine.

Now to uninstall all this nonsense. FYI - LMS and the squeeze players leave A LOT of crap on your system after uninstall that you have to manually remove.

hiccup

  • Hero Member
  • *****
  • Posts: 9107
Logitech Media Server 8.5.2 also uses perl. Located at
C:\Program Files\Squeezebox\Perl\perl\bin\perl.exe
I don't have that (well, not anymore).
Probably as a result of me removing and re-installing several LMS versions, and deleting files/folders that I thought were no longer needed or could cause issues.
Also, I am using the x86 version of LMS 8.5.2 (since for now x86 versions are usually better for plugin compatibility)
So the path to PERL should probably differ from yours?
But at this moment, I can't find any traces of PERL on my system at all.

I wouldn't be surprised if I have f-ed up some stuff during all this testing.
I will see if I am able to start again with some clean slate anytime soon.

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10265
How did you "whitelist" the items in your firewall? The track info showing up but the song not playing is exactly what was happening to me before I allowed it through the firewall because it gets the song/stream info from a HTTP response but it has to connect to a URL to access the stream. The second part is what gets blocked and Musicbee doesn't know it's blocked by the firewall which is why it doesn't show an error in the log.
I don't use the Windows firewall. I use ESET. I added a firewall rule to allow both in and out traffic to a number of Squeezebox .exe files: squeezeboxcp.exe, squeezeSVR.exe, and SqueezeSvr.exe. They are all located in C:\Program Files (x86)\Squeezebox\server. I have since removed them since they weren't doing anything for me.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here