It's not a peer-to-peer system. You have to both publish repositories somewhere and clone them from there, not from peers.
You can clone from any copy of the repo, regardless of where it is. You can setup, push, and pull from any number of 'remote's. It could be a DNS record, ip address, or local directory.
i.e. GitHub/Lab or some centralized repo is not required.
It cannot be a magnet link. And I think you are confusing client-server with peer-to-peer communications. What can be done without touching git is some software running locally doing peer-to-peer and speaking git's protocol, git can then use local ip address as a remote.
Git doesn't HAVE to be set up as client-server. It's just that that makes the most sense for an organization most of the time.