Bitcoin Forum
November 20, 2025, 04:08:46 PM *
News: Pumpkin contest voting
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't RPC Connect to external server with bitcoind  (Read 547 times)
blg42598 (OP)
Hero Member
*****
Offline Offline

Activity: 867
Merit: 1000


View Profile
June 28, 2017, 12:10:20 AM
 #1

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?
vh
Hero Member
*****
Offline Offline

Activity: 699
Merit: 666


View Profile
June 28, 2017, 02:02:28 AM
 #2

Does your config file have the basic four lines to enable rpc?

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

blg42598 (OP)
Hero Member
*****
Offline Offline

Activity: 867
Merit: 1000


View Profile
June 28, 2017, 02:22:01 AM
 #3

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?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3822
Merit: 7517


Just writing some code


View Profile WWW
June 28, 2017, 02:22:45 AM
 #4

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!