Note: If you are using macOS Ventura or later, check out the updated version of this article.
It used to be that to run a Time Machine Server, you needed to be running a copy of macOS Server on your host machine, but those days are now gone. Anyone running High Sierra or later on a Mac can now turn that Mac into a destination for remote machines to use for Time Machine.