Author

Topic: bind= option in bitcoin.conf (Read 129 times)

legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
July 03, 2021, 04:20:28 AM
#7
But isn't this is only relevant if you accept incoming connections? If I'm not mistaken, Bitcoin will not accept connections when running behind a proxy, except if you define listen=1.
Yes, that is correct.

Binding that address will make your Core instance to only listen on that address so that connections from others to your node can only be done through the address that you've specified but connections to other nodes are already routed through the proxy.
jr. member
Activity: 55
Merit: 67
July 03, 2021, 03:58:52 AM
#6
But isn't this is only relevant if you accept incoming connections? If I'm not mistaken, Bitcoin will not accept connections when running behind a proxy, except if you define listen=1.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
July 02, 2021, 10:34:06 PM
#5
So adding bind=127.0.0.1 does nothing? What's the point of this setting then?
It does. If you're using any proxy, Tor for example, peers can still connect to you via your clearnet address. This can happen even if you specify oniononly, which only ensures outgoing connections to onion address but doesn't restrict your incoming connections.

If your IP has previously been used with a clearnet address and you didn't bind your Core to your proxy, then incoming peers can still establish a connection without going through your proxy or Tor instance.

Adding bind=127.0.0.1 combined with proxy=127.0.0.1:9050 would make your Bitcoin core would only connect over Tor.
Using the proxy already routes the connections to the peers over the proxy that is specified.
legendary
Activity: 1932
Merit: 1273
July 02, 2021, 08:06:25 PM
#4
So adding bind=127.0.0.1 does nothing? What's the point of this setting then?

Adding bind=127.0.0.1 combined with proxy=127.0.0.1:9050 would make your Bitcoin core would only connect over Tor.

That config is to bind any Bitcoin core connection to 127.0.0.1 which it will be passed to port 8334(default tor inbound connections) and then addressed to your default bitcoin core port (8333). So it would make any connection using Tor.

These references might help u understand further:
https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service
https://github.com/bitcoin/bitcoin/blob/master/doc/tor.md

Correct me if I'm wrong tho, I just barely learn about bitcoin technical things.

jr. member
Activity: 55
Merit: 67
July 02, 2021, 06:16:20 PM
#3
I have a node running with Tor running as a service and proxy=127.0.0.1:9050 in the bitcoin.conf file. Does it make any difference if I add bind=127.0.0.1 and/or bind=127.0.0.1:9050 to the file?

The -bind option listens for Tor connections on the address you give it, on port 8334 if you don't pass a port like your first bind syntax, so no, since the address is already connected as a SOCKS proxy.

So adding bind=127.0.0.1 does nothing? What's the point of this setting then?
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
July 02, 2021, 01:11:53 PM
#2
I have a node running with Tor running as a service and proxy=127.0.0.1:9050 in the bitcoin.conf file. Does it make any difference if I add bind=127.0.0.1 and/or bind=127.0.0.1:9050 to the file?

The -bind option listens for Tor connections on the address you give it, on port 8334 if you don't pass a port like your first bind syntax, so no, since the address is already connected as a SOCKS proxy.
jr. member
Activity: 55
Merit: 67
July 02, 2021, 12:47:56 PM
#1
I have a node running with Tor running as a service and proxy=127.0.0.1:9050 in the bitcoin.conf file. Does it make any difference if I add bind=127.0.0.1 and/or bind=127.0.0.1:9050 to the file?
Jump to: