Author Topic: Set up Litecoin wallet (in Windows) for solo mining  (Read 51107 times)

Offline maplesyrupghost

Set up Litecoin wallet (in Windows) for solo mining
« on: December 18, 2012, 10:51:53 pm »
Hey! 

I will give you some pointers on how to set up your Litecoin client for solo mining. 

I'm writing this with the assumption that you are using Windows 7/8.

  • Download Litecoin as normal, probably not necessary if you have it installed already.  Might as well leave it closed for right now.
  • Click start, type %appdata% and hit enter.
  • Open the Litecoin folder.
  • Create a new file called litecoin.conf.  If you want to make your life easier, download this file (right click->save as..) which is exactly that.  Or you can open up notepad and paste this:
Code: [Select]
rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=9332
daemon=1
server=1
gen=0

block_nTime=1317972665
block_nNonce=2084524493
and save the file, be sure to change notepad's save output to 'all file types' and have litecoin.conf entered there.  litecoin.conf.txt will not work!  Also, I would recommend using notepad++ anyway.

Take note of the rpcallowip= line, that is the IP which can connect to the Litecoin wallet.  If you are going to connect from external machines in your network, you need to specify their IP's.  You are allowed multiple of these lines, so something like:
rpcallowip=127.0.0.1
rpcallowip=192.168.0.2
rpcallowip=192.168.1.*

Will work.  I have tried using the asterik in there as a wildcard, and it worked.  The username and password in the conf is self-explanatory, but if you want to connect your miners to something creative, now is the chance. 
  • Now you need to launch Litecoin.  I think we can do this multiple ways.  The surefire way is to open up a command window (click start, type cmd, hit enter) and navigate to your Litecoin folder.  A really quick way to do this is to start navigating to the directory in windows explorer, and once you get inside the Program Files (x86) folder and you see the Litecoin folder, hold shift and right click on that folder and select "open a command window here", this will save you the hassle of navigating there.  If you just open the command window right from the desktop, you have to go type:
    cd /
    cd p (hit tab until Program Files (x86) shows up, then hit enter) (if you are using a 32-bit OS, you will just go to the regular Program Files folder)
    cd Litecoin
    litecoin-qt.exe -server
    and then Litecoin will launch with the server flag on.  You're all done!

    But I'm pretty sure we can achieve launching Litecoin a more efficient way.

    If you have a shortcut to Litecoin somewhere, you can add the -server flag to it.  Right click on your shortcut, select properties, and then under the shortcut tab, add -server to the target AFTER the quotes.  For example, mine is set to "C:\Program Files (x86)\Litecoin\litecoin-qt.exe" -server

    Isn't that so much easier?  But I wanted to type out both ways just for the sake of flying cows.
  • Now you can connect your miners to mine for your Litecoin wallet.  Just enter the IP of the computer hosting the wallet as the server on your miners, and put the username and password as the ones you set in your conf (also note the port number you set there as well).  If you are using cgminer (with 3 Radeon 58xx GPUs), a good conf would look like this:

Code: [Select]
{
"pools" : [
        {
                "url" : "http://192.168.0.10:9332/",
                "user" : "username",
                "pass" : "password"
        },
        {
                "url" : "http://litecoinpool.org:9332/",
                "user" : "maplesyrupghost.user",
                "pass" : "pass"
        },
        {
                "url" : "http://lc.ozco.in:9332/",
                "user" : "maplesyrupghost.user",
                "pass" : "pass"
        }
]
,
"intensity" : "15,15,15",
"worksize" : "256,256,256",
"kernel" : "scrypt,scrypt,scrypt",
"gpu-engine" : "620-725,620-725,620-725",
"gpu-fan" : "20-85,20-85,20-85",
"gpu-memclock" : "1000,1000,1000",
"gpu-memdiff" : "0,0,0",
"gpu-powertune" : "0,0,0",
"gpu-vddc" : "0.000,0.000,0.000",
"lookup-gap" : "2,2,2",
"shaders" : "1440,1440,1440",
"temp-cutoff" : "95,95,95",
"temp-overheat" : "85,85,85",
"temp-target" : "82,82,82",
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "1",
"log" : "5",
"queue" : "1",
"retry-pause" : "5",
"scan-time" : "60",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"failover-only" : true,
"kernel-path" : "/usr/local/bin"
}

I would strongly suggest setting multiple pools on your conf like this.  See the failover-only flag there?  That locks cgminer to mine for your solo pool and that pool only, but it will still get the longpoll from the pool.  It helps keep cgminer up to date as the new blocks come in.  You will see "LONGPOLL DETECTED NEW BLOCK ON NETWORK" constantly, and hopefully those new blocks are yours!  And if your solo miner gets out of wack, it will fall back on the pools specified.

