I've looked for an exactly answer but I really couldn't find it. So can someone let me know the why of doing what I'm asking correctly?

4 Answers 4


if you don't have Bitcoin-core and bitcoin cash already installed alongside, follow my answer in here to install Bitcoin-cash alongside Bitcoin-core.

It's so important creating a different username than bitcoin username because bitcoin and bitcoin cash use the same directory.

Now login to Bitcoin username and edit this file ~/.bitcoin/bitcoin.conf

so it becomes like that:


in here we are using different RPC port to bitcoin core. to know more about bitcoin config see this website.

Now, do the same thing to Bitcoin-cash, and everything should work as it supposed to be.

if you have a firewall enabled, don't forget to allow chosen ports.

  • I use Mac OS can you show me an example for Mac OS as well?
    – 西田龍
    Apr 7, 2018 at 14:56
  • And I saw there's a suspicion that both clients will try to use the same port, was this problem solved?
    – 西田龍
    Apr 7, 2018 at 15:09
  • 1
    Yeah, we are using port 5345 for bitcoin-core and bitcoin cash will use port 8333 by default. it doesn't really matter what are you using, just edit the config as above, and they should work alongside each other with no conflict.
    – Tailer
    Apr 7, 2018 at 17:02

First you need to change their data directory. Run one of them, either BTC or BCH, with -datadir=C:/somewhere. Then create bitcoin.conf in that folder. It should look like:


Make sure to set rpcport to something other than 8332 or 8333. Also, add port=something to the bitcoin.conf of which node software that you like less.

  • Isn't there a doubt that both clients will try to use 8333 port and occur a problem?
    – 西田龍
    Apr 7, 2018 at 15:10
  • @西田龍 That's why you should also add port=BlahBlah to one of them.
    – MCCCS
    Apr 7, 2018 at 17:15
  • I've never seen the way of specifying port number on bitcoin.conf but it can be used normally, right?
    – 西田龍
    Apr 8, 2018 at 12:56

You can but u will need to run bitcoin and bitcoin cash server on a separate machine or same machine (if same machine, you will have to do little more config).


You can, just run it with different port and each rpc will connect on each wallet port, the port could be configured in .conf file or as arg when you run bitcoin.exe

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.