Author

Topic: Conf file in Appdata / roaming folder (Read 1899 times)

member
Activity: 70
Merit: 10
January 07, 2014, 04:47:43 PM
#7
Hi phil92, it's okay about your question anyways you should use the mining section.
legendary
Activity: 1049
Merit: 1006
January 07, 2014, 08:57:19 AM
#6
Hi everyone,

Thanks in advance for your help for the following noob question.

Can someone please explain what details I should mention in the .conf file that needs to be added for almost all cryptos in the appfolder, in terms of rcpuser and rcppass ?
I've noticed that sometimes it's already mentioned in the file, when provided (Dogecoin example : rpcuser : doge / rpcpass : wow), and sometimes it comes only with "user" and "pass". What should I indicate for this ? My own PC and password ?? Or shouldn't I change anything ?

Many thanks again !

No, do not use your PC's username and password! You may set the rpcuser and rpcpassword parameters to anything, and these parameters are only needed if you're going to mine solo, so you can connect to your local server.

If you're going to solo mine LTC, for example, you might set up your litecoin.conf file like this:

rpcuser=phil92
rpcpassword=ltc
rpcallowip=*
rpcport=9332
daemon=1


Then you should start the litecoind.exe program or, from a command line, go to the Litecoin program folder and run litecoin-qt.exe -server (or create a shortcut to the litecoin-qt.exe program and add the -server parameter in the shortcut's target field). Next, you should point your miner program to your local server. The server's address would be 127.0.0.1 (or the address of your machine if you have a local network set up), the server's port for mining would be 9332, your worker's username would be phil92 and your worker's password would be ltc.

Instead of running the Qt program with the -server parameter to mine solo with it, you may include the following line in the config file:

server=1

I don't like that approach because your coin's Qt program would be starting as a server every time you ran it.

Now if you're going to mine on a pool, the pool's address, pool's port, pool worker's username and pool worker's password will all need to be set in the program you use to mine - the values from the coin's config file will be ignored.

You may use this guide for any coin. Note that each coin uses a different port to connect to that coin's network. You usually don't need to specify that in the coin's config file - the coin's Qt or daemon program will know that value by default. Litecoin's default P2P port, for example, is port 9333. If you do need to specify a P2P port value, then you'd use the port parameter (ex. port=9333 for Litecoin). When solo mining, people usually set the rpcport parameter to a value immediately above or below the coin's default P2P port value.


Yes. But if there's a simple standard password or you do want to add a password, make it very difficult. It is possible to control your wallet with RPC with malicious software.

This is very important. Choose a long and hard to guess password so your wallet isn't exposed to malicious external accesses. You may also restrict the IP's that can connect to your local server with the rpcallowip parameter. To only allow connections from your own machine you should use:

rpcallowip=127.0.0.1 (or your machine's address if you have a LAN set up)

And don't forget to encrypt your wallet!
newbie
Activity: 47
Merit: 0
January 07, 2014, 08:27:35 AM
#5
Yes. But if there's a simple standard password or you do want to add a password, make it very difficult. It is possible to control your wallet with RPC with malicious software.

Ok thanks !
sr. member
Activity: 332
Merit: 250
AwesomeDice.net
January 07, 2014, 08:10:55 AM
#4
Yes. But if there's a simple standard password or you do want to add a password, make it very difficult. It is possible to control your wallet with RPC with malicious software.
newbie
Activity: 47
Merit: 0
January 07, 2014, 08:05:02 AM
#3
Just make up an user name and password. It is used in other programs to communicate with the wallet.

Ok thanks. So basically I could even not change anything ,right ?

Thanks again !
sr. member
Activity: 332
Merit: 250
AwesomeDice.net
January 07, 2014, 07:36:00 AM
#2
Just make up an user name and password. It is used in other programs to communicate with the wallet.
newbie
Activity: 47
Merit: 0
January 07, 2014, 07:32:34 AM
#1
Hi everyone,

Thanks in advance for your help for the following noob question.

Can someone please explain what details I should mention in the .conf file that needs to be added for almost all cryptos in the appfolder, in terms of rcpuser and rcppass ?
I've noticed that sometimes it's already mentioned in the file, when provided (Dogecoin example : rpcuser : doge / rpcpass : wow), and sometimes it comes only with "user" and "pass". What should I indicate for this ? My own PC and password ?? Or shouldn't I change anything ?

Many thanks again !
Jump to: