I am creating a program that uses a MySql database server(on a ubuntu/linux OS) to reduce the cost of the program.

To prevent that people gonna edit the same record i first wanted to create a service that monitors wich client is busy with what record and the clients will ask 'premisison' from the service trought TCP/IP. But i cant install .NET services on a linux server. So there starts my problem.

For me no problem to create TCP/IP apps but i never created UDP apps.
They both use system.net.sockets.socket as client and are quite similar besides that they dont have to connect to a server/listner.

With that in mind i thought i could just send out data over a port and let a UDP client recieve it. However when i want to send something it says it needs a connected socket to send to.

The idea was to just send somedata over the network and if someone has the program running, it recieves the message and then a lot of other stuff like sending back bla bla bla.

But now i know i need an IP or DNS too my idea`s stop.
Cause i dont know wich of 100 pc`s are running my program and i have to connect to.

Is there any way to scan the network or something like that.

Maybe my story is a bit vague but i hope someone can help


Greets