Is a virtual private server or virtual machine required to get your webserver to show your .onion correctly. I cannot get my onion viewable and this is the only thing I havent tried. It makes no nense to me why I would need them but most guides out there have a vps...

  • Ive tried configging the torrc several times. Why is a localhost ip required? Once again Im not understanding this stuff. Its way different than a normal plain webserver. Ive messed with apache and nginx both in linux and it just wont connect to the hidden service. But you can view my page through my public ip so I know its getting out there. Do I put my public ip in the localhost ip spot? Why do you need a localhost ip put anywhere?
    – Omnicide
    Aug 4, 2015 at 11:15

1 Answer 1


Neither a VPS or a VM is required to have a working hidden service. You need to configure your torrc file setting up:

HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80

In the first row you have to setup the directory that contain the files of your HS, and the second row obviously setup the port of your HD. Once you setted up, restart Tor. Then you should view two file in your HiddenServiceDir: hostname (contains your .onion address), private_key (don't share this one with someone). The reason of using VM or VPS, is a security reason. Usually you use Whonix like VM because is dedicated for Tor (server side), or you can use a VPS for bandwidth reason. So, to run a HS you require of the correct configuration of your torrc file, this is a must! Without this you won't get a working HS. Is your choise to use a VM or a VPS, I suggest you to use a VPS with a VM running Whonix.

PS: what did you tried?

  • 1
    Also, make sure the permissions of the folder specified in the torrc are correct, else Tor will not use it or refuse to start.
    – 19h
    Aug 6, 2015 at 8:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .