My Nuc Dappnode is running geth software, and I’m able to connect to it through VPN from my laptop and interact with web3.
I however would also like to build dapps hosted on the Nuc itself, but I can’t seem to get the web3 connection running.
When connecting to the node from the same machine, what parameters (URL and port) should I be using? I’ve tried what is mentioned in the documentation, which works for the laptop, but not on the machine itself.
I assume that when on the same machine a VPN isn’t necessary, or am I mistaken?
Furthermore, I understand that an IPC connection should be possible when on the same machine, but I don’t know where to find the geth.ipc file… where is that located on the dappnode?
I’ve been following your same route because I have many of the same questions you have. I’m not able to use the http or ws directly. I get a connection refused error.
From the following, it appears that IPC is a good candidate and you mention it in your question.
I found a geth.ipc file in my /var/lib/docker/volumes/gethdnpdappnode_geth/_data/ but I’m not sure that is the correct one. I see there is a way to set the IPC path with --ipcpath but I’m still experimenting with it.