Foreverrising Blog

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:

RPCUSER=[username]
RPCPASSWORD=[password]

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 poclbm.py -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!

Advertisements

6 Comments »

  1. i have the guiminer and am wondering how to use the solo feature. could you help me? or at least point me in a direction that could?

    Comment by kio — May 21, 2011 @ 6:23 pm

  2. What happens to the bitcoins you find? do you need a wallet on each of your miners? or does your server machine collect them all?

    I’m interested in a similar setup. 🙂 old laptop repurposed with ubuntu desktop as server and two workhorse miners.

    Comment by Chaseshaw — June 12, 2011 @ 1:31 am

    • Also, how often do you actually find a coin on your own? If you have, say, 300mh/s, what’s your average take, say, per week?

      Comment by Chaseshaw — June 12, 2011 @ 1:35 am

      • I do pooled mining, which solves blocks faster, but pays fractions. It’s quicker than attempting to find a block with only 300MHash/s. Check out The BitCoin Difficulty Calculator for estimates on the length of time it may take.
        At present difficulty, it could take 94 days.

        I wouldn’t mine solo with less than a few GHash/s.

        Comment by foreverrising — June 12, 2011 @ 10:05 am

    • Any Blocks which you solve, you would recieve 50 BitCoins, which would be sent to your BitCoin wallet. The miners would be hashing for your bitcoin client so you there is no need for a seperate payment address for each.

      Comment by foreverrising — June 12, 2011 @ 9:56 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: