Hullo!
I've had some problems getting a PHP script using jsonRPCClient to connect to a running bitcoind daemon on another, external server. My bitcoin.conf currently looks like this:
server=1
daemon=1
listen=1
rpcuser=username
rpcpassword=password
rpcallowip=IP.OF.WEB.SERVER
rpcport=8332
The PHP script is something like this:
<?php
require 'jsonRPCClient.php';
$btc = new jsonRPCClient("http://username:password@host:8332/");
print_r($btc->getinfo());
?>
Debug shows error occurs when jsonRPCClient tries to connect to the server. Either a "Connection timed out." or "Connection refused." error.
Bounty goes to the first person to give me a working solution to this problem.
Solutions I've TriedOpen all ports on netstat.
Nope. All open. VPS hoster is not blocking any ports their side.Is it listening?
Yup, it is, so this shouldn't be a problem.netstat -nlp | grep 8332
tcp6 0 0 :::8332 :::* LISTEN 19482/bitcoind