If you start the mining and it's not connecting, you might not have the full blockchain.  When I set it up the first time, I was frustrated at how long it was taking (doesn't help when you start a project at 2AM either) so I went to bed.  I had the pools as a failover so it was mining on them and once the Litecoin wallet caught up with the blockchain, it took over and in the morning when I woke up, I had a block already!

Want to make sure your computer is listening to that port?   

Open a command window and type netstat -a | find "LISTENING", it will take a minute to find them all, and then it will report them to you.  If you see the port that you set in litecoin.conf, chances are it's going to work!

Happy mining!  Found this handy?  Donate LTC to BitcoinTrading.com at this address: LcYAMfZpVfDeNEMxU2n45snWKzznG3c7on and BTC to 1HHMqvxXp6n5RTTPCwh5tcTqusBEhMoPcP

Cheers!
BitcoinTrading.com founder




Offline AaronD9933

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 2
  • Karma: +0/-0
  • BitcoinTrader
    • Aarond.9933
  • Referrals: 0
    • View Profile
  • eBay ID: Bestdeals757
Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #1 on: March 31, 2013, 03:02:56 am »
This will be deleted momentarily just using it as an easy to find file :D
Code: [Select]
rpcuser=minercontrolctr
rpcpassword=minercontrolpword
rpcallowip=
rpcport=9332
daemon=1
server=1
gen=0

block_nTime=1317972665
block_nNonce=2084524493

{
"pools" : [
        {
                "url" : "http://insert/",
                "user" : "minercontrolctr",
                "pass" : "minerXXXX"
        }
]
,
"intensity" : "15,15,15",
"worksize" : "256,256,256",
"kernel" : "scrypt,scrypt,scrypt",
"gpu-engine" : "620-725,620-725,620-725",
"gpu-fan" : "20-85,20-85,20-85",
"gpu-memclock" : "1000,1000,1000",
"gpu-memdiff" : "0,0,0",
"gpu-powertune" : "0,0,0",
"gpu-vddc" : "0.000,0.000,0.000",
"lookup-gap" : "2,2,2",
"shaders" : "1440,1440,1440",
"temp-cutoff" : "95,95,95",
"temp-overheat" : "85,85,85",
"temp-target" : "82,82,82",
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "1",
"log" : "5",
"queue" : "1",
"retry-pause" : "5",
"scan-time" : "60",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"failover-only" : true,
"kernel-path" : "/usr/local/bin"
}

bitcointrading.com - bitcoin trading buy/sell classifieds forum

Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #1 on: March 31, 2013, 03:02:56 am »

Offline alsmyth

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 2
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #2 on: April 06, 2013, 11:50:15 am »
Hi maplesyrupghost, I dutifully followed your post and appear to have a mining litecoin wallet, for the past 18 hours it had the ip address you posted in the rpcallowip not mine!, so I imagine I was mining to that ip (Yours?) Anyhow put mine in and was wondering if there is anyway i can check it is a) actually mining, b) to my wallet?
There is activity, and in the bottom right of the wallet I have 8 connections, I am receiving blocks but the two hammers icon when I hover says mining at 0 HPS.
Any help would be much apreciated
Thanks!

Offline maplesyrupghost

Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #3 on: April 06, 2013, 05:57:05 pm »
Hi maplesyrupghost, I dutifully followed your post and appear to have a mining litecoin wallet, for the past 18 hours it had the ip address you posted in the rpcallowip not mine!, so I imagine I was mining to that ip (Yours?) Anyhow put mine in and was wondering if there is anyway i can check it is a) actually mining, b) to my wallet?
There is activity, and in the bottom right of the wallet I have 8 connections, I am receiving blocks but the two hammers icon when I hover says mining at 0 HPS.
Any help would be much apreciated
Thanks!


The reason it says you are mining at 0 HPS in the wallet itself is because Litecoin still has the CPU functionality in the wallet.  That's something that was removed from the Bitcoin client long ago when it because worthless to try CPU mining.  It's like you click the button and it solo-mines right to the network, but you couldn't use a video card with that, it only used your processor.  So I believe that is why it says you are at zero HPS because that's not where you would see the speed.  You'd see that on the rig itself. 
BitcoinTrading.com founder




Offline alsmyth

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 2
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #4 on: April 07, 2013, 03:46:07 am »
Thanks, so when you say I would see that on the rig its self, I am just using my laptop at the moment, (quad core mac pro will be added soon) so where on the laptop would I see/prove its mining?

