# Socket Connect

Connect to a specified IP and port.

Action available for the following operating systems:

![](/files/-MAlQBZuuTnc6hyzKSVQ)

### 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/actions/actions-description/group-communications/socket-connect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
