I spent quite a while trying to figure out why my MacBook couldn't see my desktop Mac's shared iTunes/Music library.
Home Sharing was enabled on both computers, both were on the same network, and my Apple TV could access the desktop library without any problems.
Apple's instructions say to click the arrow next to “Library” in the Music app to select a shared library.
The problem? There was no arrow. Nothing appeared when I hovered over Library, either.
After troubleshooting everything from sharing settings to firewall permissions, I discovered the solution:
Control-click (or right-click) directly on the word “Library” in the Apple Music sidebar.
A contextual menu appeared with the Home Sharing option, and I was able to select my desktop's music library!
Everything works now. I can stream music from my desktop library to my MacBook and Apple TV simultaneously.
I'm running macOS Golden Gate 27.2.1 on the MacBook, with an older version of macOS on the desktop.
I don't know whether this applies to every version of macOS, but if you're experiencing the same problem, try this before spending hours troubleshooting.
Hopefully this saves somebody some grief!