Is it possible to connect to a private relay over Tor? I've got a relay setup, but none of the clients I've tried seem to connect through ws: address.
#asknostr
Is it possible to connect to a private relay over Tor? I've got a relay setup, but none of the clients I've tried seem to connect through ws: address.
#asknostr
Ensure that the Tor configuration file (usually torrc) is set up to allow connections to the private relay. You may need to specify the address and port of the relay in the configuration.
1. Can you reach the relay through another Tor client? For instance, on Linux and Windows:
$ curl -x socks5h://127.0.0.1:9150 -H "Content-type: text/json+nostr" -Lv RELAY_URL
(on windows, make that `curl.exe` instead.)
If you get a response, good! Onward. If you don't, make sure that:
- You have a hidden service configured in torrc.
- Your hidden service points to your relay.
- Is it using HTTP or HTTPS? Depending on what, it is either ws: or wss: respectively - the additional "s" means "secure". Think of it like copying the stray S from HTTPS.
2. Make sure your Nostr client uses tor.
Amethyst can do that on Android, and on other platforms, just use the Tor browser, or link your standard browser to use the Tor proxy. Only then can you also access tor relays, respectively.
Thanks for the advice. I was able to get it configured and found a client (Iris) that worked within Tor. Have a great weekend!