UDP uses a shared message pool , therefore once a message was sent out it is available to all clients (unless specified port is connected to a peer) and stays intact until next datagram
you would better implement a (from & to ) mechanism to check whether message was sent to you and reply if it was sent to you , so you would not get same message again
for example
server@client-x:dosomething
client-x@server:ok
client-x@server:createfile(xyz.txt)
@server@client-x:filecreated(xyz.txt)
client-x@server:writefile(xyz.txt,somebytes)
@server@client-x:byteswritten(xyz.txt)
UDP is not ideal for this type of communication , it is useful for signaling or streaming raw data such as media streaming
you should consider TCP if applicable