Bitcoin Forum
May 10, 2024, 11:05:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RPCAllowIP problems  (Read 909 times)
BTCPlay.me (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile WWW
March 06, 2016, 04:34:40 AM
 #1

When I run the server on localhost and connect to it from localhost it works. However when I add in the proper ip and run it from an external server it gives a connection refused.
Bitcoin.conf contents:
server=1
rpcuser=root
rpcpassword=examplepassword
rpcconnect=123.123.123.123
rpcport=8332
rpcalowip=123.123.123.123 (the ip of the external server).
So what am I doing wrong?
1715339112
Hero Member
*
Offline Offline

Posts: 1715339112

View Profile Personal Message (Offline)

Ignore
1715339112
Reply with quote  #2

1715339112
Report to moderator
1715339112
Hero Member
*
Offline Offline

Posts: 1715339112

View Profile Personal Message (Offline)

Ignore
1715339112
Reply with quote  #2

1715339112
Report to moderator
1715339112
Hero Member
*
Offline Offline

Posts: 1715339112

View Profile Personal Message (Offline)

Ignore
1715339112
Reply with quote  #2

1715339112
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cr1776
Legendary
*
Offline Offline

Activity: 4032
Merit: 1301


View Profile
March 06, 2016, 11:19:21 AM
 #2

Can you connect to the rpcport remotely at all? Eg with telnet or a port scanner?  This is to eliminate a firewall issue.
tonytumble
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
March 06, 2016, 01:03:44 PM
 #3

When I run the server on localhost and connect to it from localhost it works. However when I add in the proper ip and run it from an external server it gives a connection refused.
Bitcoin.conf contents:
server=1
rpcuser=root
rpcpassword=examplepassword
rpcconnect=123.123.123.123
rpcport=8332
rpcalowip=123.123.123.123 (the ip of the external server).
So what am I doing wrong?

seems you are using bitcoind to connect to 123.123.123.123 and send the commands there.
remove rpcconnect=123.123.123.123. only the rpcallowip tells the bitcoind that the host with this ip
is allowed to connect to your bitcoind. the rpcconnect tells bitcoind to connect to that server and send the commands
there...
Randian Hero
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250



View Profile
March 07, 2016, 02:20:53 AM
 #4

You may also need to configure your router to forward the port to your computer. The easiest way to do this is usually to look for something about DMZ in your router admin page and enter your computer's local IP... usually it's 192.168.x.x and you can find out buy running ipconfig /all in the command prompt if you're running Windows.
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
March 07, 2016, 02:12:26 PM
 #5

You may also need to configure your router to forward the port to your computer. The easiest way to do this is usually to look for something about DMZ in your router admin page and enter your computer's local IP... usually it's 192.168.x.x and you can find out buy running ipconfig /all in the command prompt if you're running Windows.

WTF? Dont DMZ your entire traffic to a single machine that is not a router/dedicated firewall.

btw tonytumble already solved the issue AFAICT. OP was relaying the RPC requests back to the machine that is sending.

Im not really here, its just your imagination.
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!