Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › Bitcoin

What Tor Does for BTCPay Server—and How Onion Access Works

By Freedom251 Team · · 8 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Tor gives a BTCPay Server installation an onion service that can be reached without publishing the server’s ordinary internet address. In the standard Docker deployment, Tor services are enabled by default, helping some home and office operators avoid port-forwarding, public DNS and a fixed Lightning IP. Onion access is a routing option—not a guarantee of anonymity, leak-free plugins or an inaccessible clearnet site.

What Tor does in BTCPay Server

BTCPay Server can use Tor in two related ways. First, its standard Docker deployment includes Tor hidden services and selected Tor connectivity as part of the Bitcoin setup. The deployment FAQ says Tor is activated by default on Docker deployments; the official Docker README lists hidden services among the bundled components (Deployment FAQ; btcpayserver-docker README).

As an Amazon Associate I earn from qualifying purchases.

A hidden service gives the BTCPay instance a hostname ending in .onion. A Tor-capable browser or application connects through the Tor network instead of resolving that hostname through ordinary DNS. The result is an alternative route to the BTCPay web interface and, depending on the services enabled, to other BTCPay endpoints.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Second, BTCPay can use Tor for selected outbound or peer connections. Its Bitcoin node can have a Tor peer endpoint, and configuration options can point applications at a Tor SOCKS endpoint. The exact services and defaults depend on the deployment and version, so an installation should be checked against the documentation for the version actually running.

#1 Best Overall
Bitkey Bitcoin Hardware Wallet, No Screen - Self-Custody, No Seed Phrase
  • BITCOIN EXCLUSIVE, PHONE VERIFICATION: Bitkey is designed from the ground up exclusively for bitcoin — a dedicated hardware wallet for secure bitcoin storage. Approve transactions with a tap using your phone and NFC. No device screen is required.
  • SELF-CUSTODY, NO EXCHANGE OR CUSTODIAN REQUIRED: You hold two of the three keys in the Bitkey system – one on your phone and one on your Bitkey device. The third is stored on Bitkey’s server and cannot move your bitcoin on its own.
  • NO SEED PHRASE: Set up and use Bitkey without creating or storing a seed phrase.
  • 2-of-3 MULTISIG: Three keys are stored separately across your phone, Bitkey device, and Bitkey’s server. Any two keys are required to move your bitcoin.
  • BUILT-IN RECOVERY: Encrypted backup and recovery tools can help you regain access if you lose your phone or Bitkey device. You can also designate a Recovery Contact.

Why activate Tor? Does it mean that nobody knows who I am?

Tor can simplify a particular hosting problem: running BTCPay at home or in an office without exposing the same set of network details that a conventional public deployment requires. BTCPay’s FAQ specifically identifies several tasks that onion access can reduce or avoid in this use case:

  • Opening inbound firewall ports to the public internet.
  • Creating NAT or router redirections.
  • Configuring public DNS so an HTTPS certificate can be issued for the site.
  • Maintaining a fixed public IP address for Lightning connectivity.

These are documented benefits for the Docker arrangement and similar setups; they are not a promise that every BTCPay installation can dispense with all network configuration. A locally hosted server still needs reliable power, storage, backups and administration, and any clearnet services you deliberately publish still have their normal exposure.

Tor also does not make the operator anonymous. BTCPay’s documentation states: “But if you’re looking for perfect privacy and security, activating Tor with your BTCPay just won’t do it.” The warning matters because the application is more than its login page. Plugins, payment integrations, webhooks, browser behavior, server logs and administrative mistakes can reveal information or send requests over the ordinary network.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to find the BTCPay onion address

There are two documented ways to retrieve the address. Use the server settings when you can already sign in, or read the generated hostname file when you need the address before opening the site over clearnet.

Rank #2
Trezor Safe 3 Crypto Hardware Wallet with Secure Element
  • Unparalleled Security: Protect your assets NDA-free EAL 6+ Secure Element, offering robust defense and complete transparency
  • Simple & Secure Interface: Manage your digital assets easily with a clear OLED screen for secure on-device confirmations
  • Supports 1000s of Coins & Tokens: Securely handle thousands of assets, including Bitcoin, Ethereum, and more, all in one wallet
  • Effortless Asset Management: Monitor and transact seamlessly with Trezor Suite, our intuitive desktop and mobile app
  • Enhanced Backup Solution: Rest assured with Multi-share Backup, eliminating single points of failure for secure cold wallet recovery

From Server Settings

  1. Sign in to the BTCPay Server administrator interface.
  2. Open Server Settings.
  3. Open the Services section. The reverse-proxy documentation identifies this page as the place where the Tor .onion address is displayed (Reverse proxy to Tor).
  4. Copy the complete onion hostname, including its suffix, and open it in a Tor-capable browser.

The settings page is preferable for routine administration because it shows the address generated for that instance rather than relying on a presumed file location.

