<p>RPC port is 8332 by default for mainnet, 8333 is the Bitcoin network protocol port.</p>

<p>Also, be sure to set the rpcallowip variable if you are connecting to the node from another host on the network (non-localhost connections are blocked by default).</p>

CC BY-SA 3.0
2015-07-21T13:24:59.950Z
Unfortunately that still does not resolve it. I am convinced this is a windows 7 problem and that if I run it on the server it will work. would be great if someone knows how windows is blocking this
Aussie in Perth
CC BY-SA 3.0
2015-07-21T11:35:47.420Z
2015-07-21T11:35:47.420Z
Nexus
<p>I got bitcoind working in the cmd prompt;
Then I closed it and opened bitcoin-qt and that is now running in server mode; (bitcoinf server=1)</p>

<p>Then I run some simple .php on my localhost (using xampp apache engine) and this line of code is not working : </p>

<blockquote>
  <p>$bitcoin = new
  jsonRPCClient('<a href="https://user:password@192.168.0.2:8333/" rel="nofollow noreferrer">https://user:password@192.168.0.2:8333/</a>');</p>
</blockquote>

<p>I get this error :</p>

<pre><code>&gt;  Notice:  fopen(): send of 24 bytes failed with errno=10053 An
&gt; established connection was aborted by the software in your host
&gt; machine.  in C:\xampp\htdocs\xampp\jsonRPCClient.php on line 132
&gt; 
&gt; Fatal error:  Uncaught exception 'Exception' with message 'Incorrect
&gt; response id (request id: 1, response id: )' in
&gt; C:\xampp\htdocs\xampp\jsonRPCClient.php:152 Stack trace:
&gt; #0 C:\xampp\htdocs\xampp\hello.php(14): jsonRPCClient-&gt;__call('getinfo', Array)
&gt; #1 C:\xampp\htdocs\xampp\hello.php(14): jsonRPCClient-&gt;getinfo()
&gt; #2 {main}   thrown in C:\xampp\htdocs\xampp\jsonRPCClient.php on line 152
</code></pre>

<p>and here is my port status :</p>

<p><img src="https://i.sstatic.net/GsOll.jpg" alt="enter image description here"></p>

<p>I am running bitcoin-qt in server mode (=1) and the port status for 8333 is "sent"</p>

<p>my XAMPP Netstat also shows that the port is properly open :</p>

<p><img src="https://i.sstatic.net/wbOlg.jpg" alt="enter image description here"></p>

<p>I also tried this line </p>

<blockquote>
  <p>jsonRPCClient('<a href="https://bitcoinrpc:12345@192.168.0.2:8333/" rel="nofollow noreferrer">https://bitcoinrpc:12345@192.168.0.2:8333/</a>');</p>
</blockquote>

<p>because my bitcoin.conf is</p>

<blockquote>
  <p>server=1 rpcuser=bitcoinrpc rpcpassword=12345 listen=1 rpcssl=1</p>
</blockquote>

<p>still no joy - get the same error !</p>

<p>WHAT MORE CAN I DO to get it to work !!!! </p>

<p>Any help much appreciated !</p>

<json-rpc>
jsonRPCClient.php not working
Aussie in Perth
# jsonRPCClient.php not working

(Asked by: username_0 on 2015-07-21)

I got bitcoind working in the cmd prompt;
Then I closed it and opened bitcoin-qt and that is now running in server mode; (bitcoinf server=1)
Then I run some simple .php on my localhost (using xampp apache engine) and this line of code is not working : 

$bitcoin = new
  jsonRPCClient('https://user:password@192.168.0.2:8333/');

I get this error :
>  Notice:  fopen(): send of 24 bytes failed with errno=10053 An
> established connection was aborted by the software in your host
> machine.  in C:\xampp\htdocs\xampp\jsonRPCClient.php on line 132
> 
> Fatal error:  Uncaught exception 'Exception' with message 'Incorrect
> response id (request id: 1, response id: )' in
> C:\xampp\htdocs\xampp\jsonRPCClient.php:152 Stack trace:
> #0 C:\xampp\htdocs\xampp\hello.php(14): jsonRPCClient->__call('getinfo', Array)
> #1 C:\xampp\htdocs\xampp\hello.php(14): jsonRPCClient->getinfo()
> #2 {main}   thrown in C:\xampp\htdocs\xampp\jsonRPCClient.php on line 152

and here is my port status :

I am running bitcoin-qt in server mode (=1) and the port status for 8333 is "sent"
my XAMPP Netstat also shows that the port is properly open :

I also tried this line 

jsonRPCClient('https://bitcoinrpc:12345@192.168.0.2:8333/');

because my bitcoin.conf is

server=1 rpcuser=bitcoinrpc rpcpassword=12345 listen=1 rpcssl=1

still no joy - get the same error !
WHAT MORE CAN I DO to get it to work !!!! 
Any help much appreciated !

**Tags:** json-rpc


---

## 1 answers

### Answer by username_1 on 2015-07-21. Score: 1

RPC port is 8332 by default for mainnet, 8333 is the Bitcoin network protocol port.

Also, be sure to set the rpcallowip variable if you are connecting to the node from another host on the network (non-localhost connections are blocked by default).

> **Comments:**
> **username_0**: Unfortunately that still does not resolve it. I am convinced this is a windows 7 problem and that if I run it on the server it will work. would be great if someone knows how windows is blocking this  

---

