How would I write a program in such a way that it could discover other instances of itself on the network and let those instances "peer" with each other?
I'm mainly looking for protocols that would allow me to do this (and, hopefully, not put too much stress on the network).