<p>Yes, it is. If the node is running with <code>-debug=rpc</code>, then all RPC events will be logged, including RPC commands and where they came from.</p>

<p>Note that Bitcoin nodes do not communicate over RPC nor is the RPC interface typically exposed to the internet. Furthermore, the RPC interface is authenticated; connecting to it and being able to send a command requires knowing the username and password configured for that node.</p>

CC BY-SA 4.0
2018-08-05T07:03:16.990Z
2018-08-05T07:03:16.990Z
Ava Chow
<p>If I am running a bitcoin node, and for example I run a <code>sendtoaddress</code> cli command, is it easy for anybody to see what IP that command came from initially</p>

CC BY-SA 4.0
2018-08-04T19:55:01.893Z
usually nodes allow rpc calls only from 127.0.0.1 or from whitelisted ip addresses
amaclin
<bitcoin-cli>
Can I see which bitcoin node sent cli command
Barney Chambers
# Can I see which bitcoin node sent cli command

(Asked by: username_0 on 2018-08-04)

If I am running a bitcoin node, and for example I run a `sendtoaddress` cli command, is it easy for anybody to see what IP that command came from initially

**Tags:** bitcoin-cli

> **Comments:**
> **username_1**: usually nodes allow rpc calls only from 127.0.0.1 or from whitelisted ip addresses  

---

## 1 answers

### Answer by username_2 on 2018-08-05. Score: 2 | Accepted answer

Yes, it is. If the node is running with `-debug=rpc`, then all RPC events will be logged, including RPC commands and where they came from.

Note that Bitcoin nodes do not communicate over RPC nor is the RPC interface typically exposed to the internet. Furthermore, the RPC interface is authenticated; connecting to it and being able to send a command requires knowing the username and password configured for that node.


---

