Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: blg42598 on June 28, 2017, 12:10:20 AM



Title: Can't RPC Connect to external server with bitcoind
Post by: blg42598 on June 28, 2017, 12:10:20 AM
The wallet is synced and up to date. I can't open connect to the rpcport. I'm on a ubuntu vps. I opened the udp/tcp ports. Is there something else I have to do?


Title: Re: Can't RPC Connect to external server with bitcoind
Post by: vh on June 28, 2017, 02:02:28 AM
Does your config file have the basic four lines to enable rpc?

server=1
rpcallowip=192.168.1.*
rpcuser=<username>
rpcpassword=<password>


Title: Re: Can't RPC Connect to external server with bitcoind
Post by: blg42598 on June 28, 2017, 02:22:01 AM
Does your config file have the basic four lines to enable rpc?

server=1
rpcallowip=192.168.1.*
rpcuser=<username>
rpcpassword=<password>


yes but what does the asterisk on the ip mean?


Title: Re: Can't RPC Connect to external server with bitcoind
Post by: achow101 on June 28, 2017, 02:22:45 AM
rpcuser=<username>
rpcpassword=<password>
Don't use rpcuser and rpcpassword, they are deprecated. Instead use rpcauth. A script for generating that is available here:
https://github.com/bitcoin/bitcoin/tree/master/share/rpcuser

yes but what does the asterisk on the ip mean?
It means allow any IP address on the range 192.168.1.0 to 192.168.1.255. Of course you should be using your actual IP address that will be making the connection, not your local IP address if you are not on the same local network.


Since you are using a VPS, double check that the VPS provider does not have a firewall blocking the ports that you want. Sometimes they will have an external firewall which you must configure from your account and not on the VPS itself.