monero-project / monero-gui

Monero: the secure, private, untraceable cryptocurrency
Other
1.7k stars 766 forks source link

Cannot connect to remote node over Tor using monero-wallet-gui on macOS (connecting to node using cURL works) #3552

Open sunknudsen opened 3 years ago

sunknudsen commented 3 years ago

Hey guys,

Experimenting with Monero (amazing project btw)… running my own remote node over Tor (using client auth).

When I try to connect to my node on macOS running /Applications/monero-wallet-gui.app/Contents/MacOS/monero-wallet-gui --disable-check-updates --socks5-proxy 127.0.0.1:9050 (using advanced mode configuring onion address and port in settings), following error is thrown and connection fails.

2021-06-10 20:27:18.620 E error: resolve: Host not found (authoritative)

That said, running following on same computer works which appears to reveal issue is related to Monero app vs my node or network (onion address has been redacted).

$ curl --socks5-hostname 127.0.0.1:9050 --digest -X POST http://***.onion:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_info"}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    …
  }
}

I am also able to connect to my node on Tails.

Any ideas what I might be doing wrong?

Thanks for helping out!

rating89us commented 3 years ago

Monero GUI doesn't include a bundled Tor, so you need to start standalone Tor (use SOCKS5 port 9050) or Tor Browser (use SOCK5 port 9150) before trying to connect to your .onion remote node.