Bitcoin Forum
May 13, 2024, 12:59:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unable to connect via CLI  (Read 854 times)
btc123 (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
May 26, 2012, 02:30:40 AM
Last edit: May 26, 2012, 03:01:46 AM by btc123
 #1

Can somebody please explain this to me like I'm 12?

I want to automate various online transactions but I always get:
$ ./bitcoind getbalance
error: couldn't connect to server

$ cat bitcoin.conf
rpcpassword=**********             # Is this my wallet password?
rpcallowip=192.168.1.2
rpcssl=1
rpcsslciphers=DEFAULT:@STRENGTH

1715605193
Hero Member
*
Offline Offline

Posts: 1715605193

View Profile Personal Message (Offline)

Ignore
1715605193
Reply with quote  #2

1715605193
Report to moderator
1715605193
Hero Member
*
Offline Offline

Posts: 1715605193

View Profile Personal Message (Offline)

Ignore
1715605193
Reply with quote  #2

1715605193
Report to moderator
1715605193
Hero Member
*
Offline Offline

Posts: 1715605193

View Profile Personal Message (Offline)

Ignore
1715605193
Reply with quote  #2

1715605193
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715605193
Hero Member
*
Offline Offline

Posts: 1715605193

View Profile Personal Message (Offline)

Ignore
1715605193
Reply with quote  #2

1715605193
Report to moderator
1715605193
Hero Member
*
Offline Offline

Posts: 1715605193

View Profile Personal Message (Offline)

Ignore
1715605193
Reply with quote  #2

1715605193
Report to moderator
a654bdff
Newbie
*
Offline Offline

Activity: 10
Merit: 0



View Profile
May 27, 2012, 01:33:55 AM
 #2

Can somebody please explain this to me like I'm 12?

I want to automate various online transactions but I always get:
$ ./bitcoind getbalance
error: couldn't connect to server

$ cat bitcoin.conf
rpcpassword=**********             # Is this my wallet password?
rpcallowip=192.168.1.2
rpcssl=1
rpcsslciphers=DEFAULT:@STRENGTH



No that's not your wallet password.  It's your password for the RPC service.

The RPC service is what's exposed via port 8332.  It's only responsive to requests from the same machine by default (127.0.0.1).  Adding the rpcallowip will 'allow' other IPs to *remotely* connect.

Also, you need to set rpcuser.  Any code you have to talk to this (perl, php, ruby, etc) will use rpcuser/rpcpassword to authenticate to the RPC service and 'do things'.

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!