Send UDP data

I’m trying to send it to another process which can be on the same computer or another computer on the network, not a game server as in multiplayer.

Simply put I just need export the motion of the player in real time to another process.