user91443: cannot call rpc api from other machine in same local network
There is a regtest node in my local network , I can call rpc api only from the node's machine,not my local machine.
I know rpcallowip is changed in recent release https://bitcoin.org/en/release/v0.18.0#configuration-option-changes
http clinet httpie
my local machine's ip: 192.168.1.155
btc node's ip: 192.168.1.132
the port 8332 is opened sudo ufw allow 8332. 
bitcoind version
$ bitcoind -version                 
# Bitcoin Core Daemon version v0.18.0.0-g2472733a24a9364e4c6233ccd04166a26a68cc65

command start bitcoind
I start regtest , and my ip is 192.168.1.155
bitcoind -regtest -deprecatedrpc=generate -printtoconsole -rpcuser=user -rpcpassword=password -rpcallowip=0.0.0.0/24 -rpcbind=127.0.0.1  -server -rpcport=8332

client request
# request from btc node's machine
http POST http://user:password@127.0.0.1:8332 jsonrpc="2.0" method="getblockchaininfo" id=1
# successed

# request from my local machine 192.168.1.155
http POST http://user:password@192.168.1.132:8332 jsonrpc="2.0" method="getblockchaininfo" id=1
# http: error: ConnectionError: HTTPConnectionPool(host='192.168.1.132', port=8332): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd6e288f438>: Failed to establish a new connection: [Errno 111] Connection refused',)) while doing POST request to URL: http://user:password@192.168.1.132:8332/


user72230: The problem is that you apply wrong options values for -rpcallowip and -rpcbind.
-rpcbind=127.0.0.1

This one tells bitcoind to bind RCP server to 127.0.0.1(localhost). That means it will be available from the same host only.
-rpcallowip=0.0.0.0/24

0.0.0.0/24 means Class C network with IP address range 0.0.0.1 - 0.0.0.254
The correct options in your case are:
-rpcallowip=192.168.1.0/24 -rpcbind=0.0.0.0

or even more secure:
-rpcallowip=192.168.1.155 -rpcbind=192.168.1.132


91443: <h2>cannot call rpc api from other machine in same local network</h2>

<p>There is a regtest node in my local network , I can call <strong>rpc api</strong> only from the node's machine,not my local machine.</p>

<p>I know <code>rpcallowip</code> is changed in recent release <a href="https://bitcoin.org/en/release/v0.18.0#configuration-option-changes" rel="nofollow noreferrer">https://bitcoin.org/en/release/v0.18.0#configuration-option-changes</a></p>

<p>http clinet <code>httpie</code></p>

<p>my local machine's ip: <code>192.168.1.155</code></p>

<p>btc node's ip: <code>192.168.1.132</code></p>

<p>the port <code>8332</code> is opened <code>sudo ufw allow 8332</code>. </p>

<h1>bitcoind version</h1>



<pre><code>$ bitcoind -version                 
# Bitcoin Core Daemon version v0.18.0.0-g2472733a24a9364e4c6233ccd04166a26a68cc65
</code></pre>

<h1>command start bitcoind</h1>

<p>I start regtest , and my ip is 192.168.1.155</p>



<pre><code>bitcoind -regtest -deprecatedrpc=generate -printtoconsole -rpcuser=user -rpcpassword=password -rpcallowip=0.0.0.0/24 -rpcbind=127.0.0.1  -server -rpcport=8332
</code></pre>

<h2>client request</h2>



<pre><code># request from btc node's machine
http POST http://user:password@127.0.0.1:8332 jsonrpc="2.0" method="getblockchaininfo" id=1
# successed

# request from my local machine 192.168.1.155
http POST http://user:password@192.168.1.132:8332 jsonrpc="2.0" method="getblockchaininfo" id=1
# http: error: ConnectionError: HTTPConnectionPool(host='192.168.1.132', port=8332): Max retries exceeded with url: / (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x7fd6e288f438&gt;: Failed to establish a new connection: [Errno 111] Connection refused',)) while doing POST request to URL: http://user:password@192.168.1.132:8332/
</code></pre>
 72230: <p>The problem is that you apply wrong options values for <strong>-rpcallowip</strong> and <strong>-rpcbind</strong>.</p>

<pre><code>-rpcbind=127.0.0.1
</code></pre>

<p>This one tells bitcoind to bind RCP server to <em>127.0.0.1</em>(localhost). That means it will be available from the same host only.</p>

<pre><code>-rpcallowip=0.0.0.0/24
</code></pre>

<p>0.0.0.0/24 means <strong>Class C</strong> network with IP address range 0.0.0.1 - 0.0.0.254</p>

<p>The correct options in your case are:</p>

<pre><code>-rpcallowip=192.168.1.0/24 -rpcbind=0.0.0.0
</code></pre>

<p>or even more secure:</p>

<pre><code>-rpcallowip=192.168.1.155 -rpcbind=192.168.1.132
</code></pre>
