# Socket Connect

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-communications/socket-connect
>
> Connects a socket to an IP address and port over TCP, UDP, TCP with TLS/SSL or Bluetooth by MAC address, with timeout.

Connect to a specified IP and port.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### 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.

:::info
The parameter **Timeout** is not supported in some systems and may take longer that what is defined is this action.
:::

:::info
For UDP sockets, if you specify "**:**" as the server **IP/Name**, then an unbound UDP socket for IPV6 is created.
:::
