Author

Topic: How to get inbound connections? (Read 144 times)

legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
February 08, 2021, 07:52:25 AM
#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.
newbie
Activity: 4
Merit: 1
February 08, 2021, 07:52:18 AM
#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.
newbie
Activity: 4
Merit: 1
February 08, 2021, 06: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?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
February 08, 2021, 05: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.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 08, 2021, 05: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:

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.
newbie
Activity: 4
Merit: 1
February 08, 2021, 04: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?
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 08, 2021, 03:45:38 AM
#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.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
February 08, 2021, 03: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.
newbie
Activity: 4
Merit: 1
February 08, 2021, 03:13:06 AM
#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!
Jump to: