I am running a Bitcoin Cash node on my server, and starting it like this:

start bitcoind.exe --server=1 --rpcuser=user --rpcpassword=password --rest=1 --rpcport=8332 --datadir=F:\Bitcoin --bind= --testnet=1 --rpcallowip=

The node runs, and I can connect to it locally.

However, I can't connect to it remotely, from my C# application, using the BitcoinLib library:

ICoinService coinService = new BitcoinService(ConfigurationManager.AppSettings["Bitcoin_DaemonUrl"], ConfigurationManager.AppSettings["Bitcoin_RpcUsername"],
ConfigurationManager.AppSettings["Bitcoin_RpcPassword"], ConfigurationManager.AppSettings["WalletPassword"]);

I am getting this error:

BitcoinLib: There was a problem sending the request to the wallet. System: Unable to connect to the remote server.

I have created inbound/outbound rules in the server's firewall settings, allowing access to the 8332 port, and I think that --rpcallowip= should allow all IPs to connect to my node... So I really don't know what the problem is.

Edit: I can't access the node from https://bitnodes.earn.com/ either.

Update: the node has finished reindexing blocks, and I still can't connect to it remotely.

  • You're running in testnet mode (which Bitcoin Cash doesn't have), and trying to bind to the normal RPC port, and bitnodes don't support tesstnet.
    – Claris
    Nov 16, 2017 at 3:08
  • @eponymous I have started it in main net mode now, and bitnodes still says it's unreachable. It says in the logs that it's "reindexing blocks" - will my server be unreachable untill the reindexing is done?
    – Eutherpy
    Nov 16, 2017 at 11:15

1 Answer 1


It turns out that the solution didn't really have anything to do with bitcoind itself - I was running it on a virtual machine hosted on Azure, and I needed to create firewall rules for the port not only on the actual Windows machine, but also in the Azure portal!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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