<p>I have 2 server v0.18 and 0.16. They're nearly same config but I can't connect to v0.16 server via RPC though using command on it is still well eg <code>bitcoin-cli -info</code>. <br>
I have searched few configs and none of them are useful for my case, please help me check this config, thanks so much.
v0.16 can not connect:</p>

<pre><code>datadir=/data/bitcoind
debuglogfile=/var/log/bitcoin_testnet.log
dbcache=1000
txindex=1
server=1
rpcuser=...
rpcpassword=...
rpcport=18888
port=18887
daemon=1
testnet=1
rpcallowip=0.0.0.0/0

[test]
rpcbind=0.0.0.0

walletnotify=/data/bitcoind/bitcoind_walletnotify.sh %s
blocknotify=/data/bitcoind/bitcoind_blocknotify.sh %s
</code></pre>

<p><br>
I have tried to drop <code>rpcbind=0.0.0.0</code> and <code>port</code> but it's not worked. Example on my other server v0.18 can connect via RPC well:</p>

<pre><code>server=1
testnet=1
txindex=1
dbcache=2048

rpcallowip=0.0.0.0/0    
rpcuser=...
rpcpassword=...

datadir=/data/blockchain/bitcoin/
debuglogfile=/var/log/bitcoin.log

# Limit 25 transactions
#limitdescendantcount=300
#limitancestorcount=300

[test]
rpcport=18332
rpcbind=0.0.0.0

#[regtest]
# Notify when receiving coins
walletnotify=/data/blockchain/bitcoin/bitcoin_walletnotify.sh %s
blocknotify=/data/blockchain/bitcoin/bitcoin_blocknotify.sh %s
</code></pre>

CC BY-SA 4.0
2019-08-16T09:15:42.113Z
If you run the version 0.16 with the default configuration work? I think could be the port of the node with the version 0.16 is locked
vincenzopalazzo
CC BY-SA 4.0
2019-08-16T09:32:45.757Z
I try to switch other port but on log is always failed: `2019-08-16 09:22:23 Binding RPC on address :: port 18991 failed.`, same to default `bitcoind - daemon`.
mmo2112
CC BY-SA 4.0
2019-08-16T09:37:42.807Z
try to run the bitcoind -rpcport=18888 -rpcuser=... -rpcpassword=.. if worked the problem is the link to bitcoin.cong
vincenzopalazzo
CC BY-SA 4.0
2019-08-16T09:49:14.250Z
`bitcoind -daemon -debug=rpc -debug=mempool -rpcuser=btcrpc -rpcpassword=... -rpcport=18991 -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 -testnet -server -debuglogfile=/var/log/bitcoin_testnet.log`, no `binding port failed` anymore but I still can not connect. :-(
mmo2112
CC BY-SA 4.0
2019-08-16T10:00:21.833Z
@vincenzopalazzo, detail there:
https://pastebin.com/smdNiq5K
mmo2112
CC BY-SA 4.0
2019-08-16T10:05:41.503Z
In your logs doesn't exist any error, right? the bitcoind running
vincenzopalazzo
CC BY-SA 4.0
2019-08-16T10:11:12.270Z
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/97482/discussion-between-mmo2112-and-vincenzopalazzo).
mmo2112
<bitcoind><json-rpc>
Can not connect to rpc server bitcoind 0.16
mmo2112
# Can not connect to rpc server bitcoind 0.16

(Asked by: username_0 on 2019-08-16)

I have 2 server v0.18 and 0.16. They're nearly same config but I can't connect to v0.16 server via RPC though using command on it is still well eg `bitcoin-cli -info`.   
I have searched few configs and none of them are useful for my case, please help me check this config, thanks so much.
v0.16 can not connect:

```
datadir=/data/bitcoind
debuglogfile=/var/log/bitcoin_testnet.log
dbcache=1000
txindex=1
server=1
rpcuser=...
rpcpassword=...
rpcport=18888
port=18887
daemon=1
testnet=1
rpcallowip=0.0.0.0/0

[test]
rpcbind=0.0.0.0

walletnotify=/data/bitcoind/bitcoind_walletnotify.sh %s
blocknotify=/data/bitcoind/bitcoind_blocknotify.sh %s

```

I have tried to drop `rpcbind=0.0.0.0` and `port` but it's not worked. Example on my other server v0.18 can connect via RPC well:

```
server=1
testnet=1
txindex=1
dbcache=2048

rpcallowip=0.0.0.0/0    
rpcuser=...
rpcpassword=...

datadir=/data/blockchain/bitcoin/
debuglogfile=/var/log/bitcoin.log

# Limit 25 transactions
#limitdescendantcount=300
#limitancestorcount=300

[test]
rpcport=18332
rpcbind=0.0.0.0

#[regtest]
# Notify when receiving coins
walletnotify=/data/blockchain/bitcoin/bitcoin_walletnotify.sh %s
blocknotify=/data/blockchain/bitcoin/bitcoin_blocknotify.sh %s

```

**Tags:** bitcoind, json-rpc

> **Comments:**
> **username_1**: If you run the version 0.16 with the default configuration work? I think could be the port of the node with the version 0.16 is locked  
> **username_0**: I try to switch other port but on log is always failed: `2019-08-16 09:22:23 Binding RPC on address :: port 18991 failed.`, same to default `bitcoind - daemon`.  
> **username_1**: try to run the bitcoind -rpcport=18888 -rpcuser=... -rpcpassword=.. if worked the problem is the link to bitcoin.cong  
> **username_0**: `bitcoind -daemon -debug=rpc -debug=mempool -rpcuser=btcrpc -rpcpassword=... -rpcport=18991 -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 -testnet -server -debuglogfile=/var/log/bitcoin_testnet.log`, no `binding port failed` anymore but I still can not connect. :-(  
> **username_0**: @username_1, detail there: https://pastebin.com/smdNiq5K  
> **username_1**: In your logs doesn't exist any error, right? the bitcoind running  
> **username_0**: Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/97482/discussion-between-username_0-and-username_1).  

---

## 0 answers

