# Socket Connect

Connect to a specified IP and port.

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

*General*

* **Socket** *\<unquoted string> -* The identification of the socket that user wants to connect. 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.
* **Mode** *\<unquoted string> -* The communication mode for the defined socket. There are several options for this parameter:
  * 1 - TCP
  * 2 - UDP
  * 3 - Bluetooth This option will block Port and change IP/Name to MAC Address
  * 4 - TCP(TLS/SSL) This option will active tab Security
* **IP/Name** or **MAC Address***\<string> -* The IP address of the socket that the user wants to connect. MAC Address in case of Mode Bluetooth selected.
* **Port** *\<numeric> -* The port for the defined socket.
* **Timeout** *\<numeric> -* The timeout in milliseconds defined for this socket connection. The value 0 is this parameter means that there is no timeout.

*Security*

Client Authentication

* **Certificate File** *\<string> -* File path
* **Certificate File Password** *\<string> -* File path

Server Authentication

* **Ignore Untrusted Certificate***\<numeric> -* Yes/No
* **Ignore Invalid Certificate Name** *\<numeric> -* Yes/No
* **Certificate Fingerprint List** *\<string> -* List of Public Key SHA256 Hash for certificate pinning, separated by CR.
* **Public Key Fingerprint List** *\<string> -* List of Public Key SHA256 Hash for certificate pinning, separated by CR.

{% hint style="info" %}
The parameter **Timeout** is not supported in some systems and may take longer that what is defined is this action.
{% endhint %}

{% hint style="info" %}
For UDP sockets, if you specify "**:**" as the server **IP/Name**, then an unbound UDP socket for IPV6 is created.
{% endhint %}
