bitcoin-cli can't connect to server

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?

Guy Dresher

Posted 2016-12-19T09:40:49.140

Reputation: 1

Did you try using the rpcuser and password params from the cliShabahat M. Ayubi 2016-12-19T09:56:39.560

yes, same error.Guy Dresher 2016-12-19T11:16:37.340

how do you run bitcoind? with regtest?Badr Bellaj 2016-12-19T14:08:01.690

no, just with it's conf file, no parameters. in crontab on boot.Guy Dresher 2016-12-19T17:24:49.797

Try issuing the command netstat -tulpn | grep bitcoin and report back what it returnsShabahat M. Ayubi 2016-12-20T22:23:35.737

tcp 0 0 0.0.0.0:8333 0.0.0.0: LISTEN 1233/bitcoind tcp6 0 0 ::1:8332 ::: LISTEN 1233/bitcoind tcp6 0 0 :::8333 :::* LISTEN 1233/bitcoindGuy Dresher 2016-12-22T16:23:19.773

Answers

-2

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

Carlos De la Garza

Posted 2016-12-19T09:40:49.140

Reputation: 37