Monday, November 21, 2022
HomeBitcoinbitcoin core - I cannot join by way of RPC port bitcoind

bitcoin core – I cannot join by way of RPC port bitcoind


I’ve arrange bitcoind, and I’m able to run bitcoin-cli instructions, I’m additionally capable of make request by way of RPC.

curl –user username:password –data-binary ‘{“jsonrpc”: “1.0”, “id”:”curltest”, “technique”: “getblockchaininfo”, “params”: [] }’ -H ‘content-type: textual content/plain;’ http://127.0.0.1:18332

It additionally works. However connecting by way of the general public ip simply return Connection refused.

curl –user username:password –data-binary ‘{“jsonrpc”: “1.0”, “id”:”curltest”, “technique”: “getblockchaininfo”, “params”: [] }’ -H ‘content-type: textual content/plain;’ http://public-ip:18332

It returns

curl: (7) Failed to connect with external-ip port 18332: Connection refused

Config file as follows.

server=1

rpcport=9776

rpcallowip=0.0.0.0/0

rpcbind=0.0.0.0

txindex=1

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments