# Connecting to MA3 OnPC on the same PC

## 1 - MA3 OnPC Configuration

### 1.1 - Enable OSC Input / Output

On MA3, navigate through **Menu > In & Out > OSC**. On the top of this view, you will have two big toggle buttons: **"Enable Output"** and **"Enable Input"** - make sure you enable both.

![](/files/-M2ev8erTPwe7orE3XuD)

### 1.2 - Add Two Rows

It is not possible to have 2 applications listening to the same port In the same computer. Therefore, unlike the console/desk case, we need two rows in the table: one for input (ShowCockpit -> MA3) and another for the output (MA3 -> ShowCockpit).

![](/files/-M2evfVqA5nbiMMFbiR8)

In the example above, we have set the following settings:

| Parameter      | Input         | Output        |
| -------------- | ------------- | ------------- |
| Destination IP | 127.0.0.1     | 127.0.0.1     |
| Mode           | UDP           | UDP           |
| Port           | 8000          | 8001          |
| Prefix         | (leave empty) | (leave empty) |
| Receive        | Yes           | No            |
| Send           | No            | Yes           |
| ReceiveCmd     | Yes           | No            |
| SendCmd        | No            | Yes           |

## 2 - ShowCockpit MA3 - OSC element configuration

After adding the MA3 - OSC element to your project, you will need to tweak a few options before enabling the element.

| Parameter     | Value     | Description                                                         |
| ------------- | --------- | ------------------------------------------------------------------- |
| IP Address    | 127.0.0.1 | Leave this as the "loopback IP" since we are running in the same PC |
| Outgoing Port | 8000      | Outgoing from ShowCockpit to MA3 (input in MA3)                     |
| Incoming Port | 8001      | Incoming on ShowCockpit from MA3 (output in MA3)                    |

After setting the correct configuration, you should be able to connect to the MA3 OnPC by enabling the MA3 element.

{% hint style="info" %}
The port numbers used (8000 and 8001) are merely an example. If you encounter errors opening the ports, it means there are already other applications using these ports, and you must select a different set.

Please remember that both ports must match both on ShowCockpit and MA3.
{% 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://academy.showcockpit.com/showcockpit-for-windows/tutorials/lighting/connecting-to-ma3-onpc-on-the-same-pc.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.
