# Function: remoteNode()

```ts
function remoteNode(port): Promise<P2PNode>;
```

Defined in: [packages/core/src/node/remote.ts:190](https://github.com/leifriksheim/minca/blob/main/core/src/node/remote.ts#L190)

The node `serveNode` answers for on the other end of `port`: the same API,
each call a message. Resolves once the node has said who it is.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `port` | [`MessagePortLike`](https://minca.dev/api/core/interfaces/MessagePortLike.md) |

## Returns

`Promise`\<[`P2PNode`](https://minca.dev/api/core/interfaces/P2PNode.md)\>
