Open Dwyte opened 4 years ago
I have a similar issue, where I have gotten the nodejs container to connect, but still cannot do rpc calls with the explorer or bitcoin-cli now. BUT what helped was 1) don't use 127.0.0.1 for your local machines IP, but the IP address you find using the command "ip a" which would likely be something like 192.168.1.X 2) rpcallowip should be the IP address for the docker container which is something like 172.28.1.x
Okay finally got everything to connect to my node by using the following settings in the bitcoin.conf rpcallowip=172.28.1.0/255.255.255.0 rpcallowip=172.30.1.0/255.255.255.0 rpcallowip=192.168.1.0/255.255.255.0 rpcport=8332 rpcbind=192.168.1.x (check what your machine's local IP address via the command "ip a")
The subnets of 172.28.1.0 and 172.30.1.0 I got from looking into the docker-compose file for the dojo app and could see these were the internal IP nets that they were given.
If you are doing a bitcoin-cli command outside the app, remember to add the parameter -rpcconnect=192.168.1.x otherwise it will give you a connection error
Describe the issue ECONNREFUSED from external bitcoind. I've tried everything I could form the instructions, I never used docker before so I might be missing something...
Error log:
docker-bitcoind.conf
bitcoin.conf
Desktop (please complete the following information):
Additional context Add any other context about the problem here.