Foreverrising Blog

April 15, 2011

BitCoin.Conf Example

Filed under: Uncategorized — Tags: , , , , — foreverrising @ 8:22 pm

BitCoin.conf is the configuration file for both bitcoin (GUI) and bitcoind (daemon). In my bitcoin clients I usually only have one PC which runs bitcoin as a server. All others connect to it to mine. Here is an example bitcoin.conf file. Just cut, paste, edit, and ensure it is bitcoin.conf, not bitcoin.conf.txt or anything else. Also make sure the file is in the correct folder:

Windows XP:
C:\Documents and Settings\[USERNAME]\Application Data\Bitcoin\bitcoin.conf

Windows Vista & 7:


Mac OSX:
/Users/[user]/Library/Application Support/Bitcoin/bitcoin.conf

# bitcoin.conf configuration file. Lines beginning with # are comments.

# Network-related settings:

# Run on the test network instead of the real bitcoin network.

# Connect via a socks4 proxy

# Use as many addnode= settings as you like to connect to specific peers

# … or use as many connect= settings as you like to connect ONLY
# to specific peers:

# Do not use Internet Relay Chat ( #bitcoin channel) to
# find other peers.

# Maximum number of inbound+outbound connections.

# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)

# server=1 tells Bitcoin to accept JSON-RPC commands.

# You must set rpcuser and rpcpassword to secure the JSON-RPC api

# How many seconds bitcoin will wait for a complete RPC HTTP request.
# after the HTTP connection is established.

# By default, only RPC connections from localhost are allowed. Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):

# Listen for RPC connections on this TCP port:

# You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind
# running on another host using this option:

# Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate
# with Bitcoin -server or bitcoind

# OpenSSL settings used when rpcssl=1

# Miscellaneous options

# Set gen=1 to attempt to generate bitcoins

# Use SSE instructions to try to generate bitcoins faster. For muliple core processors.

# Pre-generate this many public/private key pairs, so wallet backups will be valid for
# both prior transactions and several dozen future transactions.

# Pay an optional transaction fee every time you send bitcoins. Transactions with fees
# are more likely than free transactions to be included in generated blocks, so may
# be validated sooner.

# Allow direct connections for the ‘pay via IP address’ feature.

# User interface options

# Start Bitcoin minimized

# Minimize to the system tray

April 10, 2011

Running a local BitCoin server

Filed under: Software — Tags: , , , , , , — foreverrising @ 8:37 pm

Running a BitCoin server is rather easy, and should only take a few minutes to configure. Depending on the abilities of your networked computers, you could take in a few BitCoins in a shorter period of time.

For the setup I already had a couple machines with bitcoin installed. For this post I’ll be using a Windows XP machine as the server and an Ubuntu client as the miner.

You’ll need to create a file bitcoin.conf, which defines the username and password for clients to connect. This file will need to be in your Application Data folder, which was a hidden folder on my windows machine in C:\Documents and Settings\[USER]\Application Data\BitCoin. Make sure that when you create the bitcoin.conf file, that it is not really named bitcoin.conf.txt if you made it in notepad. The lines that it will need are:


Next, I opened a port to the local network on the server machine by adding an exception to Windows firewall. I chose 8333 on this machine.

Next on the Windows machine, I want to start the Bitcoin client in server mode with the -server switch at the command line. Also needed are the RPC switches that will allow your miners to connect to the server:

C:\Program Files\BitCoin> bitcoin.exe -server -RPCALLOWIP=192.168.1.* -RPCPORT=8333

This example will start the BitCoin program, and allow it to accept JSON-RPC commands. On the miner computer, which I will be using Ubuntu with poclbm as an example, I would type the following into a terminal:

python -d 0 -w 128 -o [BC server's IP] -p 8333 --user=us --pass=pw

Your server should be up and mining now. If you’re getting a message about problems connecting, I would double check the port settings. If you get a message about bitcoin not connected, then check the settings of your server instance.

If you have questions just post a reply!

Older Posts »

Create a free website or blog at