# Connect a Lightning node

A lightning node can be set up in numerous ways.\
This documentation will not cover the node setup process itself. Instead, it focuses on the next step — connecting BitBanana to your already operational node.

Don’t have a node? Begin [here](/setup/connect-a-lightning-node/setup-a-node.md).

## Connection strategies

BitBanana offers multiple ways to connect to your node. Take a moment to explore the pros and cons of each option before deciding on the best connection strategy for your needs.

* **Clearnet**\
  Clearnet offers fast connectivity, but it exposes your IP address. Additionally, your node’s IP address must remain static, which can be tricky for most users.
* **Tor**\
  Tor offers the highest level of privacy, but its performance can be slow and unreliable, especially during network downtime.\
  A major benefit is that it eliminates the need for a static IP address, as the Tor service handles this for you.\ <mark style="color:green;">--> If privacy is your top priority, Tor is the preferred choice.</mark>
* **VPN: Tailscale or Zerotier**\
  An exciting alternative is using Tailscale or Zerotier, offering the same speed as clearnet without requiring a static IP.\
  These services simulate a local network over the internet, ensuring your traffic is encrypted end-to-end. While even the service providers can’t read your data, they do have access to your IP addresses, making it a little less private choice compared to Tor.\ <mark style="color:green;">--> If user experience is your top priority, this is the preferred choice.</mark>&#x20;

{% hint style="info" %}
We recommend a VPN solution using Tailscale or Zerotier due to its excellent combination of security, privacy, and usability (speed).&#x20;
{% endhint %}

## Connect&#x20;

Connecting BitBanana with a node is simple.\
You'll just need a connection URI or a QR code that contains one.\
\
The connection URI must be in one of these two formats:

* [lndconnect URI](/setup/connect-a-lightning-node/lndconnect-uri.md)
* [cln-grpc URI](/setup/connect-a-lightning-node/clngrpc-uri.md)

{% hint style="danger" %}
These connection URIs contain all information needed to access the funds of your node / wallet.\
Keep it confidential and do not save or share it anywhere.
{% endhint %}

Next, proceed with the following steps:

{% stepper %}
{% step %}

### Open scan view

Tap the QR code scanner icon located on the home screen.
{% endstep %}

{% step %}

### Scan or paste

Scan the QR code or tap the paste button to input the connection URI you copied earlier.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
As the QR-Code might be very dense, some phones won't scan it. Please fall back to copy/paste in these cases.
{% endhint %}

## Detailed connection instructions

How you obtain these connection URIs will vary based on the project you chose to setup your node.\
Here are step-by-step guides for the most popular projects, arranged alphabetically.

[BTCPay](/setup/connect-a-lightning-node/btcpay.md)\
[myNode](/setup/connect-a-lightning-node/mynode.md)\
[nodl](/setup/connect-a-lightning-node/nodl.md)\
[Raspiblitz](/setup/connect-a-lightning-node/raspiblitz.md)\
[Start9](/setup/connect-a-lightning-node/start9.md)\
[Umbrel](/setup/connect-a-lightning-node/umbrel.md)


---

# 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://docs.bitbanana.app/setup/connect-a-lightning-node.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.
