<p>Laanwj: it's not necessary in every case, bitcoin core can create its own hidden service, but it needs to be able to connect to tor's control port; see <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md</a>. in some linux distributions (debian-ish) this is possible without changes to torrc, you might need to add your user to some group, in others you do need changes</p>

CC BY-SA 4.0
2024-03-21T12:00:15.837Z
2024-03-21T12:00:15.837Z
Bob Dylan
<p>According to <a href="https://bitcoinwiki.org/wiki/setting-up-a-tor-hidden-service" rel="nofollow noreferrer">the wiki</a> the torrc file requires the following settings:</p>
<pre><code>ControlPort 9051 
CookieAuthentication 1 
CookieAuthFileGroupReadable 1
</code></pre>
<p>However, if you simply run bitcoind.conf with <code>onlynet=onion</code> and <code>listenonion=1</code> you'll get the same result as <code>getnetworkinfo</code> shows that ipv4/6 in unreachable while onion is reachable.</p>
<p>What gives? Why do we need the torrc config change as  the wiki states?</p>

<bitcoind><tor>
Why are torrc modifications required for a bitcoin hidden service on the wiki?
Bob Dylan
# Why are torrc modifications required for a bitcoin hidden service on the wiki?

(Asked by: username_0 on 2024-03-21)

According to [the wiki](https://bitcoinwiki.org/wiki/setting-up-a-tor-hidden-service) the torrc file requires the following settings:

```
ControlPort 9051 
CookieAuthentication 1 
CookieAuthFileGroupReadable 1

```

However, if you simply run bitcoind.conf with `onlynet=onion` and `listenonion=1` you'll get the same result as `getnetworkinfo` shows that ipv4/6 in unreachable while onion is reachable.

What gives? Why do we need the torrc config change as the wiki states?

**Tags:** bitcoind, tor


---

## 1 answers

### Answer by username_0 on 2024-03-21. Score: 0

Laanwj: it's not necessary in every case, bitcoin core can create its own hidden service, but it needs to be able to connect to tor's control port; see <https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md>. in some linux distributions (debian-ish) this is possible without changes to torrc, you might need to add your user to some group, in others you do need changes


---

