Bitcoin testnet rpc is binding to localhost #16179

issue emonazad opened this issue on June 9, 2019
  1. emonazad commented at 11:22 PM on June 9, 2019: none

    Hello , Thanks for the efforts here . currently, i have installed couple of time and at different server bitcoind and i have even pull up github at server and compiled it still bitcoind rpc is binding to localhost even after i have added rpcallowip=0.0.0.0/0

    i saw

    root@arraymachinetest-desktop:~/.bitcoin# sudo netstat --ip -lpa|grep bitcoin tcp 0 0 localhost:29000 0.0.0.0:* LISTEN 20921/bitcoind
    tcp 0 0 localhost:18332 0.0.0.0:* LISTEN 20921/bitcoind
    tcp 0 0 0.0.0.0:18333 0.0.0.0:* LISTEN 20921/bitcoind

    i used this config file :

    server=1 testnet=1 rpcallowip=0.0.0.0/0 port=18332 rpcport=18333 rpcuser=foo rpcpassword=bar

    it was working for me before . any solution for this ?

  2. emilengler commented at 2:01 PM on June 11, 2019: contributor

    Try rpcbind=YOURIP:YOURPORT

  3. fanquake added the label Questions and Help on Jun 14, 2019
  4. fanquake commented at 6:08 AM on June 14, 2019: member

    @emonazad has your issue been solved? Please close this if so.

    You might also want to read the section on configuration option changes in the release notes for v0.18.0, assuming that is the version you are running: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.18.0.md#configuration-option-changes

  5. MarcoFalke closed this on Jun 14, 2019

  6. chanhosuh commented at 7:23 PM on June 15, 2019: none

    To be honest, the release notes were a bit confusing. How I would put it is this, before if you put rpcallowip=0.0.0.0/0, the value of rpcbind didn't need to be set as it defaulted to all interfaces.

    Now that is no longer the case. So you need to do:

    rpcallowip=0.0.0.0/0
    rpcbind=127.0.0.1
    rpcbind=<the IP you are trying to reach with RPC call>
    rpcbind=<another such IP or local DNS name>
    

    Hope this helps somebody...

  7. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me