So, I’m trying to setup my node on a small computer I have lying around and, for practical reasons, I want to be able to do RPC requests to it from computers within my own LAN. Specifically I’m running it on an ubuntu machine and trying to send requests from a windows machine.
I’ve found 2 questions already here and here and I did attempt their answers, but they didn’t work.
As far as I can tell, curl is connecting successfully to the server. It prompts me for the RPC password, but then I get no response back.
What I’ve tried so far
Running bitcoind with:
bitcoind -rpcbind=0.0.0.0 -rpcallowip=192.168.1.0/24
I get:
PS C:\Users\Mateus> curl --user ceuta --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method":"getblockchaininfo", "params": []}' -H 'content-type: text/plain;' http://192.168.0.8:8332/
PS C:\Users\Mateus>
If I set these values in bitcoin.conf, I get the same results. If I do the curl command from a terminal session in the node machine, using the 127.0.0.1 ip, I get the response back.
Alternatively, if I specify rpcbind
to be 192.168.0.8 (my node’s computer ip address), I get the same behavior, except that in the node’s machine now I also don’t get the response.
I’m sorry if this might actually be more of a networking question, but I’m just wondering what is a standard way to configure one’s node to be able to do RPC requests from other machines on the same LAN and if there are any configuration prerequisites for the machines like firewalls, static ips or whatever, pointing me to a resource would be quite helpful too…