Bitcoin Forum
May 02, 2024, 05:13:59 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core RPC remote not Working  (Read 75 times)
simpleSliv3r (OP)
Jr. Member
*
Offline Offline

Activity: 46
Merit: 28


View Profile
June 18, 2023, 10:09:03 AM
Merited by ABCbits (1), RickDeckard (1)
 #1

Hi,

I've been trying to configure my bitcoin core node to be able to use rpc commands from another laptop in the same network, but I'm unable to do it. Idk if I am leaving out any necessary settings.
Please, see bellow the bitcoin.conf file

Code:
pi@raspberrypi:/mnt/btc_blockchian-externalDisk/bitcoin/data $ cat bitcoin.conf
proxy=127.0.0.1:9050
listen=1
bind=127.0.0.1
prune=100000

server=1

rpcuser=****
rpcpassword=****

[main]
rpcbind=127.0.0.1
rpcbind=192.168.1.2
rpcallowip=192.168.1.0/24
rpcallowip=127.0.0.1

Proxy settings on the top are for Tor connection, just ignore it.

I think the problem is that port 8332 is only open for loopback and not for the entire net.
Code:
pi@raspberrypi:~ $ sudo netstat -tulpn | grep LISTEN
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      545/tor
tcp        0      0 127.0.0.1:9051          0.0.0.0:*               LISTEN      545/tor
tcp        0      0 127.0.0.1:8334          0.0.0.0:*               LISTEN      556/bitcoind
tcp        0      0 127.0.0.1:8332          0.0.0.0:*               LISTEN      556/bitcoind
tcp        0      0 127.0.0.1:8333          0.0.0.0:*               LISTEN      556/bitcoind
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      540/sshd: /usr/sbin
tcp6       0      0 :::22                   :::*                    LISTEN      540/sshd: /usr/sbin

Also, nmap from the other laptop shows port 8332, 8333 and 8334 closed.
Code:
PORT     STATE  SERVICE VERSION
8332/tcp closed unknown
8333/tcp closed bitcoin
8334/tcp closed unknown

Note: there are no iptables or something like that closing those ports. (at least that I know)


Thanks for your time!

SS
1714626839
Hero Member
*
Offline Offline

Posts: 1714626839

View Profile Personal Message (Offline)

Ignore
1714626839
Reply with quote  #2

1714626839
Report to moderator
1714626839
Hero Member
*
Offline Offline

Posts: 1714626839

View Profile Personal Message (Offline)

Ignore
1714626839
Reply with quote  #2

1714626839
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714626839
Hero Member
*
Offline Offline

Posts: 1714626839

View Profile Personal Message (Offline)

Ignore
1714626839
Reply with quote  #2

1714626839
Report to moderator
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7436


Crypto Swap Exchange


View Profile
June 18, 2023, 11:34:07 AM
Merited by LoyceV (4), RickDeckard (1)
 #2

Replace value of your rpcbind to 0.0.0.0 which makes RPC accessible from other device. And IIRC value of bind should be changed as well.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
simpleSliv3r (OP)
Jr. Member
*
Offline Offline

Activity: 46
Merit: 28


View Profile
June 18, 2023, 12:22:36 PM
 #3

Replace value of your rpcbind to 0.0.0.0 which makes RPC accessible from other device. And IIRC value of bind should be changed as well.

Changing rpcbind to 0.0.0.0 worked. Thanks!
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!