Some people find it hard to solo mine altcoins using antminer such as S3, S4, C1, S5, S7 and others, generally I speak of miners which have Ethernet port or wifi and doesn't require to be connected to a PC to work, because they have their own rasberry pie or chip inside with CGminer or BFGminer.
This tutorial should apply for any altcoin SHA256 and ASIC miner.
I am writing this because I was trying to find a way to solo mine [ANTI] the first community maintained altcoin with no real owner or organization.
And my contribution to mining is the following.
You will need
- BFGminer.
- Your wallet running on pc.
- You and the miner should be at the same network "both connected to the same router doesn't matter Wifi or lan".
- a windows PC but if you use Linux or mac the only difference is the location of "altcoinname.conf" where altcoin name could be any altcoin.
First of all know what RPC ports your wallet use, google "coin name RPC port" if you don't know, for ANTI it should be 11655.
Now you will need to open your AppData it's located in C:\Users\YOURUSER\AppData\Roaming\AntiBitcoin this is ANTI example for other altcoins should be different in the last folder which is the altcoin name.
Make a new text file and paste the following:
server=1
rpcuser=XXXXX
rpcpassword=x
rpcport=11655
daemon=1
gen=0
Rename it to your altcoiname.conf should be named as the folder in my case AntiBitcoin.conf
Replace XXXXX with some user name like user1
the password recommended to choose a hard one instead of the x, something like 16 letters and numbers capital and small just don't use dots special characters and stuff because I don't know what they might cause, for example PaSSW0rdStr0Ng is good for now.
Replace RPC port with your wallet RPC port, as 11655 is for ANTI, you can have a custom port number if you want just remember that you will need it later, and it's recommended to use the one from altcoin specs just to not conflict.
so after you setup this exit the wallet and than run it again, your wallet now is running in server mode
Now you need to download BFGminer, we will use it as a stratum proxy, because your miner can't speak with RPC directly and solo mine, you need a proxy to translate between the wallet and the stratum based or http based miner.
download BFGminer from here
http://bfgminer.org/ or compile from source doesn't matter do what suites you.
now extract BFGminer lets say to c:\ drive in a folder like c:\bfgminer\
Create a text file as the same location and put this inside:
bfgminer -o localhost:11655 -u XXXXXX -p x --stratum-port=3333
pause
Name it start-pool.bat
The above should work on all antminer but if you have a problem replace "stratum" with "http" is for compatibility.
You need to replace the port 11655 with the port you choose in your altcoin.conf the port 3333 leave it it's the port you will connect to from your miner.
now fire up the start-pool.bat you should see that everything is ready and no errors, it will display a speed of 0.
now go to command line by running CMD and write "ipconfig", find your local ip address for example 192.168.1.4
Go inside your miner web interface and change the first pool to "192.168.1.4:3333" without the replace the IP with the one you found from ipconfig but keep the port to 3333 since we used it in the BFGminer file.
save settings of your miner, and wait, you should see now that hash rate going up on the bfgminer window.
Your wallet will have the coins when it mine, you don't need to use your address as username or anything, RPC will handle it with the wallet, you might also find a new address in your wallet with label BFGminer, that will hold your mined coins, but depend on wallet.
I have tested this with ANTI wallet, so please backup your wallet.dat before you try, I know that many know this information but I share it because I didn't find it online, I had to learn it by my self, and therefore I don't want people to have to learn it all the way alone like I did.
Feel free to add or fix on this tutorial, share and distribute as you wish, and if you want to be free join ANTI team, you can be the dev, the representative or be proud and tell everyone you own this coin, ANTI is the first community based altcoin, made by the community with no owner or central dev, we all work and contribute.
Brought to you by ANTI - any skills are welcome, this is your coin
http://www.antibitcoin.site/