Tuesday, April 16, 2024
HomeBitcoinFixing 'Connection Reset by Peer' Error When Calling bitcoind REST API in...

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


Downside: 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 inside the container. Nonetheless, when making an attempt 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 can be drastically appreciated.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments