<p><br>
The PORT (to receive data) for both of them is <b>8332</b> by default. So you must determine the PORT in the config file for one or both of them like this:</p>

<p>For BitcoinCash:</p>

<pre><code>server=1
daemon=1
rpcuser=xxx
rpcpassword=zzz
rpcport=8355
port=6950
</code></pre>

<p>For Bitcoin:</p>

<pre><code>server=1
daemon=1
rpcuser=aaaaaa
rpcpassword=bbbb
rpcport=8320
port=5380
</code></pre>

<p>Don't forget to allow the ports by firewall and specify different data directories for them.</p>

CC BY-SA 4.0
2018-10-05T07:06:48.417Z
2019-01-20T15:09:42.843Z
2019-01-20T15:09:42.843Z
Shahbaz
<p>The two implementations are still kind of competing for the name bitcoin, hence they could use the same daemon name and same folders.</p>
<p>Remember this during installation as well and make sure you are creating executables with different names.</p>
<p>When you launch any of the two daemons, by default, it will try to load the configuration from <code>~/.bitcoin/bitcoin.conf</code>, which means that for one daemon you will have to create a specific directory with a dedicated config file.</p>
<pre><code>bitcoind --config ~/.bitcoin/bitcoin.conf
bchd --config ~/.bch/bch.conf
</code></pre>
<p><em><strong>bitcoin.conf</strong></em></p>
<pre><code>daemon=1 
server=1
port=8332
rpcport=5555
datadir=~/.bitcoin/
</code></pre>
<p><em><strong>bch.conf</strong></em></p>
<pre><code>daemon=1
server=1
port=8333
rpcport=6666
datadir=~/.bch/

</code></pre>
<p>The ports and the directory are just for explanatory purposes, the only important thing is that they have to differ between the two configuration files</p>

CC BY-SA 4.0
2020-12-29T15:01:31.800Z
2020-12-29T15:01:31.800Z
Luca Ambrosini
<p>I use debian 9
I have compile 2 files:</p>

<p>bitcoinCashd -version
Bitcoin ABC Daemon version v0.16.2.0-6af5e93</p>

<p>bitcoind -version
Bitcoin Core Daemon version v0.15.1</p>

<p>So i need run in same server. Can some one help? </p>

<p>maybe need rename some executable files and connected both wallets on different ports?</p>

<p>Maybe good step by step manual</p>

<bitcoind><bitcoin-cash><bitcoin-cli>
Run Bitcoin and BitcoinCash in same server
OVelihin
# Run Bitcoin and BitcoinCash in same server

(Asked by: username_0 on 2018-03-04)

I use debian 9
I have compile 2 files:

bitcoinCashd -version
Bitcoin ABC Daemon version v0.16.2.0-6af5e93

bitcoind -version
Bitcoin Core Daemon version v0.15.1

So i need run in same server. Can some one help?

maybe need rename some executable files and connected both wallets on different ports?

Maybe good step by step manual

**Tags:** bitcoind, bitcoin-cash, bitcoin-cli


---

## 2 answers

### Answer by username_1 on 2018-10-05. Score: 2

The PORT (to receive data) for both of them is **8332** by default. So you must determine the PORT in the config file for one or both of them like this:

For BitcoinCash:

```
server=1
daemon=1
rpcuser=xxx
rpcpassword=zzz
rpcport=8355
port=6950

```

For Bitcoin:

```
server=1
daemon=1
rpcuser=aaaaaa
rpcpassword=bbbb
rpcport=8320
port=5380

```

Don't forget to allow the ports by firewall and specify different data directories for them.


---

### Answer by username_2 on 2020-12-29. Score: 0

The two implementations are still kind of competing for the name bitcoin, hence they could use the same daemon name and same folders.

Remember this during installation as well and make sure you are creating executables with different names.

When you launch any of the two daemons, by default, it will try to load the configuration from `~/.bitcoin/bitcoin.conf`, which means that for one daemon you will have to create a specific directory with a dedicated config file.

```
bitcoind --config ~/.bitcoin/bitcoin.conf
bchd --config ~/.bch/bch.conf

```

***bitcoin.conf***

```
daemon=1 
server=1
port=8332
rpcport=5555
datadir=~/.bitcoin/

```

***bch.conf***

```
daemon=1
server=1
port=8333
rpcport=6666
datadir=~/.bch/

```

The ports and the directory are just for explanatory purposes, the only important thing is that they have to differ between the two configuration files


---

