<p>You can set any values you want for <code>rpcuser</code> and <code>rpcpassword</code> in <a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Sample_Bitcoin.conf" rel="noreferrer">bitcoin.conf</a>. Those values will be your username and password when you will be connecting to your bitcoind through HTTP JSON RPC. Also be sure to set other important values in .conf file, like <code>server</code>, <code>rpcallowip</code> and a few others to ensure your server is running correctly and securely.</p>

CC BY-SA 3.0
2012-11-06T17:01:41.197Z
What kind of values should server and rpcallowip have? My IP? Or other IPs? Sorry for these questions, I feel like it should be obvious but I can't find this anywhere.
Charlie
CC BY-SA 3.0
2012-11-06T19:28:17.170Z
@Charlie have you followed my link to "Running Bitcoin" wiki page to sample values and their explanations? Server should be set to 1, and rpcallowip to any ips you want to access bitcoind from - set it to something if you want to run it from other computers. If you need further explanations or help with your endeavour, you can drop me a line.
ThePiachu
CC BY-SA 3.0
2017-05-17T16:52:42.533Z
is there an example file somewhere?
Justin Thomas
CC BY-SA 4.0
2018-12-04T15:57:32.050Z
There is an example file here: https://github.com/bitcoin/bitcoin/blob/master/share/examples/bitcoin.conf
JBaczuk
CC BY-SA 3.0
2012-11-06T09:50:16.613Z
2012-11-06T09:50:16.613Z
ThePiachu
<p>No you can define the <code>rpcuser</code> and <code>rpcpassword</code> in the <code>bitcoin.conf</code> file itself. Usually it is commented, you can uncomment the line <code>rpcuser</code> and <code>rpcpassword</code> and input your username and password which will be used when you will be connecting to your <code>bitcoind</code> through HTTP JSON RPC.</p>
<p><a href="https://i.sstatic.net/6xh3S.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6xh3S.jpg" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2019-01-30T09:03:15.770Z
2022-10-28T18:15:23.303Z
2022-10-28T18:15:23.303Z
manishm
<p>Can I just make up a value for rpcuser/rpcpassword in bitcoin.conf? Or do I have to set one up somewhere?  </p>

CC BY-SA 4.0
2019-11-05T09:49:08.343Z
Does anyone have any resources on how to setup JasonRPC on a bitcoin node (changing the variables in the bitcoin.conf)?
Robert Johnstone
CC BY-SA 4.0
2021-02-06T11:24:15.317Z
I cannot post a reply (low reputation ^^) but here are the steps.
1. Open bitcoin core
2. Open "Options" (in french : "Paramètres -> "Options")
3. In the "main" tab, clic the "Open config file" button (bottom left).
4. A window that was empty for me opens, fill it with those 3 lines :
`rpcuser=mysecretusername`
`rpcpassword=1Uphie6diphee6Rur`
`server=1`
4. Save/close file/apply settings.
5. Restart bitcoin core
mansuetus
<bitcoind><json-rpc><authentication>
What is rpcuser?
Charlie
# What is rpcuser?

(Asked by: username_0 on 2012-11-06)

Can I just make up a value for rpcuser/rpcpassword in bitcoin.conf? Or do I have to set one up somewhere?

**Tags:** bitcoind, json-rpc, authentication

> **Comments:**
> **username_1**: Does anyone have any resources on how to setup JasonRPC on a bitcoin node (changing the variables in the bitcoin.conf)?  
> **username_2**: I cannot post a reply (low reputation ^^) but here are the steps. 1. Open bitcoin core 2. Open "Options" (in french : "Paramètres -> "Options") 3. In the "main" tab, clic the "Open config file" button (bottom left). 4. A window that was empty for me opens, fill it with those 3 lines : `rpcuser=mysecretusername` `rpcpassword=1Uphie6diphee6Rur` `server=1` 4. Save/close file/apply settings. 5. Restart bitcoin core  

---

## 2 answers

### Answer by username_3 on 2012-11-06. Score: 10

You can set any values you want for `rpcuser` and `rpcpassword` in [bitcoin.conf](https://en.bitcoin.it/wiki/Running_Bitcoin#Sample_Bitcoin.conf). Those values will be your username and password when you will be connecting to your bitcoind through HTTP JSON RPC. Also be sure to set other important values in .conf file, like `server`, `rpcallowip` and a few others to ensure your server is running correctly and securely.

> **Comments:**
> **username_0**: What kind of values should server and rpcallowip have? My IP? Or other IPs? Sorry for these questions, I feel like it should be obvious but I can't find this anywhere.  
> **username_3**: @username_0 have you followed my link to "Running Bitcoin" wiki page to sample values and their explanations? Server should be set to 1, and rpcallowip to any ips you want to access bitcoind from - set it to something if you want to run it from other computers. If you need further explanations or help with your endeavour, you can drop me a line.  
> **username_4**: is there an example file somewhere?  
> **username_5**: There is an example file here: https://github.com/bitcoin/bitcoin/blob/master/share/examples/bitcoin.conf  

---

### Answer by username_6 on 2019-01-30. Score: 1

No you can define the `rpcuser` and `rpcpassword` in the `bitcoin.conf` file itself. Usually it is commented, you can uncomment the line `rpcuser` and `rpcpassword` and input your username and password which will be used when you will be connecting to your `bitcoind` through HTTP JSON RPC.

[![enter image description here](https://i.sstatic.net/6xh3S.jpg)](https://i.sstatic.net/6xh3S.jpg)


---

