N
N
Nubbin2018-04-04 12:03:22
RPC
Nubbin, 2018-04-04 12:03:22

Connecting to Bitcoin RPC?

I have Bitcoin Core installed on Windows 10 and set the following parameters in config.

server=1
rpcuser=rpcuser
rpcpassword=rpcpassword
rpcallowip= ** IP сервера с которого будет установлена соединение
rpcport=8332
rpcconnect= ** IP адрес сервера Windows 10 ** 192.168.****

There is a php file on the server with the following configuration.
$bitcoind = new Client([
    'scheme' => 'http',              
    'host'   => ' ** IP адрес сервера Windows 10 ** 192.168.****',            // optional, default localhost
    'port'   => 8332,                   
    'user'   => 'rpcuser',          
    'pass'   => 'rpcpass'  
]);


$result = $bitcoind->getnewaddress();

echo '<pre>';
    print_r($result);
echo '</pre>';

Why am I getting the error:
cURL error 7: Failed to connect to 192.168.**** port 8332: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-04-04
@dimonchik2013

server on the same network as windows 10?
does the server have a card with the address 192.168.*.* ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question