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 :)