using Home sharing on various devices

I hope this question is not too stupid. I've been suing Macs for almost 20 years.
I have a home wifi network with a Power Mac desk top, lap top, iPod, and iPad connections.
I've never really used home sharing. But I recently acquired an Apple TV.
My question is: do my computers have to be turned on to use home sharing?
I do have an ITunes Account, iCloud and the latest OS.
As a follow up if I want to use home sharing do I have to worry about the computers going to sleep?
Thanks Much.
Yes, your computer has to be on. I don't know the answer to your follow up question. My iMac doesn't go to sleep. I just have it set to turn off the display. Someone else may know though or you might find the answer here. https://support.apple.com/en-us/HT202190


Sent from my Retina iPad mini using Tapatalk 2
Thanks much for replying to my question about home sharing on Mac devices. This info is very useful.

Original thread: https://forums.imore.com/threads/using-home-sharing-on-various-devices.283959/