I'm running bitcoind
on one machine and would like to control it from another (using python and the JSON RPC interface).
~/.bitcoin/bitcoin.config
on the bitcoind host (192.168.2.4):
rpcuser=xxx
rpcpassword=xxx
gen=1
rcpallowip=127.0.0.1
rcpallowip=192.168.2.6 # This is the other machine
paytxfee=0.01
Now, I start bitcoind -daemon
, but my python program fails with
IOError: [Errno socket error] [Errno 111] Connection refused
On the bitcoind host, ps -nlp shows bitcoind listening on 127.0.0.1:8332, and not 0.0.0.0:8332 (which is what I would have expected). Wireshark shows a response of RST,ACK to the TCP connection attempt, which appears to be logical.
What am I missing?
Try rpcallowip, instead of rcpallowip :)
Are you certain bitcoind
is not listening on 0.0.0.0 as well? On a fresh install here it's listening on 0.0.0.0:8333
$ sudo netstat --ip -lpa|grep bitcoin
tcp 0 0 localhost:8332 *:* LISTEN 2909/bitcoind
tcp 0 0 *:8333 *:* LISTEN 2909/bitcoind
Also, what does nmap
from 192.168.2.6 say?
Just had same problem.
Solved by setting
rpcallowip=*
in bitcoin.conf
have a look at https://en.bitcoin.it/wiki/Enabling_SSL_on_original_client_daemon
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With