code:
from bitcoinrpc.authproxy import AuthServiceProxy
class ProxyService:
def getProxy(self) -> AuthServiceProxy:
return AuthServiceProxy("http://%s:%[email protected]:8332" % ("xx", "xxx")) # this only works locally as 127.0.0.1
bitcon.config
datadir=/xxxx/Bitcoin
dbcache=2000
txindex=1
server=1
rpcuser=xx
rpcpassword=xx
rpcport=8332
disablewallet=1
I am running this on Ubuntu droplet. connection works when i connect locally as 127.0.0.1:8332
but when i try connection to the ip of my node (locally or remotely) I get "connection refused"
also i can confirm my node is up