Offline RobDrinksMilk

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 1
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #5 on: April 12, 2013, 03:35:49 am »
This tutorial messed me up a bit. I followed your directions to a t. I even configured my ip the right way, and saved the .conf folder as specified. When I launch my litecoin wallet through .cmd, it prompts me to change my password and username, which I did do, but it doesn't resolve itself. It also suggest what I believe to be one of my litecoin receiving addresses as my password.
Please help!
-Robdrinksmilk

Offline maplesyrupghost

Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #6 on: April 12, 2013, 10:52:50 am »
This tutorial messed me up a bit. I followed your directions to a t. I even configured my ip the right way, and saved the .conf folder as specified. When I launch my litecoin wallet through .cmd, it prompts me to change my password and username, which I did do, but it doesn't resolve itself. It also suggest what I believe to be one of my litecoin receiving addresses as my password.
Please help!
-Robdrinksmilk

You open your wallet, and it prompts you to change your username and password?  I've never seen that before..  is your wallet encrypted?
BitcoinTrading.com founder




Offline mitsanaga

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 1
  • Karma: +0/-0
  • BitcoinTrader
  • Referrals: 0
    • View Profile
Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #7 on: April 14, 2013, 06:07:24 pm »
hi everyone. im new to all this mining stuff and i have so far succesfully setup my solo miner on guiminer. the only issue i am having is two things. 1 is if my wallet will recieve said coins, and 2, ive been getting a lot of failed validations when i try to use my gpu. please help. edit: i may have been brainfarting pretty badly, cause i had the wrong ip..... lol

with the wallet, i just want to know if my solo mining guiminer will send to the wallet because i setup the solo mining's database to that wallet or do i need to enter my address somewere. i followed the intructions i found on bitcointalk to the t, so i am sure i should be ok. but i want to make sure before i leave my stuff on 24/7.
« Last Edit: April 14, 2013, 06:19:05 pm by mitsanaga »

Offline maplesyrupghost

Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #8 on: April 14, 2013, 07:09:05 pm »
Are you solo mining Bitcoin through GUI Miner?  You will probably never get a block unfortunately, the difficulty is too damn high!  But this the Litecoin thread.. So are you trying to mine Litecoins with GUI Miner?  I wasn't sure it was possible, but I guess I don't see why not?  But I think GUI Miner supports phoenix, phatk, probably diablo..  But Litecoin needs scrypt mining, you need either Reaper or CGMiner.  If a Litecoin GUI Miner gets released, I could only imagine how high the difficulty would get.  Opportunity to make a piece of software that would be instantly successful! 

But provided you could mine the coin solo using GUI Miner, if you set it up properly with the RPC info in the bit/litecoin.conf in your AppData folder, if you found a block, it would credit it into your wallet, yes! :)
BitcoinTrading.com founder




Offline zhivotnoya

  • Trade Count: (0)
  • New Trader
  • *
  • Posts: 1
  • Karma: +0/-0
  • BitcoinTrader
    • psr-zhiv
  • Referrals: 0
    • View Profile
    • ZhivCo Technologies
  • eBay ID: zhiv21771
  • Twitter: zhivotnoya
Re: Set up Litecoin wallet (in Windows) for solo mining
« Reply #9 on: November 17, 2013, 01:23:50 am »
I know this post is 120 (or more) old, but I followed a google search here on how to setup the Litecoin wallet for solo mining.  I followed your directions, but when I try to connect using cgminer with the proper username/password and URL it says Error 401 (Unauthorized).  But when I change the url from http://127.0.0.1:9332/ to stratum+tcp://127.0.0.1:9332/ it connects just fine...just no workload.  Any ideas?

Code: (litecoin.conf) [Select]
rpcuser= [redacted for privacy]
rpcpassword= [redacted for privacy]
rpcallowip=192.168.1.*
rpcallowip=127.0.0.1
rpcallowip=24.74.203.121
daemon=1
server=1
gen=0

block_nTime=1317972665
block_nNonce=2084524493

Code: (cgminer.conf) [Select]
{
"pools" : [
{
"url" : "127.0.0.1:9332",
"user" : "zhivotnoya",
"pass" : "**hidden**"
},
{
"url" : "stratum+tcp://miner.pool-x.eu:9000/",
"user" : "**hidden**",
"pass" : "**hidden**"
}
]
,
"api-listen" : true,
"api-mcast-port" : "4028",
"api-port" : "4028",
"expiry" : "120",
"failover-only" : true,
"hotplug" : "5",
"log" : "5",
"no-pool-disable" : true,
"per-device-stats" : true,
"queue" : "1",
"scan-time" : "60",
"verbose" : true,
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin"
}


I'm currently using a Radeon 6970HD (only the one)...

Any thoughts?

Thanks in advance,
--Z