0

I'm trying to put up a simple system for some penetration tests. I have an Ubuntu server 16.04.1 with apache2 and bitcoin. all running "Hiddn service" through tor (and bitcoind proxied 127.0.0.1:9050). Now, using easybitcoin.php , the apache shows getinfo, send receive, all good. but using bitcoin-cli nothing works! "couldn't connect to server"..

my bitcoin.conf is:
server=1
listen=1
proxy=127.0.0.1:9050
rpcuser=myuser
rpcpassword=mypassword

Any ideas why bitcoin-cli can't connect?

  • Did you try using the rpcuser and password params from the cli – Shabahat M. Ayubi Dec 19 '16 at 9:56
  • yes, same error. – Guy Dresher Dec 19 '16 at 11:16
  • how do you run bitcoind? with regtest? – Badr Bellaj Dec 19 '16 at 14:08
  • no, just with it's conf file, no parameters. in crontab on boot. – Guy Dresher Dec 19 '16 at 17:24
  • Try issuing the command netstat -tulpn | grep bitcoin and report back what it returns – Shabahat M. Ayubi Dec 20 '16 at 22:23
-2

You should try adding daemon=1 to your bitcoin.conf file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.