> For the complete documentation index, see [llms.txt](https://owo-game.gitbook.io/unreal-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://owo-game.gitbook.io/unreal-engine/connection.md).

# Connection

## Connection

To use OWO’s SDK the first step is to establish the connection with the OWO App. There are many ways to establish it:&#x20;

* **Configure**: This method prepares a game auth for your game, it must be called before using the OWO SDK.&#x20;

<figure><img src="https://lh6.googleusercontent.com/GzqrCOa_bCJuc8P45WsUgTwjSszVtqB1tfo4crDhPTMRf1c0hNHWnP9uknzaFk3UL5EIuZMWUb1Afyi-BktLpZ_V7R3ZDKFERJjeDa1nWFlTmjsshj7loGmM_CDttZHlclnqwAgpFfZ82J7XqZ-RVbA" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**Important:** Before attempting to connect you **must** have called the Configure blueprint.
{% endhint %}

* **Update Status**: This must be called periodically in order to establish a connection and to listen for disconnections. It needs the current game time in milliseconds.

  <figure><img src="https://494349446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcbzlEbnXSvZccFt0fcT7%2Fuploads%2FyZdks6xEicdNVsCOhs3L%2Fimage.png?alt=media&amp;token=49c8f54f-8995-4d86-bdec-909df760d6a8" alt=""><figcaption></figcaption></figure>
* **Manual connection**: The user must enter the IP that the OWO App provides when pressing the Play button. &#x20;

<figure><img src="https://lh4.googleusercontent.com/ugwHE2Fe9qByin7Y89S1oVYtPgPqacF-UjMqmFqptdhCysh3q2CpA3glTg4QVdX-6jfq8nq15NS-pas6OUFfV6TgTzzFeF1aNprshj1XYdYAUPpVxVS4_UUJK0bN1pz9RXfBGx2g0K9DuOBLxtUjF5U" alt=""><figcaption></figcaption></figure>

* **Automatic IP connection**: Through the Autoconnect function, the  OWOController' class will prepare itself to connect to any available OWO App. Calling UpdateStatus is still necessary.

  <figure><img src="https://lh3.googleusercontent.com/Jhf4MjmDc0dHILqYNjLJOod6JP0OKrGP1oWQSLDH4Nkzfpoxx0uIDYjGTF971xCNAVU1kfYuds90thvbd4l6dlrMUDtI1Lh-HqcXJdP2xzdosZrVT0qgqYqW9_4BqJ2qcHGTQTlnQBEVn7xwXmKD3Ec" alt=""><figcaption></figcaption></figure>
* **Disconnection**: Call the Disconnect blueprint to close an established connection

  <figure><img src="https://lh5.googleusercontent.com/CJNQsS3GjZD2cL4X8BVH1fJ285qJSAPDN4lhrfpHKtI_zxPFr8yOw8ncbdfLZ09oqJaMfGVMQqLoGO59WA2d4z2-m1hmoaTb-wnkS0bMmYobAaG1_X3Lb4cs-9xpG6P165Clb9CjaPh63wGQ0-1lnII" alt=""><figcaption></figcaption></figure>
* **Connection Status**: Get the current connection status in the form of an enum

<figure><img src="https://lh6.googleusercontent.com/bwBGIOtfR1UU6Vc-5gy7uUQf1hmL_2wV_iMCklTt5DvB62mm4QKlqPo_PqyNj4UJHInV_GkCnBM5MI6iWssOfETK3IR8D9C1dT9RFjGtO2A8YnmGKWPV13Nuksg-bcDUp2NsGEnnfasYyOXL2ezmhAE" alt=""><figcaption></figcaption></figure>

* **Start Scan**: Searches the local network for available devices to connect to. It works like UpdateStatus.

  <figure><img src="https://494349446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcbzlEbnXSvZccFt0fcT7%2Fuploads%2FPOr2N6nPrzXoCknPF4Ss%2Fimage.png?alt=media&amp;token=b6e95e37-97d8-47f5-aa10-1be6f828e703" alt=""><figcaption></figcaption></figure>
* **Get Available Servers**: Returns the list of available devices that Scan Devices found in the local network.

  <figure><img src="https://lh5.googleusercontent.com/N5lhtE-ZiI5ywQl1y1BXU6D-D6_zRSm5fGpr8XAI56ho4QlW-675v1ocOgsiunktrB7Im-W9l6xicaglWea46lXQUGFztN8Q-zNGx61F_miLzoMvFgUw5jGzgpxof4meHYJmb6_6h9aLHJd8YOHk92s" alt=""><figcaption></figcaption></figure>
* **MultiConnect**: It is possible to connect to multiple OWO Apps at the same time through the use of the Multi Connect blueprint.

  <figure><img src="https://lh6.googleusercontent.com/pV-zQnFWoFjTRbg2_gH7qCkfJanmG0hwHEN4EJPXyULDteLoW9UKPZqQGm_WEU2GjS9mid9rKX-w4EcHb7Ty0GgWcsQVruyFIWVOnLWaHTBeezxqet4WcGwWUC9nzDJDDR69nQq8xBSWaVDKtxHdD2U" alt=""><figcaption></figcaption></figure>
