# Socket Read

Reads data in a specified socket.

Action available for the following operating systems:

![](https://3821468174-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTlA1suFa5N48x_83N%2F-MAlPVpH3WRwBy16c7JY%2F-MAlQBZuuTnc6hyzKSVQ%2Fimage.png?alt=media\&token=5c9534b7-ca05-4ac4-b408-2207cd5a5295)

### Parameters

* **Socket** *\<unquoted string> -* The identification of the socket that user wants to reads data. There are several handlers for sockets from 1 to 10. It's also possible defined a socket dynamically by choosing option *dynamic* for this parameter.
* **Coded** *\<unquoted string> -* This parameter defines if the data to read in the socket is coded or not. The possible options for this parameter are: *Yes*, *No* or *dynamic*.
* **Timeout** *\<numeric> -* The timeout in milliseconds defined for this serial port.
* **Target Data** *\<unquoted string> -* The control or variable where the data readed is saved.
* **Target Address** *\<unquoted string> -* The control or variable where the IP address of the socket is saved. It can return IPV4 addresses mapped as IPV6 like ::ffff:192.168.1.1
* **Target Port** *\<unquoted string> -* The control or variable where the Port of the socket is saved.

{% hint style="warning" %}
The parameters **Target Address** and **Target Port** only need to be defined if the user uses UDP sockets.
{% endhint %}
