screen sharing not working on Mac Mini media server
I am trying to run a Mac Mini (mid-2010 running ElCapitan 10.11.6) as a "headless" media server. I connect to it using screen-sharing from my laptop (2017 Macbook Air running 10.13.6 High Sierra); I select the Mini from "Shared" in the sidebar of Finder, then select "Share Screen" in the upper-righthand corner.
The Mini is connected by ethernet (to a switch fed by a router in another room), and the Air connects by wifi to an Airport Extreme connected to that same switch.
It seemed like it was working pretty well for awhile, and I don't think anything changed. But now, within days of rebooting the Mini, it stops working (click the "Share Screen" button and nothing happens). If I reboot the Mini (with extreme prejudice using the power button, since I have no keyboard/mouse connected to it) it starts working again; then at some point, typically days later, it no longer works. Rinse and repeat.
Not sure what to try. I did reset the SMC (the right way, I think, by unplugging the power cord and holding the power button for 5-10 sec), and maybe it worked a little better after that - hard to say, since I go days in between trying to connect. About to give up and get a Bluetooth keyboard/trackpad for te thing, but kinda pricey.
Mac mini, OS X 10.11