<p>As stated by the help, </p>

<pre><code>  -server
       Accept command line and JSON-RPC commands
</code></pre>

<p>You may however also have to check if this configuration parameter has been enabled by your local configuration, usually a file called bitcoin.conf, unless configured using the -conf parameter to bitcoind.</p>

<p>On linux builds, this should default to <code>~/.bitcoin/bitcoin.conf</code>, on Mac OS X <code>~/Library/Application\ Support/Bitcoin/bitcoin.conf</code></p>

<p>In this file, you can explicitly configure the server as off using the server configuration parameter.</p>

<pre><code>server=0
</code></pre>

<p>You can alternatively pass a parameter as 1 (enabled) or 0 (disabled)</p>

<pre><code>bitcoind -server=0
</code></pre>

<p>You should not be able to access your server assuming this has been toggled to 0.</p>

<p>The headless daemon bitcoind has the JSON-RPC API enabled by default, the GUI bitcoin-qt has it disabled by default.  </p>

CC BY-SA 4.0
2019-02-17T21:03:48.437Z
Didn't know it was enabled by default, they never mentioned it in the docs. This makes sense, I've never actually tried setting it to 0, only removing it. Thanks.
zabbir
CC BY-SA 4.0
2019-02-17T21:06:27.237Z
Pleasure. The documentation referring to this is here. https://github.com/bitcoin/bitcoin/blob/master/doc/JSON-RPC-interface.md

Please accept this answer if it has answered your question.
Gr0kchain
CC BY-SA 4.0
2019-02-17T20:53:21.103Z
2019-02-17T20:59:52.880Z
2019-02-17T20:59:52.880Z
Gr0kchain
<p>What does the -server option do in bitcoin node? <a href="https://en.bitcoin.it/wiki/Running_Bitcoin" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Running_Bitcoin</a> says 'Accept command line and JSON-RPC commands'. However I can't see any difference whatsoever. In both cases I'm able to curl my request as well as use the cli. </p>

<json-rpc><server>
What does -server option do?
zabbir
# What does -server option do?

(Asked by: username_0 on 2019-02-17)

What does the -server option do in bitcoin node? <https://en.bitcoin.it/wiki/Running_Bitcoin> says 'Accept command line and JSON-RPC commands'. However I can't see any difference whatsoever. In both cases I'm able to curl my request as well as use the cli.

**Tags:** json-rpc, server


---

## 1 answers

### Answer by username_1 on 2019-02-17. Score: 2 | Accepted answer

As stated by the help, 
  -server
       Accept command line and JSON-RPC commands

You may however also have to check if this configuration parameter has been enabled by your local configuration, usually a file called bitcoin.conf, unless configured using the -conf parameter to bitcoind.
On linux builds, this should default to ~/.bitcoin/bitcoin.conf, on Mac OS X ~/Library/Application\ Support/Bitcoin/bitcoin.conf
In this file, you can explicitly configure the server as off using the server configuration parameter.
server=0

You can alternatively pass a parameter as 1 (enabled) or 0 (disabled)
bitcoind -server=0

You should not be able to access your server assuming this has been toggled to 0.
The headless daemon bitcoind has the JSON-RPC API enabled by default, the GUI bitcoin-qt has it disabled by default.

> **Comments:**
> **username_0**: Didn't know it was enabled by default, they never mentioned it in the docs. This makes sense, I've never actually tried setting it to 0, only removing it. Thanks.  
> **username_1**: Pleasure. The documentation referring to this is here. https://github.com/bitcoin/bitcoin/blob/master/doc/JSON-RPC-interface.md  Please accept this answer if it has answered your question.  

---

