So, I am making an attempt to setup my node on a small pc I’ve mendacity round and, for sensible causes, I would like to have the ability to do RPC requests to it from computer systems inside my very own LAN. Particularly I am working 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 date
Working bitcoind with:
bitcoind -rpcbind=0.0.0.0 -rpcallowip=192.168.1.0/24
I get:
EDIT: I later discovered that, in home windows, I ought to use curl.exe to make use of the identical curl as in linux. I nonetheless get the identical outcomes
PS C:UsersMateus> curl.exe --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 pc ip tackle), 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 option 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 conditions for the machines like firewalls, static ips or no matter, pointing me to a useful resource can be fairly useful too…