<p>The <code>listen</code> option is for the P2P network connection, not the RPC service.</p>

<hr>

<p>The option you want is <code>rpcallowip=&lt;ip&gt;</code>. To allow all IP addresses to connect to your node's RPC port, you can use <code>rpcallowip=0.0.0.0</code>. Note that doing so is not recommended as it is insecure.</p>

<hr>

<p>Don't set <code>rpcconnect</code> as that will make it impossible for <code>bitcoin-cli</code> to interact with Bitcoin Core.</p>

CC BY-SA 4.0
2023-03-21T02:57:16.627Z
`rpcallowip=0.0.0.0/0`
Meglio
CC BY-SA 3.0
2018-01-21T01:17:52.370Z
2018-01-21T01:17:52.370Z
Ava Chow
<p>I tried to to host bitcoin core json-rpc to listen other than localhost but it would not work even i set it to listen to ip 0.0.0.0</p>

<p>My config (for bitcoin.conf)</p>

<pre><code>testnet=1
server=1
daemon=1
listen=1
rpcuser=something
rpcpassword=secret
rpcport=8332
rpcconnect=0.0.0.0
</code></pre>

<p>So how do i make it so that it will listen to ip other than localhost or 127.0.0.1?</p>

<p>VPS informations:</p>

<p>Ubuntu 16.04</p>

<p>Latest Core (just installed it today)</p>

<p>client is remote</p>

CC BY-SA 3.0
2018-01-20T17:54:44.577Z
Some more details could help, such as operating system, where are you running the client, which version, etc.
Jimmy Johnson
CC BY-SA 3.0
2018-01-20T18:11:06.703Z
Alright:

Ubuntu 16.04

Latest Version (just installed it today)

Client is over internet
zhiyan114
<json-rpc><daemon>
rpc json outside localhost
zhiyan114
# rpc json outside localhost

(Asked by: username_0 on 2018-01-20)

I tried to to host bitcoin core json-rpc to listen other than localhost but it would not work even i set it to listen to ip 0.0.0.0

My config (for bitcoin.conf)

```
testnet=1
server=1
daemon=1
listen=1
rpcuser=something
rpcpassword=secret
rpcport=8332
rpcconnect=0.0.0.0

```

So how do i make it so that it will listen to ip other than localhost or 127.0.0.1?

VPS informations:

Ubuntu 16.04

Latest Core (just installed it today)

client is remote

**Tags:** json-rpc, daemon

> **Comments:**
> **username_1**: Some more details could help, such as operating system, where are you running the client, which version, etc.  
> **username_0**: Alright:  Ubuntu 16.04  Latest Version (just installed it today)  Client is over internet  

---

## 1 answers

### Answer by username_2 on 2018-01-21. Score: 5 | Accepted answer

The `listen` option is for the P2P network connection, not the RPC service.

---

The option you want is `rpcallowip=<ip>`. To allow all IP addresses to connect to your node's RPC port, you can use `rpcallowip=0.0.0.0`. Note that doing so is not recommended as it is insecure.

---

Don't set `rpcconnect` as that will make it impossible for `bitcoin-cli` to interact with Bitcoin Core.

> **Comments:**
> **username_3**: `rpcallowip=0.0.0.0/0`  

---

