<p>The <code>-gen</code> flag actually started a CPU miner process in older versions of the Bitcoin client, before CPU mining became obsolete.</p>

<p>What you're probably thinking was more like <code>bitcoind -server</code> or <code>`bitcoind -server -RPCALLOWIP=192.168.1.* -RPCPORT=8333</code> which would start a listening Bitcoin server from which a proper miner could obtain getworks. Since namecoind is a direct port of bitcoind with only the DNS-replacement functionality added, the flags are the same. Nothing special or fancy required, just follow any old "how to solo mine" tutorial and replace <code>bitcoind</code> with <code>namecoind</code>.</p>

CC BY-SA 3.0
2012-12-07T05:31:38.650Z
Where might we find one of these older "how to solo mine" tutorials? I've searched . . .
Kinnard Hockenhull
CC BY-SA 3.0
2012-12-07T05:46:24.183Z
There aren't a lot of the floating around still, but all you need to do is set server=1 as well as an rpcuser, rpcpassword and rpcallowip in your [bitcoin.conf](https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File) file and then you can point any standard miner at the computer running the client exactly like you would point it at a pool. Not that I'm recommending solo mining at current difficulties mind you ;)
David Perry
CC BY-SA 3.0
2012-01-10T21:43:46.503Z
2012-01-10T21:43:46.503Z
David Perry
<p>In order to mine Bitcoins, one needs to start the bitcoind with "-server" flag and later request from it a getwork to solve. Does the Namecoin client operate in the same way, or is there some specific "namecoind" version one needs to use in order to generate coins? Where can one find the communication protocol for it?</p>

CC BY-SA 3.0
2012-01-10T22:15:13.447Z
Note that instead of mining Namecoins solo, you can mine both Bitcoins and Namecoins at the same time (and almost certainly receive a much higher return than if you just mined Namecoins) through a mining pool that offers [merged mining](http://bitcoin.stackexchange.com/q/273/516), such as ozco.in or bitminter.com
Highly Irregular
CC BY-SA 3.0
2012-01-10T22:29:13.163Z
Yes, although this question is mostly aimed at people wanting to set up their own pooled mining (be it with just their own rigs, or as a fully fledged mining pool).
ThePiachu
CC BY-SA 3.0
2012-01-10T23:13:34.870Z
@DavidSchwartz wasn't aware, changed my question accordingly.
ThePiachu
<mining-pools><namecoin><miner-configuration><getwork><daemon>
How does one mine Namecoins?
ThePiachu
# How does one mine Namecoins?

(Asked by: username_0 on 2012-01-10)

In order to mine Bitcoins, one needs to start the bitcoind with "-server" flag and later request from it a getwork to solve. Does the Namecoin client operate in the same way, or is there some specific "namecoind" version one needs to use in order to generate coins? Where can one find the communication protocol for it?

**Tags:** mining-pools, namecoin, miner-configuration, getwork, daemon

> **Comments:**
> **username_1**: Note that instead of mining Namecoins solo, you can mine both Bitcoins and Namecoins at the same time (and almost certainly receive a much higher return than if you just mined Namecoins) through a mining pool that offers [merged mining](http://bitcoin.stackexchange.com/q/273/516), such as ozco.in or bitminter.com  
> **username_0**: Yes, although this question is mostly aimed at people wanting to set up their own pooled mining (be it with just their own rigs, or as a fully fledged mining pool).  
> **username_0**: @DavidSchwartz wasn't aware, changed my question accordingly.  

---

## 1 answers

### Answer by username_2 on 2012-01-10. Score: 7 | Accepted answer

The `-gen` flag actually started a CPU miner process in older versions of the Bitcoin client, before CPU mining became obsolete.

What you're probably thinking was more like `bitcoind -server` or ``bitcoind -server -RPCALLOWIP=192.168.1.* -RPCPORT=8333` which would start a listening Bitcoin server from which a proper miner could obtain getworks. Since namecoind is a direct port of bitcoind with only the DNS-replacement functionality added, the flags are the same. Nothing special or fancy required, just follow any old "how to solo mine" tutorial and replace `bitcoind` with `namecoind`.

> **Comments:**
> **username_3**: Where might we find one of these older "how to solo mine" tutorials? I've searched . . .  
> **username_2**: There aren't a lot of the floating around still, but all you need to do is set server=1 as well as an rpcuser, rpcpassword and rpcallowip in your [bitcoin.conf](https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File) file and then you can point any standard miner at the computer running the client exactly like you would point it at a pool. Not that I'm recommending solo mining at current difficulties mind you ;)  

---

