Author

Topic: Problem connecting to bitcoind RPC from another server (Read 636 times)

sr. member
Activity: 362
Merit: 262
From here: https://en.bitcoin.it/wiki/Running_Bitcoin (from the bitcoin.conf file)
Code:
# By default, only RPC connections from localhost are allowed.  Specify
 # as many rpcallowip= settings as you like to allow connections from
 # other hosts (and you may use * as a wildcard character).
 # NOTE: opening up the RPC port to hosts outside your local
 # trusted network is NOT RECOMMENDED, because the rpcpassword
 # is transmitted over the network unencrypted.
 #rpcallowip=10.1.1.34
 #rpcallowip=192.168.1.*

You have to enable SSL given the comment that "rpcpassword is transmitted over the network unencrypted.":
https://en.bitcoin.it/wiki/Enabling_SSL_on_original_client_daemon

I haven't done it but it make sense your RPC is going to be exposed to the internet at large.


m3
sr. member
Activity: 460
Merit: 250
nobody can shed any light on this?
m3
sr. member
Activity: 460
Merit: 250
Hey there I am having trouble connecting to bitcoind running on my vps. I am able to connect through the vps:

curl http://user:pass:localhost:8332/

and

curl http://user:pass:192.23.2.22:8332/

both work. If I telnet to the server from another computer on port 8332 it give me a blank screen and also works.

So I am narrowing it does to my client which is on another ip.

I am using easybitcoin.php and creating the bitcoin object in php everything seems to go well but i keep getting an error that it will not connect. Please do not start blaming my firewall or that the port is not open. The port is open and connects just fine. also rpcallowip is set to * and all that good stuff.

Ive been at it for a couple hours now and am really not sure what causes it do not connect.

The error I am getting is:

couldn't connect to host
Jump to: