I am attempting to run bitcoind on a computer in my local area network (LAN) and then have bitcoin-cli access/communicate with that computer in lieu of running Bitcoin-QT on the same machine alongside bitcoind.

Is that possible?

Thus far I've tried to modify the bitcoin.conf but without success.

1 Answer 1


You can run bitcoind on one machine, and communicate with another over your LAN using bitcoind's JSON-RPC API.

Once bitcoind is running just hit your host machine's local network IP on port 8332 with your API calls. You can find out your local network IP of your host machine by typing ipconfig in your command prompt.

You didn't mention how you were trying to communicate so let's say for example if you're using Python-BitcoinRPC

from bitcoinrpc.authproxy import AuthServiceProxy

access = ServiceProxy("http://USERNAME:[email protected]:8332")

Make sure you update the ServicProxy() function with the host's local IP, and your username and password from your bitcoin.conf.

  • I want just to excute bitcoin-cli commands from a bitcoin client E.g bitcoin-cli -regtest getbalance. I am not writing a program.
    – katapulte
    Oct 20, 2016 at 12:02
  • Ok I might have misunderstood your question. You want one machine on your LAN to hold the blockchain, and another machine to run the bitcoin client but NOT store the blockchain, but still be able to execute commands. Perhaps this will help bitcoin.stackexchange.com/questions/7455/…
    – m1xolyd1an
    Oct 20, 2016 at 12:24
  • i want to setup a local private chain so i thought about using a node as a server and the other as a client
    – katapulte
    Oct 20, 2016 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.