Bitcoin Forum
December 10, 2016, 04:34:56 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [Linux] Solo LAN Mining help! [Connecting bitcoin miners to a server]  (Read 2563 times)
Clarithium
Member
**
Offline Offline

Activity: 93



View Profile WWW
August 21, 2011, 09:17:58 PM
 #1

I DON'T CARE IF POOLED MINING IS BETTER, THIS IS A LEARNING EXPERIENCE FOR ME

So here is what i've done. Also, this is the FIRST time i've ever done linux so I feel like im missing a step.

I installed Ubuntu on my server, and Linuxcoin on my two test miners.  I want Ubuntu to act as the server, and Linuxcoin to connect to the server on the same network.

For the server, I installed the Bitcoin client, edited the bitcoin.conf file to have rpcuser=myuser and rpcpassword=mypassword.  Then, I ran bitcoin -server in terminal and a bitcoin client popped up but didn't really show any signs that it was acting as a server.

Then, on the linuxcoin servers I opened a terminal and used the "start_mining" script. I used phoenix miner (since poclbm is giving me problems) and for the URL I put the IP Address of my server (192.168.1.3) and for username and password I put the RPC username and pass.  But when I went to mine, it said "connection failed, retrying" and didn't work correctly. When I try to mine to a pool, it works correctly.

Is there a port i'm supposed to open, or a way for the server to allow the other computers to connect? I checked my routers firewall, it was not blocking that port (8333).

I make websites for bitcoins! Will help you host!Click Here
Bitcoin Mining Rigs
1CrNUxx8E9ds1jQ1dexp9FFjhcuUqupdmN
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
nomnomnom
Sr. Member
****
Offline Offline

Activity: 311



View Profile
August 21, 2011, 11:29:03 PM
 #2

Hello,

I think you need to set rpcallowip and maybe rpcport so that your miners can connect:
Code:
# 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):
#rpcallowip=10.1.1.34
#rpcallowip=192.168.1.*
 
# Listen for RPC connections on this TCP port:
rpcport=8332

See here for more options: https://en.bitcoin.it/wiki/Running_Bitcoin
Clarithium
Member
**
Offline Offline

Activity: 93



View Profile WWW
August 22, 2011, 12:09:51 AM
 #3

I plan on having a ton of computers connected.. I have to input all of their IP addresses everytime I start the server? Sad

I make websites for bitcoins! Will help you host!Click Here
Bitcoin Mining Rigs
1CrNUxx8E9ds1jQ1dexp9FFjhcuUqupdmN
nomnomnom
Sr. Member
****
Offline Offline

Activity: 311



View Profile
August 22, 2011, 01:05:00 AM
 #4

Well, you can put this stuff in the config file, so you only type it once Smiley
And you can use the wildcards. If I understand this correct you could also set rpcallowip=*
so that everyone is allowed to connect. But I would be careful with allowing everyone.
Clarithium
Member
**
Offline Offline

Activity: 93



View Profile WWW
August 22, 2011, 05:01:07 AM
 #5

Do I just add a new line for each conig?

rpcuser=user
rpcpassword=password
rpcallowip=*
rpcport=8332



That should work right? :O (Makes life easymode)

I make websites for bitcoins! Will help you host!Click Here
Bitcoin Mining Rigs
1CrNUxx8E9ds1jQ1dexp9FFjhcuUqupdmN
Acejam
Sr. Member
****
Offline Offline

Activity: 283


View Profile
August 22, 2011, 02:39:17 PM
 #6

Yeah, you need these two lines for the JSON RPC server to start correctly:

rpcallowip=*
rpcport=8332


rpcallowip takes wildcards, so something like rpcallowip=192.168.1.* would work too.

Clarithium
Member
**
Offline Offline

Activity: 93



View Profile WWW
August 23, 2011, 09:09:50 PM
 #7

My miner is stuck at "Bitcoin is downloading blocks"

How long does this take..? Or is it hungup.

I make websites for bitcoins! Will help you host!Click Here
Bitcoin Mining Rigs
1CrNUxx8E9ds1jQ1dexp9FFjhcuUqupdmN
mute20
Sr. Member
****
Offline Offline

Activity: 265


21


View Profile
August 24, 2011, 02:42:12 AM
 #8

My miner is stuck at "Bitcoin is downloading blocks"

How long does this take..? Or is it hungup.

It needs to stay current which is 142332 right now. So you won't be able to mine till then.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!