Author

Topic: BTC Full Node listen=0 (Read 118 times)

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
June 19, 2023, 12:43:27 PM
#5
Listening lets other nodes initiate a connection with you. Both non-listening and listening nodes are vital for the network, but listening nodes establish more connections than non-listening, and therefore require more bandwidth.

They're more important in the sense that there can't be a network without listening nodes (but it can without non-listening).
legendary
Activity: 2268
Merit: 18509
June 18, 2023, 10:50:47 AM
#4
When using listen=1 you are likely exposing your IP to someone who wants to connect to your node and there is a potential risk on listen=1 without using TOR or hidden service malicious nodes/attackers can attempt to exploit something in your node.
Since it reveals your IP to someone you already compromise your privacy and it consumes much CPU and memory.
If you set listen=0 then your node simply rejects incoming connections. It will still make outgoing connections, because otherwise how would it function as a node at all? Each peer you are connected to will be able to see your IP, regardless of what setting you use for listen.

If privacy is your goal, then the only solution is running via Tor (or maybe a VPN, depending on your particular needs).
legendary
Activity: 3248
Merit: 2971
Block halving is coming.
June 18, 2023, 10:27:19 AM
#3
When using listen=1 you are likely exposing your IP to someone who wants to connect to your node and there is a potential risk on listen=1 without using TOR or hidden service malicious nodes/attackers can attempt to exploit something in your node.
Since it reveals your IP to someone you already compromise your privacy and it consumes much CPU and memory.

However, if you want to participate on the network you can leave it enabled but make sure to enable Tor service to avoid malicious attacks.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
June 18, 2023, 06:58:09 AM
#2
What exactly are the advantages and disadvantages of listen=0 and should I better leave it at =1 ?
It's more of a "help" to the network than self-advantage.
Since with listen=1, other nodes can initiate connection to your node which is usually those who need to download the blockchain.

The disadvantage is you'll likely use more internet bandwidth with it stayed enabled.
That's if your router is already setup accordingly; otherwise, your node still can not allow inbound connections even with listen=1.
member
Activity: 88
Merit: 32
June 18, 2023, 05:24:23 AM
#1
Good day friends,
i have a question about incoming connections.

With listen=0 I command my node not to accept incoming connections, and my node connects to a maximum of 8 other nodes with the command.

What exactly are the advantages and disadvantages of listen=0 and should I better leave it at =1 ?

 

Thanks very much
Jump to: