Bitcoin Forum
May 06, 2024, 07:07:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't RPC Connect to external server with bitcoind  (Read 544 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?
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715022456
Hero Member
*
Offline Offline

Posts: 1715022456

View Profile Personal Message (Offline)

Ignore
1715022456
Reply with quote  #2

1715022456
Report to moderator
1715022456
Hero Member
*
Offline Offline

Posts: 1715022456

View Profile Personal Message (Offline)

Ignore
1715022456
Reply with quote  #2

1715022456
Report to moderator
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: 3388
Merit: 6581


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!