I'm trying to make to nodes on the same computer communicate. I set up two bitcoin folder with two bitcoin.conf files. bitcoin.conf in the second node is the following:

rpcuser=bitcoinrpc rpcpassword=roiroiroiroiroi addnode=

while in the first node is just I've just set the rpcuser and rpcpasswords

Now I start the nodes with the following command

First node ./bitcoin/src/bitcoind -regtest

Second node ./bitcoin/src/bitcoind -regtest -rpcport=5444 -port=18888 -datadir=/Users/tommaso/.bitcoin/

But they don't connect to each other.

Only if a run the command ./bitcoin/src/bitcoin-cli -regtest -rpcport=5444 -datadir=/Users/tommaso/.bitcoin/ addnode "" "onetry" they finally connect

Why does addnode= in bitcoin.conf doesn't work?

  • If you just have to make one connection, you might try using connect instead of addnode
    – JBaczuk
    Commented Oct 9, 2018 at 13:18
  • 1
    Anyway addnode should work but just to be safe I have tried as well connect but it doesn't work neither. Commented Oct 9, 2018 at 13:59
  • I have a Mac btw, this might help Commented Oct 10, 2018 at 7:12
  • 2
    Try running bitcoind with -debug and -printtoconsole flags (and not -daemon) to see if you notice anything during startup
    – JBaczuk
    Commented Oct 10, 2018 at 12:01
  • What is the resolution to this question?
    – JDOaktown
    Commented Mar 18, 2022 at 19:42

1 Answer 1


well im late but i can tell.

it works, use following string

addnode IP:8333 add but the Port you dont need to show, because everyone uses the same port, because thats the one he set as open on his router. the rpc port must only defined once at startupt. in addnode dont use it, because you could be bound on an IP too via the bind= command, then the server dont know what to do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.