From the documented Docker volume

For the standard Docker arrangement described by BTCPay, the deployment FAQ gives this command:

cat /var/lib/docker/volumes/generated_tor_servicesdir/_data/BTCPayServer/hostname

Run it on the host that runs the BTCPay Docker deployment. The command prints the hostname stored in the generated Tor services volume. The path is specific to that documented layout: custom Compose projects, renamed volumes, non-Docker installations and manually managed Tor directories may use a different location. If the file is absent, use Server Settings or inspect the deployment’s actual volume and Tor-service configuration rather than creating a file with a guessed name.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Opening the address safely

  • Use a browser configured to reach onion services; an ordinary browser will not resolve a .onion hostname through public DNS.
  • Enter the full hostname exactly as displayed. A single missing character produces a different, unreachable address.
  • Bookmark the address only after verifying that it belongs to your server through the administrator settings or host file.
  • Keep a separate record of the address and recovery credentials. Losing the generated service data can change or remove the address after a rebuild.

Standard Docker Tor versus a reverse proxy to Tor

BTCPay documents more than one operating pattern. They solve different network problems, so the advanced reverse-proxy guide should not be treated as a prerequisite for ordinary onion access.

Rank #3
Trezor Safe 3 Crypto Hardware Wallet with Secure Element
  • Unparalleled Security: Protect your assets with EAL 6+ Secure Element, offering robust defense and complete transparency
  • Simple & Secure Interface: Manage your digital assets easily with a clear OLED screen for secure on-device confirmations
  • Supports 1000s of Coins & Tokens: Securely handle thousands of assets, including Bitcoin, Ethereum, and more, all in one wallet
  • Effortless Asset Management: Monitor and transact seamlessly with Trezor Suite, our intuitive desktop and mobile app
  • Enhanced Backup Solution: Multi-share Backup eliminates single points of failure for secure cold wallet recovery
Approach What it provides Infrastructure described by BTCPay Best fit
Standard Docker deployment Bundled Tor hidden services and selected Tor connectivity, with an onion address shown in BTCPay settings The services included by the official Docker deployment; no separate VPS or public domain is required by the onion-access instructions Operators who want private onion reachability, including some home or office hosts
Manual reverse-proxy-to-Tor setup A separately configured proxy that can expose selected BTCPay payment-gateway or API traffic through a chosen public-facing arrangement The guide lists a VPS, root access and a domain as requirements Operators who need deliberate proxying and control over which traffic is exposed

The reverse-proxy pattern involves more moving parts: a proxy host, DNS and certificates where clearnet access is used, firewall policy and a Tor service on the BTCPay side. It can be appropriate when an operator wants to publish only selected endpoints rather than make the whole administration surface available. It is not necessary merely to use the onion address generated by a standard Docker deployment.

What onion access does—and does not—hide

It can hide the ordinary server endpoint from onion visitors

A visitor using the onion hostname connects through Tor rather than directly addressing the server’s public IP. That can be useful when the operator does not want to publish a home or office address as the normal web endpoint. It can also avoid the need to expose the web service through a conventional inbound port.

It does not make the operator anonymous

BTCPay explicitly cautions that enabling Tor cannot guarantee that no information leaves in clear or that nobody can connect over clearnet. A merchant can still reveal identity through domain registrations, payment metadata, email, support channels, browser fingerprints, server logs, plugin requests or an intentionally published clearnet URL. Tor protects a route; it does not rewrite application behavior or operational practices.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Plugins and integrations remain part of the trust boundary

BTCPay’s service and plugin ecosystem changes over time. A plugin may call an external service, receive a webhook or process data in a way that is not covered by the onion route. Review each integration’s network behavior and data handling. If an integration requires a public callback, Tor access to the BTCPay interface alone will not satisfy that requirement.

Rank #4
Trezor Safe 7 Crypto Hardware Wallet with Bluetooth for Android/iOS/Desktop | Charcoal Black, Aluminum Unibody, 2,5" TouchScreen, Wireless Charging, Quantum-Ready, IP54, Long-Lasting LiFePO? Battery
  • Dual-chip architecture for maximum protection: The next-gen, fully auditable TROPIC01 chip works alongside a certified EAL6+ Secure Element—completely NDA-free—to deliver radically transparent, industry-leading defense against physical attacks.
  • Quantum-ready security: Get protection against future threats with the first-ever hardware wallet designed with quantum-ready architecture.
  • See every detail with confidence: Our largest high-resolution color touchscreen makes it easy to navigate your assets, review transactions and manage your coins with clarity.
  • Wireless freedom with encrypted Bluetooth control: Manage, buy, swap and stake securely using Trezor Suite on desktop or mobile. Qi2-compatible wireless charging keeps your Trezor powered up. No cables required—security meets convenience.
  • Works seamlessly with Android, iOS and desktop: Connect wirelessly or via USB-C to your phone or computer. Manage your crypto anywhere with our companion Trezor Suite app.

Bitcoin peer-to-peer access and the P2P onion address

BTCPay’s FAQ says the Bitcoin P2P port is not exposed externally by default and that a P2P connection is available over Tor (BTCPay Server repository). That default limits unsolicited clearnet connections, but it does not make every peer safe.

Do not distribute the P2P onion service indiscriminately

BTCPay warns that sharing the Bitcoin P2P onion service with untrusted parties can let malicious peers target the node and potentially DDoS it. Treat that address as operational infrastructure, not as a public marketing URL. Share it only with peers or services you understand and monitor.

Be cautious with port 8333 on clearnet

The same guidance cautions against unsafe clearnet exposure of Bitcoin’s port 8333. If clearnet P2P access is required, limit it to a trusted LAN or use host-whitelisting firewall rules. Do not open the port broadly simply because a peer connection is not working; first determine whether the intended peers can use the Tor endpoint.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Configuration options and version boundaries

The BTCPay configuration reference lists several Tor-related options (Configuration Reference):

Best Value
Ledger Nano X - Classic Crypto Wallet with Bluetooth | Compact, go anywhere, 1.1" display. Desktop & iOS/Android compatible
  • Effortlessly build your crypto portfolio via the all in one Ledger Wallet app: buy, sell, send, receive, swap, stake and more across popular blockchains. 15,000+ coins & tokens in a single dashboard. Keep a close eye on the market. Compare service providers. Track performance. Get timely alerts. Build your portfolio with confidence.
  • Enjoy Bluetooth connectivity, iOS access, and hours of battery use with this mobile-first, secure backup signer. Freedom you can depend on.
  • Genuine Check: confirm your signer is authentic during setup with the Ledger Wallet app.
  • Protect your signer: keep it in mint condition at all times with a bespoke Pod or Case to avoid scratches and everyday wear and tear.
  • torrcfile specifies the path to a torrc file containing hidden-service directories.
  • torservices supplies Tor hostnames that are added to Server Settings and to the BTCPay onion header.
  • socksendpoint specifies a SOCKS endpoint used to connect to onion URLs.

These names are configuration reference entries, not universal instructions to edit a file on every deployment. The reference is generated from options registered by the standard Bitcoin build and warns that settings and defaults can change. Check the reference corresponding to the deployed version, preserve a backup of the current configuration and restart only through the deployment method documented for that installation.

A practical setup and verification checklist

  1. Identify the deployment. Confirm whether the server uses the official Docker deployment, a custom Docker layout or a manually proxied installation.
  2. Confirm Tor is running. In the standard Docker case, Tor is expected to be enabled by default; custom deployments require checking their own service definitions and logs.
  3. Retrieve the hostname. Use Server Settings > Services, or the documented Docker-volume command when that path applies.
  4. Test from a Tor-capable browser. Verify that the onion page loads and that the certificate or browser security state is consistent with the onion service.
  5. Test the functions you actually need. Log in, open the store or payment page, and test any API or webhook separately. An onion homepage does not prove that every integration works through Tor.
  6. Review exposure. Check router rules, cloud firewalls, reverse-proxy routes and port 8333. Remove broad rules that are not required.
  7. Protect the address and service data. Restrict access to the P2P onion hostname, back up the deployment data and document how to recover the service after a host migration.

Troubleshooting common failures

The onion hostname does not load

First verify that the client is using a Tor-capable browser. Then confirm the hostname character by character against Server Settings or the host file. If the service recently moved, check that the generated Tor volume and its permissions survived the migration.

The hostname file is missing

The published path applies to the documented Docker volume layout only. List the deployment’s actual volumes and inspect its configuration, or retrieve the address from Server Settings. Do not assume that a differently named Compose project uses generated_tor_servicesdir.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The web interface works but an integration fails

Separate the interface test from the integration test. Payment callbacks, external APIs and plugins may require clearnet reachability or their own proxy settings. Review the integration’s endpoint requirements and the BTCPay logs before changing Tor or firewall rules.

Peers cannot connect to Bitcoin

Check whether the peer is expected to use Tor or clearnet. Avoid opening port 8333 to everyone. Use the Tor P2P endpoint for compatible peers, or apply a narrowly scoped firewall allowlist for trusted hosts on a private network.

Choosing the appropriate pattern

Choose the standard Docker onion service when the goal is straightforward private access to a self-hosted BTCPay instance and you do not need a separately managed public proxy. Consider the reverse-proxy-to-Tor design when you have the VPS, root access and domain required by that guide and need to expose only selected payment-gateway or API traffic under your own routing policy. In either case, treat Tor as one layer of network design: continue hardening accounts, plugins, backups, firewall rules and operational procedures.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

BitcoinBTCPay ServerDockeronion servicesself-hostingTor

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.