bitcoin core – What’s the correct configuration and command to run bitcoincore and use RPC over LAN?

0
23


So, I am making an attempt to setup my node on a small laptop I’ve mendacity round and, for sensible causes, I need to have the ability to do RPC requests to it from computer systems inside my very own LAN. Particularly I am operating it on an ubuntu machine and making an attempt to ship requests from a home windows machine.

I’ve discovered 2 questions already right here and right here and I did try their solutions, however they did not work.

So far as I can inform, curl is connecting efficiently to the server. It prompts me for the RPC password, however then I get no response again.

What I’ve tried to this point

Operating bitcoind with:

bitcoind -rpcbind=0.0.0.0 -rpcallowip=192.168.1.0/24

I get:

PS C:UsersMateus> curl --user ceuta --data-binary '{"jsonrpc": "1.0", "id": "curltest", "technique":"getblockchaininfo", "params": []}' -H 'content-type: textual content/plain;' http://192.168.0.8:8332/

PS C:UsersMateus>

If I set these values in bitcoin.conf, I get the identical outcomes. If I do the curl command from a terminal session within the node machine, utilizing the 127.0.0.1 ip, I get the response again.

Alternatively, if I specify rpcbind to be 192.168.0.8 (my node’s laptop ip handle), I get the identical conduct, besides that within the node’s machine now I additionally do not get the response.

I am sorry if this may truly be extra of a networking query, however I am simply questioning what’s an ordinary approach to configure one’s node to have the ability to do RPC requests from different machines on the identical LAN and if there are any configuration stipulations for the machines like firewalls, static ips or no matter, pointing me to a useful resource could be fairly useful too…

LEAVE A REPLY

Please enter your comment!
Please enter your name here