<p>The fix was:</p>

<pre><code>setsebool -P httpd_can_network_connect 1
</code></pre>

<p>Amazon AWS apparently limits httpd network connections initially.</p>

CC BY-SA 3.0
2017-06-15T18:30:43.140Z
2017-06-15T18:30:43.140Z
Marc Alexander
<p>I have a server at DigitalOcean with Ubuntu installed and bitcoind with rpc which IS working.</p>

<p>With my Amazon AWS CentOs server bitcoin-cli is working but not EasyBitcoin-PHP, it's returning 0:</p>

<pre><code>$bitcoin = new Bitcoin('username','password','myipaddress','8332');

echo "Status: ".$bitcoin-&gt;status;
</code></pre>

<p>Bitcoin.conf</p>

<pre><code>server=1
daemon=1
rpcuser=username
rpcpassword=password
rpcport=8332
rpcallowip=myipaddress
</code></pre>

<p>Checkout this image. On the working DigitalOcean Ubuntu server it includes <code>AddLocal(192.81.219.224:18333,1)</code> AND <code>Discover: IPv4 eth0: 192.81.219.224</code><a href="https://i.sstatic.net/nPvh2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/nPvh2.png" alt="enter image description here"></a></p>

<p>I also tried to add <code>-discover=1</code> to the AWS CentOS but it didn't do anything new and still isn't working.</p>

<p>I'm guessing it may have to do with Amazon's Elastic IP's or something?</p>

<bitcoind><json-rpc><php><amazon-web-services><centos>
Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS
Marc Alexander
# Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS

(Asked by: username_0 on 2017-06-15)

I have a server at DigitalOcean with Ubuntu installed and bitcoind with rpc which IS working.
With my Amazon AWS CentOs server bitcoin-cli is working but not EasyBitcoin-PHP, it's returning 0:
$bitcoin = new Bitcoin('username','password','myipaddress','8332');

echo "Status: ".$bitcoin->status;

Bitcoin.conf
server=1
daemon=1
rpcuser=username
rpcpassword=password
rpcport=8332
rpcallowip=myipaddress

Checkout this image. On the working DigitalOcean Ubuntu server it includes AddLocal(192.81.219.224:18333,1) AND Discover: IPv4 eth0: 192.81.219.224
I also tried to add -discover=1 to the AWS CentOS but it didn't do anything new and still isn't working.
I'm guessing it may have to do with Amazon's Elastic IP's or something?

**Tags:** bitcoind, json-rpc, php, amazon-web-services, centos


---

## 1 answers

### Answer by username_0 on 2017-06-15. Score: 0 | Accepted answer

The fix was:
setsebool -P httpd_can_network_connect 1

Amazon AWS apparently limits httpd network connections initially.


---

