I've lunched a Bitcoin Core server, and trying to connect to it via JSON-RPC. This is my configuration settings:
server=1 rpcuser=admin rpcpassword=password rpcport=1234 rpcallowip=22.214.171.124
But all cURL connections to this server via the IP 126.96.36.199 has the same error result as:
cURL error 7: Failed to connect to 188.8.131.52 port 1234: Connection refused
I tried adding this option too, but it did not solve the problem:
Only when I put
0.0.0.0 as a bined RPC IP, Bitcoin core returns true response. I've checked many pages but did not find any other appropriate way to allow some certain IPs to Bitcoind. May you help me please?
Note: IP, Port number, username and password are changed from real values.