I was surprised to see this is possible over a LAN with a WinPC.
I almost didn't click on this article because 1) this hasn't been an issue for me in a very long time, and 2) I thought it was a well-worn topic built into macOS since around the MacBook Air launch.