Author

Topic: when trying to send http requests to bitcoin core I'm being actively refused (Read 97 times)

legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
i have re tried the .conf like you said and i still get the same error
Bitcoin Core has to be restarted in order for the new config to apply.

Also, are you using Bitcoind or Bitcoin-qt, have you set the data directory via the GUI?
Because depending on the setup, Bitcoin core may not be loading your bitcoin.conf file in the default data directory.
staff
Activity: 3458
Merit: 6793
Just writing some code
yes i have tried i entered my ip where my node is running under rpcallowip but it still refuses the requests. I am trying to set up so i can send http requests.
You need to set rpcbind as well. rpcbind=0.0.0.0 will expose the rpc server on all interfaces, you may want to restrict that to just the interfaces that your other machines can see.
newbie
Activity: 3
Merit: 0
What would the format be for: http://login:password@ip:port
Maybe i am going wrong there? i have http://user:pass@rpcallowip:8332

i have re tried the .conf like you said and i still get the same error
newbie
Activity: 3
Merit: 0
yes i have tried i entered my ip where my node is running under rpcallowip but it still refuses the requests. I am trying to set up so i can send http requests.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
What do you mean by multiple locations is it in the same network? Or you are using a different server(e.g. DigitalOcean)?

You might need to add to rpcbind= on Bitcoin.conf like this sample below


Code:
server=1
rpcbind=0.0.0.0
rpcuser=-----
rpcpassword=-----
rpcallowip=192.168.1.10
rpcport=8332

The rpcallowip should be the IP where you perform RPC commands and take note after changing the bitcoin.conf file make sure to restart the daemon to apply the changes.
newbie
Activity: 3
Merit: 0
Im trying to get my rpc working but when trying to send the requests im getting an error of "No connection could be made because the target machine actively refused it". I am wanting to be able to send requests from multiple locations so i read to use the allowip as 0.0.0.0
this is my .conf file:

server=1
rpcuser=-----
rpcpassword=-----
rpcallowip=0.0.0.0
rpcport=8332

Could somebody help me resolve this im new to running a node so some help would be great.
Jump to: