Author

Topic: Having trouble communicating two seperate servers (Read 513 times)

newbie
Activity: 12
Merit: 0
Try setting rpcallowip to the exact IP address of the machine that is sending the requests.

Are the requests timing out or giving an explicit error?

It still times out. This is what my bitcoin.conf looks like.

I also tried to telnet *ipaddressofbitcoinserver* and it times out too.


Any other ideas? I'd love to get this done! Can I pay anyone some money to figure it out? http://i64.tinypic.com/r8i8nl.png

although pinging the server works

this is what my netstat looks like

http://i64.tinypic.com/2q09g5s.png
staff
Activity: 3458
Merit: 6793
Just writing some code
Try setting rpcallowip to the exact IP address of the machine that is sending the requests.

Are the requests timing out or giving an explicit error?
newbie
Activity: 12
Merit: 0
You should use 8332 as the rpcport, not 8333. 8333 is bitcoind's p2p connection port and setting that to be the rpcport may cause something to break.

done...still not working. thank you though
staff
Activity: 3458
Merit: 6793
Just writing some code
You should use 8332 as the rpcport, not 8333. 8333 is bitcoind's p2p connection port and setting that to be the rpcport may cause something to break.
newbie
Activity: 12
Merit: 0
Is $bitcoin->error returning anything?
$bitcoin->status?
$bitcoin->response?
$bitcoin->raw_response?



nothing, just times out
legendary
Activity: 4130
Merit: 1307
Is $bitcoin->error returning anything?
$bitcoin->status?
$bitcoin->response?
$bitcoin->raw_response?

newbie
Activity: 12
Merit: 0
I have two servers
#1 - apache/
#2 - bitcoind

I want to use the apache server to send commands to the bitcoind server

this is my bitcoin.conf of the bitcoind server

listen=1
server=1
daemon=1
rpcuser=24234asdasd
rpcpassword=23asdasd
rpcport=8333
rpcconnect=IP.OF.apache.server
rpcallowip=*


When I try to curl, I get emply reply from server and when I try to use easybitcoin.php in the apache server,

    require("easybitcoin.php");
$bitcoin = new Bitcoin('24234asdasd','23asdasd','bitcoindf.server.ip.a.','8333');
    
    $info = $bitcoin->getinfo();
    print_r($info);

I also get a blank page. Any idea whats going on?

Do I need to install bitcoin-qt or some other instance of bitcoin on the apache server?
Jump to: