General

Having Trouble Setting up .onion address

Started by doinkmart · May 10, 2025

#4708
↳ Replying to @doinkmart
Double-check `torrc` for HiddenServiceDir and HiddenServicePort.

Ensure the directory and `hostname` file have correct permissions.

Ensure the service you're hosting (e.g., web server) is listening on `127.0.0.1`.

Verify that the Tor service is running without errors.

Check firewall settings to ensure Tor and the hidden service ports are open.

Use `curl` through Tor’s SOCKS proxy to test the `.onion` address locally.

Look for errors in the Tor logs for additional clues.
#4709
↳ Replying to @doinkmart
This post would be more suitable in /d/OnionDev I think.
#4711
↳ Replying to @Octopus
Okay, I edited the 'torrc' file and switched the HiddenServicePort from the unix sock I had set up to 127.0.0.1 and I can connect via the address in the hostname file but not any of the vanity addresses. Appeciate the help!
#4712
↳ Replying to @root
Okay, I will post further questions involving building the site there instead. My bad
#4713
↳ Replying to @doinkmart
Tor Browser is very easy to use but setting up a Tor onion service is very difficult. I too failed.

I use I2P since its very easy to setup Java I2P on a standard Ubuntu 22.04 LTS cloud computer. No experience needed.

I2P automatically runs a web server on 127.0.0.1:7658 and you will never be doxxed or hacked as its implementation is secure.

If only the venerable tforum Pirate Roberts used I2P, then, FBI would never have doxxed him.
#4714
↳ Replying to @doinkmart
It’s essential that the vanity address’s private key and the .onion address in your torrc file match the ones generated in your HiddenServiceDir. Tor needs to use the exact same private key for the vanity address to work, and there’s no room for mismatch.

The private key for your vanity address should be inside the HiddenServiceDir (usually a file called private_key).

The hostname file in the HiddenServiceDir will contain the actual .onion address Tor generates, so check if the vanity .onion address matches what's in this file.

If you're manually authorizing the vanity address, you need to ensure that your custom .onion address is set up correctly in torrc and matches the generated address.

Perhaps the vanity address might not be set up correctly... you may need to regenerate it.

Members-only continuation

This discussion contains more posts.

Create an account or sign in to continue reading the full conversation. 1 additional post awaits inside.

Create an accountSign in