Home Bitcoin Fixing ‘Connection Reset by Peer’ Error When Calling bitcoind REST API in a Container

Fixing ‘Connection Reset by Peer’ Error When Calling bitcoind REST API in a Container

0
Fixing ‘Connection Reset by Peer’ Error When Calling bitcoind REST API in a Container

[ad_1]

Drawback: Unable to Entry bitcoind REST API from Host Machine

Description: I’ve bitcoind put in in a container, and I can efficiently make REST API calls from throughout the container. Nonetheless, when trying to make the identical calls from my host machine, I encounter the next error:

isudoajl@f38-server:$curl localhost:8333/relaxation/chaininfo.json
curl: (56) Recv failure: Connection reset by peer

Configuration:

bitcoind configuration (bitcoin.conf):

server=1
rpcuser=xxxx
rpcpassword=xxxx
rpcallowip=192.168.1.0/24
rpcport=8332
relaxation=1
txindex=1

Container is listening on port 8333

Troubleshooting Steps Taken:

Verified bitcoind configuration settings.
Checked container’s listening ports.
Tried numerous curl instructions from host machine.

Query: Is there an answer to this downside? I have been troubleshooting for days with out success. Any assist could be drastically appreciated.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here