I run node 1 using this command:
bitcoind -port=2222 -datadir=/home/prayank/node1 -conf=/home/prayank/node1/bitcoin.conf -regtest=1 -rpcport=18666 -rpcuser=rpcuser -rpcpassword=rpcpass -bind=127.0.0.1
and node 2 with:
bitcoind -port=3333 -datadir=/home/prayank/node2 -conf=/home/prayank/node2/bitcoin.conf -regtest=1 -rpcport=18777 -rpcuser=rpcuser -rpcpassword=rpcpass -connect=127.0.0.1:2222
- Why is 18445 port used to bind when 2222 was mentioned in
-bind
while running bitcoind (node 1)?
2022-01-21T14:31:51Z Bound to 127.0.0.1:2222
2022-01-21T14:31:51Z Bound to 127.0.0.1:18445
- Manual outbound connection was successful however I want to do this automatically. How can I run a node 3 which discovers one of these nodes and creates an outbound connection automatically (node 2)?
2022-01-21T14:34:06Z New outbound peer connected: version: 70016, blocks=110, peer=0 (manual)