> For the complete documentation index, see [llms.txt](https://docs.lightning.engineering/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lightning.engineering/lightning-network-tools/aperture/lnc-backend.md).

# LNC Backend

Lightning Node Connect (LNC) lets you connect applications to your node by only passing on an eight word connection phrase, even if your node is behind a NAT or Tor.

From version 0.2 aperture supports connecting to its LND backend over LNC, allowing you to connect to your personal node without the need to open ports or configuring Tor or NAT.

This configuration is different than configuring the [LNC Mailbox](/lightning-network-tools/aperture/mailbox.md), though both may be configured at the same time.

## Create an LNC pairing phrase <a href="#docs-internal-guid-a24df49a-7fff-3fb2-349f-bd877f7028c0" id="docs-internal-guid-a24df49a-7fff-3fb2-349f-bd877f7028c0"></a>

[You can create a pairing phrase using the Lightning Terminal UI or the command line.](/lightning-network-tools/lightning-terminal/connect.md)

## Configure Aperture <a href="#docs-internal-guid-d81cd037-7fff-d310-921e-9e435d777d57" id="docs-internal-guid-d81cd037-7fff-d310-921e-9e435d777d57"></a>

To configure Aperture, you will need to edit or create the configuration file in `~/.aperture/aperture.yaml`

The relevant section should look like this:

```yaml
# The address which the proxy can be reached at.
listenaddr: "localhost:8080"

# Settings for the lnd node used to generate payment requests. All of these
# options are required.
authenticator:
  passphrase: "your pairing phrase"
  mailboxaddress: "mailbox.terminal.lightning.today:443"
  network: "mainnet"
  devserver: false

# The selected database backend. The current default backend is "sqlite".
# Aperture also has support for postgres and etcd.
dbbackend: "sqlite"
```

At the time of writing, Aperture over LNC only works with the default database backend sqlite.

## Run Aperture

You should be able to run aperture with `aperture`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lightning.engineering/lightning-network-tools/aperture/lnc-backend.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
