Bitcoin Forum
July 20, 2025, 05:41:44 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin core won't connect over Tor.  (Read 197 times)
Ambivilance (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 3


View Profile
March 17, 2021, 04:16:51 AM
 #1

I am trying to connect to my full node over tor using my hidden service but it will not connect.
If I put
Code:
onlynet=onion
  in the bitcoin.conf, then I get 0 peers. If I add onion seednodes, then in the debug.log it says connection refused (111).

 Huh
ranochigo
Legendary
*
Offline Offline

Activity: 3164
Merit: 4504



View Profile
March 17, 2021, 04:53:36 AM
 #2

Did you get an onion address in the debug.log? Did you configure Tor correctly? Can you add debug=Tor into the config file?

Try following the steps here: https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md#3-automatically-listen-on-tor

░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
 
    ANN THREAD    
 
      TUTORIAL      
Ambivilance (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 3


View Profile
March 17, 2021, 05:14:36 AM
 #3

yes I got an onion address in the debug
NotATether
Legendary
*
Offline Offline

Activity: 2030
Merit: 8715


Search? Try talksearch.io


View Profile WWW
March 17, 2021, 09:40:12 AM
 #4

yes I got an onion address in the debug

If you run getnetworkinfo from the console or bitcoin-cli and you see something like:

Code:
"networks": [
...
{"name": "onion",
"reachable": false,
...
}
]

Then it means your Tor is misconfigured and you need to check that there is actually a Tor process listening on port 9050 or whichever port you configured bitcoin Core to use.

Alternatively if you see a score of zero in the "addresses" section of the output for your onion address then you might have put a custom onion address in the bitcoin.conf that is different from the hidden service that Tor created. Don't specify it in bitcoin.conf so that it finds the onion address automatically.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
Ambivilance (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 3


View Profile
March 17, 2021, 08:47:06 PM
 #5

yes I got an onion address in the debug

If you run getnetworkinfo from the console or bitcoin-cli and you see something like:

Code:
"networks": [
...
{"name": "onion",
"reachable": false,
...
}
]

Then it means your Tor is misconfigured and you need to check that there is actually a Tor process listening on port 9050 or whichever port you configured bitcoin Core to use.

Alternatively if you see a score of zero in the "addresses" section of the output for your onion address then you might have put a custom onion address in the bitcoin.conf that is different from the hidden service that Tor created. Don't specify it in bitcoin.conf so that it finds the onion address automatically.


OK I did getnetworkinfo and  yielded basically this:

Code:
name onion
limited false
reachable true
proxy 127.0.0.1:9150

address myOnion.onion
port 8333
score: not zero, won't say because I do not know what it means

Also I have 10 connections but they are all out, no in connections if that is of any significance.
posi
Hero Member
*****
Offline Offline

Activity: 2282
Merit: 580


Shine bright like a diamond


View Profile
March 18, 2021, 02:26:27 PM
 #6

Do you by chance edit the respond you provided after using the getnetworkinfo cause status of your ipv4 and ipv6 connections ought to be included.
Follow the above description but if the problem continue that mean you will have to operate over Tor completely by starting it with this option:
Code:
-onlynet=onion
Check here for more insight.

▄███████████████████▄
████████████████████████

██████████▀▀▀▀██████████
███████████████▀▀███████
█████████▄▄███▄▄█████
████████▀▀████▀███████
█████████▄▄██▀██████████
████████████▄███████████
██████████████▄█████████
██████████▀▀███▀▀███████
███████████████████████
█████████▄▄████▄▄████████
▀███████████████████▀
.
 BC.GAME 
███████████████
███████████████
███████████████
███████████████
██████▀░▀██████
████▀░░░░░▀████
███░░░░░░░░░███
███▄░░▄░▄░░▄███
█████▀░░░▀█████

███████████████

███████████████

███████████████

███████████████
███████████████
███████████████
███████████████
███████████████
███░░▀░░░▀░░███
███░░▄▄▄░░▄████
███▄▄█▀░░▄█████
█████▀░░▐██████
█████░░░░██████

███████████████

███████████████

███████████████

███████████████
███████████████
███████████████
███████████████
███████████████
██████▀▀░▀▄░███
████▀░░▄░▄░▀███
███▀░░▀▄▀▄░▄███
███▄░░▀░▀░▄████
███░▀▄░▄▄██████

███████████████

███████████████

███████████████

███████████████

DEPOSIT BONUS
.1000%.
GET FREE
...5 BTC...

REFER & EARN
..$1000 + 15%..
COMMISSION


 Play Now 
BitMaxz
Legendary
*
Offline Offline

Activity: 3682
Merit: 3380


Don't get greedy...


View Profile WWW
March 18, 2021, 05:31:20 PM
 #7

Did you just added "onlynet=onion" on bitcoin.conf?

Can you post here the whole text from your Bitcoin.conf here

It seems it's not properly set up that is why the debug.log says connection refused.

Anyway, use these links and the video guide below to set up your node to run it over TOR service.

- Setting up a Tor hidden service

For two youtube video guides
- https://www.youtube.com/watch?v=57GW5Q2jdvw
- https://www.youtube.com/watch?v=n2IUYL7hCOI

Follow the steps carefully so that you can properly set up it with TOR service.

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
Ambivilance (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 3


View Profile
March 19, 2021, 04:45:31 AM
 #8

Did you just added "onlynet=onion" on bitcoin.conf?

Can you post here the whole text from your Bitcoin.conf here

It seems it's not properly set up that is why the debug.log says connection refused.

Anyway, use these links and the video guide below to set up your node to run it over TOR service.

- Setting up a Tor hidden service

For two youtube video guides
- https://www.youtube.com/watch?v=57GW5Q2jdvw
- https://www.youtube.com/watch?v=n2IUYL7hCOI

Follow the steps carefully so that you can properly set up it with TOR service.

txindex=1
server=1
walletbroadcast=0
proxy=127.0.0.1:9150
listen=1
bind=127.0.0.1
addnode=abc....onion
NotATether
Legendary
*
Offline Offline

Activity: 2030
Merit: 8715


Search? Try talksearch.io


View Profile WWW
March 19, 2021, 05:09:55 AM
 #9

OK I did getnetworkinfo and  yielded basically this:

Code:
name onion
limited false
reachable true
proxy 127.0.0.1:9150

address myOnion.onion
port 8333
score: not zero, won't say because I do not know what it means

Also I have 10 connections but they are all out, no in connections if that is of any significance.

A non-zero score basically means things are able to connect to your hidden service.

I think I know the problem based on the fact that you have no incoming connections. It is because you have:

bind=127.0.0.1

So it is only listening on localhost (try to use bitcoin-cli from the same machine and it should work, but not from a machine over the network).

Try putting bind=0.0.0.0 to listen on all network interfaces including the one that's connected to the internet, or removing that line entirely to let Core figure out to do that itself.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
Ambivilance (OP)
Newbie
*
Offline Offline

Activity: 24
Merit: 3


View Profile
March 19, 2021, 06:19:16 AM
 #10

I changed the proxy to port 9050 and I have 13 connections (all out) and some are onion nodes.

maybe electrum will connect to my onion now...
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!