Bitcoin Forum
May 21, 2024, 10:27:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to get inbound connections?  (Read 142 times)
bitcoin-student (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 1


View Profile
February 08, 2021, 08:13:06 AM
Merited by ABCbits (1)
 #1

Running ubuntu, tor, bitcoind, and have the setting maxconnections=50, yet I don't get more than 10 connections, unless I add one manually. When I run getpeerinfo I only get outbound-full-relay and block-relay-only type of connections. I don't have inbound connections.

When I run bitcoin-cli getpeerinfo | grep true, I do get several with true for the relaytxes value. Does this mean outbound connections?

I want to contribute to the network and have inbound connections, but I can't figure out how. Help!
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
February 08, 2021, 08:34:51 AM
 #2

Open port 8333, put listen=1 in your Bitcoin.conf.

Peers has to connect to you for it to be shown as incoming. For my Bitcoin Core, more than half of it are scraping nodes which doesn't do anything except to keep track of the nodes on the network.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6753


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 08, 2021, 08:45:38 AM
Merited by xandry (2), ABCbits (1)
 #3

Are you running Core in onlynet mode? (onlynet=onion)? If so run getnetworkinfo and check if the score field ever increases from zero. If it's stuck there then your Tor is misconfigured.

With the default configuration file, Core will find incoming peers automatically after launch and the number of peers steadily increases every few hours.

Usually out of your 10 outbound peers, 8 of them are outbound-full-relay and 2 are block-relay-only nodes so there's nothing wrong there.

When I run bitcoin-cli getpeerinfo | grep true, I do get several with true for the relaytxes value. Does this mean outbound connections?

Yeah. Since these are outbound peers, your node is supposed to be sending transactions and blocks to them.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
bitcoin-student (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 1


View Profile
February 08, 2021, 09:40:08 AM
 #4

Thank you! Yes, I do have onlynet=onion.

Are you running Core in onlynet mode? (onlynet=onion)? If so run getnetworkinfo and check if the score field ever increases from zero. If it's stuck there then your Tor is misconfigured.

There is no score in the json output. Do you mean connections? I have connections_out: 10 and connections_in: 0.

Are you saying relaytxes: true means I have incoming connections? If so, why do they show as zero in getnetworkinfo? Also, why does it not increase to above 10, even though I have the maxconnections=50 setting?
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6753


bitcoincleanup.com / bitmixlist.org


View Profile WWW
February 08, 2021, 10:09:47 AM
 #5

Are you running Core in onlynet mode? (onlynet=onion)? If so run getnetworkinfo and check if the score field ever increases from zero. If it's stuck there then your Tor is misconfigured.

There is no score in the json output. Do you mean connections? I have connections_out: 10 and connections_in: 0.

The getnetworkinfo RPC call returns as one of the JSON elements another object that looks like this:

...
  "networks": [                          (array) information per network
  {
    "name": "xxx",                     (string) network (ipv4, ipv6 or onion)
    "limited": true|false,               (boolean) is the network limited using -onlynet?
    "reachable": true|false,             (boolean) is the network reachable?
    "proxy": "host:port"               (string) the proxy that is used for this network, or empty if none
    "proxy_randomize_credentials": true|false,  (string) Whether randomized credentials are used
  }
  ,...
  ],
  ...
  "localaddresses": [                    (array) list of local addresses
  {
    "address": "xxxx",                 (string) network address
    "port": xxx,                         (numeric) network port
    "score": xxx                         (numeric) relative score
  }
  ,...
  ]

If you do not see score in the output, then the localaddresses dictionary (or map, or hash table, you get it) must be empty, and without addresses you can't receive any inbound connections.

Meanwhile, networks will give you information about what connection methods Core is using (IPv4, IPv6 and/or Tor).

Are you saying relaytxes: true means I have incoming connections? If so, why do they show as zero in getnetworkinfo? Also, why does it not increase to above 10, even though I have the maxconnections=50 setting?

No, relaytxes is something unrelated to your problem (because both incoming and outgoing nodes might set it). It only means that the whatever node set it is receiving transactions from you.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
February 08, 2021, 10:18:26 AM
 #6

Thank you! Yes, I do have onlynet=onion.

Are you running Core in onlynet mode? (onlynet=onion)? If so run getnetworkinfo and check if the score field ever increases from zero. If it's stuck there then your Tor is misconfigured.

There is no score in the json output. Do you mean connections? I have connections_out: 10 and connections_in: 0.

Are you saying relaytxes: true means I have incoming connections? If so, why do they show as zero in getnetworkinfo? Also, why does it not increase to above 10, even though I have the maxconnections=50 setting?
Did you specify listen=1?

When operating behind a proxy, Bitcoin Core specifically disables listening to the incoming peers. You'd want to bind the address to 127.0.0.1 by using -bind= or else the client will listen on clearnet as well. Bitcoin Core connections are bidirectional; you are relaying blocks and transactions to and from your peers regardless of connection polarity.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
bitcoin-student (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 1


View Profile
February 08, 2021, 11:36:04 AM
 #7

Thanks guys!

I added the listen=1 and now I see the localaddresses hash, but it's empty. So, it seems like we're on the right track to resolve the issue, but not fully solved yet...

I do have the setting: proxy=127.0.0.1:8050

Any suggestion on a next step?
bitcoin-student (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 1


View Profile
February 08, 2021, 12:52:18 PM
 #8

I do have the setting: proxy=127.0.0.1:8050
Is it typo or you intentionally set Tor to use port 8050 rather than 9050?
Yes, typo. I have 9050.
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
February 08, 2021, 12:52:25 PM
 #9

Any suggestion on a next step?
That's it. When I was running my node on Tor a few weeks ago, it took quite some time for me to get any incoming connections. Tor V3 addresses was recently adopted, together with the address gossiping and this made it such that there are lesser Tor V3 addresses that were able to connect to my node.

If you'd like, I can try to connect to your node to see if it's working. Obviously not a wise choice as this could have some impact on your privacy, or else just wait for a bit.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!