Maybe I explained myself not very well?
(I am also not very knoledgeable in this area).
I know there is some broacasting protocol on the network, where you could
send a messsage on the local network to anyone. Isn't that what they call
UDP broadcatsing?
I think I played with it only once....
And is there a better way that what I call UDP broadcasting (to discover
peers on a local network)?
But allright, I guesses after a program broadcasted its IP & waiting stage,
the other program should ocntact it one to one with a standart socket
mechanism if I understand you right.
Be forewarned: UDP offers no promises. You may or may not receive any
package you transmit at all. You may or may not receive the entire
package. You may or may not receive the correct bytes for packages you
send. Your package may or may not be fragmented.
If you need any sort of reliable network communication on the internet
/ internal network, use TCP. UDP should not be relied on for anything
in normal program behavior.