<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>

CC BY-SA 3.0
2013-12-02T16:18:25.740Z
Hi, thanks for the help. It does take a while to do something now and looks like it is connecting but after 40 seconds or so it comes up with the same error as above. Are there any tests I can do to find out what is happening?
Tau11
CC BY-SA 3.0
2013-12-02T15:51:23.987Z
2013-12-02T15:51:23.987Z
Bitlab.co
<p>Do not forget to restart the bitcoind whenever you make any changes to config file. Restart it by following command :</p>

<pre><code>bitcoind stop
bitcoind 
</code></pre>

<p>The content of the bitcoin.conf should be :</p>

<pre><code>server=1
daemon=1
rpcuser=yourusername
rpcpassword=yourpassword
rpcallowip=123.123.123.123
</code></pre>

CC BY-SA 3.0
2014-01-31T17:42:01.673Z
2014-03-03T19:38:34.793Z
2014-03-03T19:38:34.793Z
Khan Shahrukh
<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>

<bitcoind>
Running bitcoind on VPS, won't speak to my web server
Tau11
# Running bitcoind on VPS, won't speak to my web server

(Asked by: username_0 on 2013-12-02)

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.

**Tags:** bitcoind


---

## 2 answers

### Answer by username_1 on 2013-12-02. Score: 1

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.

> **Comments:**
> **username_0**: Hi, thanks for the help. It does take a while to do something now and looks like it is connecting but after 40 seconds or so it comes up with the same error as above. Are there any tests I can do to find out what is happening?  

---

### Answer by username_2 on 2014-01-31. Score: 0

Do not forget to restart the bitcoind whenever you make any changes to config file. Restart it by following command :
bitcoind stop
bitcoind 

The content of the bitcoin.conf should be :
server=1
daemon=1
rpcuser=yourusername
rpcpassword=yourpassword
rpcallowip=123.123.123.123


---

