<p>Make sure That you have, in your <code>bitcoin.conf</code> file located in <code>~/Library/Application Support/Bitcoin</code> at least the following:</p>

<pre><code>server=1
rpcuser=&lt;username&gt;
rpcpassword=&lt;your_password&gt;
</code></pre>

<p>Restart Bitcoin client, enjoy Bitcoin solo mining. ;)</p>

CC BY-SA 3.0
2014-05-27T11:19:47.310Z
2014-05-27T11:19:47.310Z
kiddouk
<p>Ensure that you must have a locally-running instance of Bitcoin-Qt or <code>bitcoind</code> running with its JSON-RPC interface active.</p>

CC BY-SA 3.0
2013-05-02T07:59:54.237Z
I compiled bitcoind, but did not find info about how to activate that interface
Open the way
CC BY-SA 3.0
2013-05-02T12:50:12.097Z
See [Running](https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md#running) in the OSX build instructions.
Colin Dean
CC BY-SA 3.0
2013-05-02T02:42:17.660Z
2013-05-02T02:42:17.660Z
Colin Dean
<p>I want to test Solo mining on OS X with Diablo Miner, so I pass options:</p>

<pre><code>./DiabloMiner-OSX.sh -u my_user -p my_pass -r 8332
</code></pre>

<p>and I get:</p>

<pre><code>[5/1/13 11:01:37 PM] Started                                         
[5/1/13 11:01:37 PM] Connecting to: http://localhost:8332/                           
[5/1/13 11:01:37 PM] Using Apple OpenCL 1.1 (Aug 10 2012 19:59:48)                       
[5/1/13 11:01:38 PM] Added GeForce 9600M GT (#1) (4 CU, local work size of 512)              
[5/1/13 11:01:38 PM] ERROR: Cannot connect to localhost: Connection refused                  
[5/1/13 11:01:38 PM] Added GeForce 9400M (#2) (2 CU, local work size of 512)                 
[5/1/13 11:01:38 PM] ERROR: Cannot connect to localhost: Connection refused                  
[5/1/13 11:01:38 PM] ERROR: Cannot connect to localhost: Connection refused                  
[5/1/13 11:01:39 PM] ERROR: Cannot connect to localhost: Connection refused 
</code></pre>

<p>What could be the reason for this error?</p>

<mac><solo-mining><diablominer>
Solo mining on OS X with Diablo Miner
Open the way
# Solo mining on OS X with Diablo Miner

(Asked by: username_0 on 2013-05-01)

I want to test Solo mining on OS X with Diablo Miner, so I pass options:

```
./DiabloMiner-OSX.sh -u my_user -p my_pass -r 8332

```

and I get:

```
[5/1/13 11:01:37 PM] Started                                         
[5/1/13 11:01:37 PM] Connecting to: http://localhost:8332/                           
[5/1/13 11:01:37 PM] Using Apple OpenCL 1.1 (Aug 10 2012 19:59:48)                       
[5/1/13 11:01:38 PM] Added GeForce 9600M GT (#1) (4 CU, local work size of 512)              
[5/1/13 11:01:38 PM] ERROR: Cannot connect to localhost: Connection refused                  
[5/1/13 11:01:38 PM] Added GeForce 9400M (#2) (2 CU, local work size of 512)                 
[5/1/13 11:01:38 PM] ERROR: Cannot connect to localhost: Connection refused                  
[5/1/13 11:01:38 PM] ERROR: Cannot connect to localhost: Connection refused                  
[5/1/13 11:01:39 PM] ERROR: Cannot connect to localhost: Connection refused 

```

What could be the reason for this error?

**Tags:** mac, solo-mining, diablominer


---

## 2 answers

### Answer by username_1 on 2014-05-27. Score: 2

Make sure That you have, in your `bitcoin.conf` file located in `~/Library/Application Support/Bitcoin` at least the following:

```
server=1
rpcuser=<username>
rpcpassword=<your_password>

```

Restart Bitcoin client, enjoy Bitcoin solo mining. ;)


---

### Answer by username_2 on 2013-05-02. Score: 0

Ensure that you must have a locally-running instance of Bitcoin-Qt or `bitcoind` running with its JSON-RPC interface active.

> **Comments:**
> **username_0**: I compiled bitcoind, but did not find info about how to activate that interface  
> **username_2**: See [Running](https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md#running) in the OSX build instructions.  

---

