# Discover and adopt

> Adopt peer-to-peer nodes found over mDNS, check their senders and receivers, and take a first route between them.

NMOS discovery and adoption can help you bring senders and receivers into Buttons and start routing them within seconds. Select the nodes you want to control, adopt them as connections, and their routing resources become available alongside other sources and destinations.

This guide follows the shortest path: adopt peer-to-peer nodes discovered directly through mDNS, inspect their resources, and take a route.

## Before you begin

You need:

- The **NMOS** feature enabled.
- Access to create NMOS connections and execute routes.
- NMOS peer-to-peer nodes visible through mDNS.
- At least one sender and one compatible receiver. They can belong to the same node or different nodes.

## Adopt discovered nodes

1. Open **Connection → NMOS**.
2. Select **Discovered nodes** at the bottom of the connection list.
3. Find the node that supplies the sender or receiver you want to use. The discovery list shows its type, label, UUID, address, when it was last seen, and how it was discovered.
4. Select the node. Select both the sending and receiving nodes when they are separate.
5. Select **Adopt selected**.

The discovery panel closes and the adopted node appears in the NMOS connection list. A newly adopted peer-to-peer node may briefly show **Fetching Initial State** while its NMOS resources are loaded.

If several records describe the same node, the discovery view combines them so you can adopt the node once.

## Confirm the senders and receivers

1. Select the adopted node in the NMOS connection list.
2. Open **Ports and Bundles**.
3. Look under **Sources** for bundles available to route from the node.
4. Look under **Destinations** for bundles available to route to the node.

For a simple example, identify a source such as `Camera 1` and a destination such as `Engineering Monitor`. If the source and destination belong to separate nodes, inspect **Ports and Bundles** on each connection.

The resource counts and cards come from the adopted node's NMOS data. You do not need to create each sender and receiver as a routing port manually.

## Take the first NMOS route

Selecting **Take** changes the signal received by the chosen destination.

1. Open **Routing → Route**.
2. Above **Sources**, use the NMOS node filter to select the adopted node that contains `Camera 1`.
3. Above **Destinations**, use the same filter to select the adopted node that contains `Engineering Monitor`.
4. Leave **Bundles** selected.
5. Select `Camera 1` under **Sources**.
6. Select `Engineering Monitor` under **Destinations**.
7. Review the staged route and select **Take**.

A successful request reports **Routes executed successfully**. The destination's active-source display updates from the state reported by the NMOS receiver.

## Adopt a node from a Registry

When the node is available through an adopted NMOS Registry connection:

1. Open **Connection → NMOS** and select the Registry connection.
2. Open **All Nodes**.
3. Find the node and select **Adopt**.

The node changes to **Adopted** and appears under **Adopted Nodes** and in the NMOS connection list. Open the node's **Ports and Bundles** to inspect its routing resources, then follow the same routing steps above.

To adopt several nodes at once, select them in **All Nodes** and select **Adopt** in the action bar. Each node is adopted on its own, so one node that can't be adopted doesn't stop the rest. The notification that follows tells you what happened:

- **Adopted 3 nodes**: every selected node was adopted.
- **Adopted 2 nodes, skipped 1**: a warning listing the reason for each skipped node.
- **None of 3 nodes adopted**: nothing was adopted, with the reason for each node.

A node can only belong to one NMOS connection. If it's already adopted as a peer-to-peer node, or through a different registry, it's skipped with a message naming the connection that owns it, for example `Camera 1 is already adopted as a P2P node ("Camera 1"). Remove that connection before adopting it from this registry.`

## Add a node manually

Adding a node manually isn't the preferred way to work with NMOS. Discover nodes through mDNS, or adopt them from a registry, whenever you can. Use manual setup only when a peer-to-peer node can't be discovered, such as a node on another subnet with no registry to reach it through.

1. Open **Connection → NMOS**.
2. Select **Manual Add**.
3. Select **Node**.
4. Enter a **Label** and one or more **Node endpoints**.
5. Leave **IS-04** set to automatic selection unless the node requires a specific supported version.
6. Select **Create**.

Endpoints are tried in the order shown. After the connection loads its NMOS data, open **Ports and Bundles** to inspect the generated resources.

## If you get stuck

| What you see | What to try |
| --- | --- |
| The peer-to-peer discovery list is empty. | Confirm that mDNS discovery is enabled under **Settings → NMOS** and that the node is announcing on a reachable network. DNS-SD discovers Registries, not peer-to-peer nodes. |
| The node remains on **Fetching Initial State**. | Open the node and check its endpoint and connection status. Use **Retry** if the page shows **No NMOS Data found**. |
| **Ports and Bundles** shows no sources or destinations. | Confirm that the node exposes senders or receivers through IS-04 and that its connection is enabled. |
| The sender and receiver do not appear together in Routing. | Check the **Connections** filter above both lists and confirm that the intended connections are selected. |
| The route fails. | Open the route details and check the sender, receiver, compatibility, and IS-05 connection state before retrying. |

## Where to go next

- [Understand NMOS in Buttons](/docs/buttons/v1.10/nmos/concepts), for the concepts behind discovery and adoption.
- [Set up the built-in NMOS Registry Server](/docs/buttons/v1.10/nmos/built-in-registry).
- [Connect Buttons to an NMOS Registry](/docs/buttons/v1.10/nmos/connect-to-registry).
