> For the complete documentation index, see [llms.txt](https://docs.lightact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lightact.com/integrations/network/tcp-and-udp.md).

# TCP & UDP

In this page, we will go through sending and receiving TCP & UDP

Setting up sending and receiving UDP and TCP is basically the same, so in this document, we will go through the steps required to send or receive UDP messages.

## Receiving UDP

### Setup in the Devices window

Insert a **UDP Receiver** node and after you set *Stream* parameters check the **Receive** checkbox.​

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-d2257873420c519e00d700adc1a85050a13b5054%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Good to know**: for TCP you need to insert a **TCP Receiver** node.
{% endhint %}

### Setup in the Layouts window

Insert a **Read UDP** node, choose the device in **Device** input.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-074300704dd5f5081361c859e92841bc71312e78%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Good to know**: for TCP you need to insert a **Read TCP** node
{% endhint %}

## Sending UDP

### Setup in the Devices window

Insert a **UDP Sender** node and after you set *Stream* parameters check the **Send** checkbox.​

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-855f665016cde947d2a974c124e6577c488a19e6%2FSendingUPD.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Good to know**: for TCP you need to insert a **TCP Sender** node
{% endhint %}

### Setup in the Layouts window

Insert a **Send** **UDP** node, choose the device in **Device** input and set the **Message** which will be sent.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-3a56988eab81a9a7942d25013f3d95a7df85487a%2FSendUDP.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Good to know**: for TCP you need to insert a **Send TCP** node
{% endhint %}
