Author

Topic: [Linux] Solo LAN Mining help! [Connecting bitcoin miners to a server] (Read 2809 times)

sr. member
Activity: 265
Merit: 250
21
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.
member
Activity: 93
Merit: 10
My miner is stuck at "Bitcoin is downloading blocks"

How long does this take..? Or is it hungup.
full member
Activity: 124
Merit: 251
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.

member
Activity: 93
Merit: 10
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)
sr. member
Activity: 313
Merit: 250
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.
member
Activity: 93
Merit: 10
I plan on having a ton of computers connected.. I have to input all of their IP addresses everytime I start the server? Sad
sr. member
Activity: 313
Merit: 250
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
member
Activity: 93
Merit: 10
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).
Jump to: