Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make bitcoind listen on 0.0.0.0:8332? [closed]

Tags:

bitcoin

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?

like image 346
Brent.Longborough Avatar asked May 16 '11 12:05

Brent.Longborough


3 Answers

Try rpcallowip, instead of rcpallowip :)

like image 137
djoot Avatar answered Nov 05 '22 07:11

djoot


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?

like image 29
Norky Avatar answered Nov 05 '22 07:11

Norky


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

like image 1
Michael Gisbers Avatar answered Nov 05 '22 05:11

Michael Gisbers