Send and Receive UDP Datagrams
Receive datagrams
First check the receive channel’s name, bind address, and filter rules in Project Settings. Use the same channel name when binding and unbinding a handler. Once the handler is bound, send a test datagram from a permitted sender and check that the callback receives the expected bytes.
| Node | Description |
|---|---|
BindUDPMessageHandler | Bind a message receive callback |
UnBindUDPMessageHandler | Unbind a specific handler |
UnBindAllUDPMessageHandler | Unbind all handlers and close socket |
Example: bind and unbind a handler
Unbind all receive handlers
Use this node to unbind every handler and close the socket when the channel no longer needs to receive datagrams.
Send datagrams
| Node | Description |
|---|---|
SendUDPMessage | Send a byte array through the channel (socket auto-created) |
Example: send a string
Receive and send socket lifecycles
| Type | Created When | Destroyed When |
|---|---|---|
| Receiver | First call to BindUDPMessageHandler | All handlers removed → auto close socket |
| Sender | First call to SendUDPMessage or config | Plugin shutdown or channel deleted |
Convert byte arrays
Use with SimpleByteConversion plugin to easily serialize/deserialize between data ↔ TArray<uint8>.


