Firstly, this isn't so much a plea for help as a chronicle of my adventures. Feel free to offer advice, sympathy, testimonials, insults, whatever you feel is appropriate.
My receiver is a Marantz SR6008. My media server is a PC running Win 7 Home Premium. Marantz offers a nifty Android and iOS app that lets me remote control my receiver from my phone and iPad. This lets me do neat stuff like streaming music from uPnP / DLNA sources without having to turn on my television or even be in the same room.
Spoiler: I've settled on
PS3 Media Server for serving local streams (for now).
The best part about DLNA and uPnP is also the worst part. DLNA is supposed to be completely transparent to the end user. This means it's magic when it just works; but, without any configuration interface, impossible to troubleshoot when it doesn't.
At first, I used Windows Media Player 12's built-in "Allow access" stuff. WMP works great for natively supported formats, but I have quite a few FLAC files I want to include in my available library. At first, FLACs weren't visible to my receiver. Installing the Xiph.org open codecs made them visible, but grayed out and without metadata. WMPTagPlus fixed the metadata issue, but my receiver still refused to play FLAC files. (Oddly enough, FLAC files were simply grayed out in the Android app. On the television interface, they had a jpeg icon.)
Then I tried turning off WMP's streaming and enabling uPnP in XBMC. I should mention that XBMC is my preferred media player at the desktop. XBMC + Harmony Remote = win. It would've been nice if XBMC had solved my problem, but I never was able to get a folder listing over the network. Still, it'd be nice to run a server for which I don't need to keep a GUI open.
Then I tried foobar2000 with the uPnP / DLNA add-in. Finally, I was able to play my FLAC files. But foobar2000's uPnP plugin insisted on transcoding and streaming my FLAC files as 44.1khz 16-bit WAV regardless of my efforts to configure otherwise. I'd rather stream FLAC as FLAC, but I'd take a WAV stream if I had to. Nevertheless, it itched my OCD. foobar2000 had some other displeasing issues, such as no option to run as a background service and no worthwhile interface that I could find for managing file associations.
Serviio looked interesting, but it required a separate 64-bit Java Runtime Environment. To be honest, I don't even want the 32-bit Java that I already have and regard as a necessary evil. I uninstalled Serviio before ever getting to run it. (Are there any good Python-based DLNA servers?)
Then came the PS3 Media Server. After poking around with it for a few minutes, lo and behold! I can now browse my FLAC files, and the Marantz reports an honest-to-God FLAC stream. About time, right?
It's not without its niggles though. PS3MS is also Java-based, but at least it includes its own portable version of what it needs. The most annoying thing is that it does offer an option to install as a Windows service, but I never could make it work. I followed a couple of how-to guides, tried configuring the service to run as my desktop user account as well as Local System, and generously applied firewall exemptions. But no amount of effort would allow me to browse my music folders with the service started and without the GUI. I'm apprehensive about seeking help from the PS3MS community, as all the Google results seem to indicate typical responses of RTFM and GTFO, even though TFM isn't exactly what I would call polished. The PS3MS forums make me sad.
Ultimately, I decided just to drag a shortcut into my Start menu --> All Programs --> Startup folder, and check the option within PS3MS to start minimized. So now PS3MS runs with a systray icon that I can easily ignore, and nothing on the taskbar unless I open the GUI. Close enough.
There's a fork of PS3MS called
Universal Media Server that I might try later. Maybe that'll fix the background service issue? Since things are working well enough as-is, I'll have to see what sort of mood I'm in the next time I get time to mess with stuff.
Edit: BoredSysAdmin
pointed me to another project that looks very promising,
MinimServer. I'll be giving this one an audition next.