Bitcoin Forum
May 07, 2024, 10:10:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem connecting to bitcoind RPC from another server  (Read 616 times)
m3 (OP)
Sr. Member
****
Offline Offline

Activity: 460
Merit: 250


View Profile WWW
May 12, 2014, 09:51:56 PM
 #1

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

1715076643
Hero Member
*
Offline Offline

Posts: 1715076643

View Profile Personal Message (Offline)

Ignore
1715076643
Reply with quote  #2

1715076643
Report to moderator
1715076643
Hero Member
*
Offline Offline

Posts: 1715076643

View Profile Personal Message (Offline)

Ignore
1715076643
Reply with quote  #2

1715076643
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
m3 (OP)
Sr. Member
****
Offline Offline

Activity: 460
Merit: 250


View Profile WWW
May 13, 2014, 07:16:39 PM
 #2

nobody can shed any light on this?

spin
Sr. Member
****
Offline Offline

Activity: 362
Merit: 261


View Profile
May 15, 2014, 10:17:10 AM
 #3

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.



If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!