Question about Monero node on a local network

Edit: I’m rewording this question as this is probably not the right forum for specific commands, but maybe the general question is relevant:

If I am running a Monero node on a PC on my home network, and want to use it to access the node from other devices also on my local network, do I have to specify the node’s IP address in the monerod command to run the node, or can I just use 127.0.0.1 as prescribed in the documentation?


Old version:

I’ve started over with running a full Monero node, this time on it’s own dedicated PC. I’ve downloaded monero wallet cli on Linux, and run the node with a ./monerod terminal command using screen.

Maybe this isn’t the right place to ask, but perhaps someone here knows, and I haven’t been on Reddit in ages:

If I want to run my node on my local network so I can connect Cake Wallet from my phone to it and also mine with xmrig and p2pool from another computer on my network, do I need to add

–rpc-bind-ip x.x.x.x --confirm-external-bind --zmq-pub tcp://x.x.x.x:18083

to the ./monerod command, where x.x.x.x is the IP address of that computer on the local network, or can I just use

--zmq-pub tcp://127.0.0.1:18083

as described on the P2Pool Github page?

I have been rereading the documentation around all of this, but some of the tutorials are now older and the core Monero and P2Pool documentation is written for people who know what they are doing.

It’s not always clear to me what is different when you are on a local network but using multiple devices on that network to access the node.

You’ll want to bind it to 0.0.0.0. Just make sure that the computer isn’t reachable from the broader internet.

127.0.0.1 tells your computer to only accept connections originating from itself.

1 Like

If I want to run my node on my local network so I can connect Cake Wallet from my phone to it and also mine with xmrig and p2pool from another computer on my network, do I need to add

–rpc-bind-ip x.x.x.x --confirm-external-bind --zmq-pub tcp://x.x.x.x:18083

Add --rpc-restricted-bind-ip=0.0.0.0 --rpc-restricted-bind-port=18089 --zmq-pub=tcp://0.0.0.0:18083

you dont need rpc-bind-ip or confirm-external-bind.

why? You should avoid exposing the unrestricted rpc (rpc-bind-ip), and instead add a new restricted rpc endpoint.

in cake wallet, you’ll access via port 18089.

to the ./monerod command, where x.x.x.x is the IP address of that computer on the local network, or can I just use

--zmq-pub tcp://127.0.0.1:18083

as described on the P2Pool Github page?

It depends where the p2pool software will be running. If p2pool software is running on the same host as monerod, then yes, you can use 127.0.0.1 for the zmq-pub

4 Likes

If I am running a Monero node on a PC on my home network, and want to use it to access the node from other devices also on my local network, do I have to specify the node’s IP address in the monerod command to run the node, or can I just use 127.0.0.1 as prescribed in the documentation?

127.0.0.1 is localhost. It is only available from the same host that monerod runs on. If you want to access the node from other devices on the LAN, you have to enable a restricted rpc, bound to “all interfaces” (0.0.0.0), or to the LAN ip address of the host that runs monerod (192.168.x.x).

like so: --rpc-restricted-bind-ip=0.0.0.0 --rpc-restricted-bind-port=18089

In cake wallet, you’ll then access via port 18089.

2 Likes

Thank you!

Can I still use 0.0.0.0 if I want to make the node available for others to sync their nodes?

That’s great information, thanks. I’ll be running from the same PC.

Ok, I should have been clearer when I wrote ‘IP address’. I meant the LAN ip address.

With that in mind, would the LAN ip address (192.168.x.x) be better than 0.0.0.0?