Receives UDP commands and operates based on the commands.