user9913: I have a VPS with bitcoind set up, synced the blocks and its all running fine. I have set up the bitcoin.conf file and allowed the IP of my web host server.
I am running a script on my web host that communicates to the wallet but it just won't connect! 
Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://INVENT_A_UNIQUE_USERNAME:INVENT_A_UNIQUE_PASSWORD@VPSIP:8333/' in /home/1234/public_html/gm/install/driver_test.php:61 Stack trace: #0 /home/1234/public_html/gm/install/index.php(16): jsonRPCClient->__call('getbalance', Array) #1 /home/1234/public_html/gm/install/index.php(16): jsonRPCClient->getbalance() #2 {main} thrown in /home/1234/public_html/gm/install/driver_test.php on line 61

Any suggestions? I have run out of ideas.

user9540: It looks like you are using the wrong port. The RPC server listens on port 8332 by default, so try that. Port 8333 is for bitcoin node traffic.

9913: <p>I have a VPS with bitcoind set up, synced the blocks and its all running fine. I have set up the bitcoin.conf file and allowed the IP of my web host server.</p>

<p>I am running a script on my web host that communicates to the wallet but it just won't connect! </p>

<pre><code>Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://INVENT_A_UNIQUE_USERNAME:INVENT_A_UNIQUE_PASSWORD@VPSIP:8333/' in /home/1234/public_html/gm/install/driver_test.php:61 Stack trace: #0 /home/1234/public_html/gm/install/index.php(16): jsonRPCClient-&gt;__call('getbalance', Array) #1 /home/1234/public_html/gm/install/index.php(16): jsonRPCClient-&gt;getbalance() #2 {main} thrown in /home/1234/public_html/gm/install/driver_test.php on line 61
</code></pre>

<p>Any suggestions? I have run out of ideas.</p>
 9540: <p>It looks like you are using the wrong port. The RPC server listens on port 8332 by default, so try that. Port 8333 is for bitcoin node traffic.</p>
