This question already has an answer here:
I want to set up a Hidden Service on OSX and I've been following these instructions on the Tor site: https://www.torproject.org/docs/tor-hidden-service.html.en#two. I was able to do step 1 and set up a localhost server on my computer. I then downloaded & installed xcode, macports and tor browser like it says in step 2. My problem is that it says to edit the "torrc" file and paste the text in step 2 (which is something like this:
HiddenServiceDir /opt/local/var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80
but then the version of Tor (6.0.1) for my OSX (Yosemite) doesn't have a "torrc" file, only a "torrc-defaults" file—which doesn't contain a section for Hidden Services—and when I try to alter it by pasting the above code and re-opening Tor, I get an error message and Tor won't open. Anyone have suggestions as to what I'm getting wrong here? Also, I have a Dynamic IP address, will this cause problems setting up a Hidden Service? Thanks in advance for any help!