Title: Location of .onion address on windows machine? Post by: Carbonform on April 28, 2024, 03:02:25 PM Noob here, running full node on windows regrettably and just managed to run it through Tor hidden service albeit 0 incoming connections 10 outbound
Problem is I have no router access so I wanted to connect to my node via specter however I cant find it for the life of me as all info online is for different linux distros Title: Re: Location of .onion address on windows machine? Post by: Cricktor on April 28, 2024, 05:15:59 PM Have a look into the debug.log file (the standard location is in the data directory of Bitcoin Core which on Windows should be %APPDATA%\Bitcoin\). When the node starts the log entries start off with lines like:
Code: 2024-04-20T10:33:38Z Bitcoin Core version v26.0.0 (release build) Code: ... Code: 2024-04-20T11:06:52Z [tor] Got service ID <redacted to preserve privacy>, advertising service <redacted to preserve privacy>.onion:8333 You can also execute in a command line window bitcoin-cli.exe getnetworkinfo or getnetworkinfo in the console tab of the Bitcoin Core GUI window. The mostly last record of the above command's output for "localaddresses" also contains your local .onion address. Title: Re: Location of .onion address on windows machine? Post by: Carbonform on April 29, 2024, 07:20:25 AM Have a look into the debug.log file (the standard location is in the data directory of Bitcoin Core which on Windows should be %APPDATA%\Bitcoin\). When the node starts the log entries start off with lines like: Code: 2024-04-20T10:33:38Z Bitcoin Core version v26.0.0 (release build) Code: ... Code: 2024-04-20T11:06:52Z [tor] Got service ID <redacted to preserve privacy>, advertising service <redacted to preserve privacy>.onion:8333 You can also execute in a command line window bitcoin-cli.exe getnetworkinfo or getnetworkinfo in the console tab of the Bitcoin Core GUI window. The mostly last record of the above command's output for "localaddresses" also contains your local .onion address. Appreciate the reply sir but Ive tried all that. Here is my entire node start from debug Code: 2024-04-29T06:46:08Z Bitcoin Core version v25.0.0 (release build) Code:  I tried Code: bitcoin-qt.exe getnetworkinfo Here is my peers window showing onion outbound connections https://talkimg.com/images/2024/04/29/rGtb3.png Anyone got any ideas why my tor hidden service is really hidden? ??? :D Title: Re: Location of .onion address on windows machine? Post by: Cricktor on April 29, 2024, 07:04:05 PM Code: 2024-04-29T06:46:08Z GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely…" I don't run Bitcoin Core in Windows, I run my Core in Linux and not with the GUI. Unfortunately I can't tell you if the Windows version does or doesn't log the node's hidden service onion address. My Linux version does and I don't have a special debug log setting in my bitcoin.conf file, except for Code: # Logging Your setup only allows connections via tor (same as mine) and all your peers have indeed only onion addresses. So, that part is working properly. What did you install for Tor? Maybe you can find there some log entries indicating the onion address of your node? I'm not sure if the reason could be that your Core can't properly communicate via the torcontrol. A log entry that torcontrol thread started is in your debul.log. Check if you have your Tor properly configured for Windows environment (can't help here much, but there are certainly thread on the topic Tor setup on Windows in this forum, too). I tried That's not what I wrote in my post:Code: bitcoin-qt.exe getnetworkinfo Code: bitcoin-cli.exe getnetworkinfo Anyway, running in Console window or command line should give same result and in yours "localaddresses" is empty for whatever reason. In my /etc/tor/torrc I have the following settings: Code: ControlPort 9051 My Bitcoin Core doesn't use the deprecated settings rpcuser=..., rpcpassword=... or rpcauth=..., instead cookie file authentication is active. Title: Re: Location of .onion address on windows machine? Post by: nc50lc on April 30, 2024, 04:22:29 AM Anyone got any ideas why my tor hidden service is really hidden? ??? :D I have Bitcoin Core in Windows, I've copied your config to reproduce the issue and the line mentioned by Cricktor shows up in the debug.log:Code: 2024-04-30T03:59:39Z Bitcoin Core version v26.0.0 (release build) I have to mention that I set the 3 lines under "Control Port" instructed in the tutorial below, without it, the onion address wont show up: Try to follow either instruction number 2 or 3 from this tutorial: github.com/bitcoin/bitcoin/blob/master/doc/tor.md (https://github.com/bitcoin/bitcoin/blob/6ef84e0503994c53f77093e7ea5951a7b0edea7a/doc/tor.md#2-automatically-create-a-bitcoin-core-onion-service) If you decided to follow number 3 instead, your onion address would be the one you set in -externalip. Title: Re: Location of .onion address on windows machine? Post by: Carbonform on April 30, 2024, 12:20:50 PM Quote You should pay attention to close your Bitcoin Core GUI gracefully via File menu and Quit, wait until it actually all closes. noted Quote I don't run Bitcoin Core in Windows, I run my Core in Linux and not with the GUI. Yeah Im kinda regretting the decision to run this node on windows as I'm not at the linux level however most of the guides out there are linux based so prob would have been easier. As a novice a lot of these guides omit steps on the expectation that you should know..which I dont Quote Your setup only allows connections via tor (same as mine) and all your peers have indeed only onion addresses. So, that part is working properly. What did you install for Tor? Maybe you can find there some log entries indicating the onion address of your node? I'm not sure if the reason could be that your Core can't properly communicate via the torcontrol. A log entry that torcontrol thread started is in your debul.log. Check if you have your Tor properly configured for Windows environment (can't help here much, but there are certainly thread on the topic Tor setup on Windows in this forum, too). All I did was copy that bitcoin.config file save and run. The node crashed so I tried looking for solutions. This guide https://miloserdov.org/?p=1839 alerted to the fact that I needed to install TOR as a service to keep it running. Soon as I did that and started bitcoin core I got oputbound running peers. I havent configured tor and I have no torrc file in the tor directory and have no idea what torcontrol is Quote That's not what I wrote in my post: bitcoin-cli.exe getnetworkinfo Yeah sorry I assumed that was the executable for linux or something cuz the only exe I have in is bitcoin\bitcoin-qt I found bitcoin-cli in the daemon folder and this is what I got Code: c:\Program Files\Bitcoin\daemon>bitcoin-cli.exe getnetworkinfo Title: Re: Location of .onion address on windows machine? Post by: Carbonform on April 30, 2024, 12:43:38 PM Quote I have to mention that I set the 3 lines under "Control Port" instructed in the tutorial below, without it, the onion address wont show up: Try to follow either instruction number 2 or 3 from this tutorial: github.com/bitcoin/bitcoin/blob/master/doc/tor.md (https://github.com/bitcoin/bitcoin/blob/6ef84e0503994c53f77093e7ea5951a7b0edea7a/doc/tor.md#2-automatically-create-a-bitcoin-core-onion-service) If you decided to follow number 3 instead, your onion address would be the one you set in -externalip. Appreciate the reply As I was telling Cricktor above I'm feeling this is a little over my head - I dont have a torrc file in my tor directory so I tried saving a torrc file there with those 3 lines. The node crashed so I deleted it again That tutorial is a hard follow. In number 2 'Cookie authentication' where is the CookieAuthFile and how do I enable read access? Number 3; I save Code: HiddenServiceDir /var/lib/tor/bitcoin-service/ Code: ./bitcoind -proxy=127.0.0.1:9050 -externalip=7zvj7a2imdgkdbg4f2dryd5rgtrn7upivr5eeij4cicjh65pooxeshid.onion -listen Title: Re: Location of .onion address on windows machine? Post by: Cricktor on April 30, 2024, 06:45:19 PM How about this guide as a starting point to setup Tor on Windows: https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service#Windows (https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service#Windows) --- I took only a quick look and didn't spot immediate problems, don't sell your car by my words. ;)
I'm pretty sure the Tor project also has a decent tutorial or how-to available. Youtube likely has a ton of tutorials for Windows, too. Title: Re: Location of .onion address on windows machine? Post by: Carbonform on May 01, 2024, 01:09:54 AM How about this guide as a starting point to setup Tor on Windows: https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service#Windows (https://en.bitcoin.it/wiki/Setting_up_a_Tor_hidden_service#Windows) --- I took only a quick look and didn't spot immediate problems, don't sell your car by my words. ;) I'm pretty sure the Tor project also has a decent tutorial or how-to available. Youtube likely has a ton of tutorials for Windows, too. my node already has tor enabled, I just dont seem to have an onion address anywhere to plug into specter to hook up to the node Title: Re: Location of .onion address on windows machine? Post by: nc50lc on May 01, 2024, 07:03:56 AM As I was telling Cricktor above I'm feeling this is a little over my head - I dont have a torrc file in my tor directory so I tried saving a torrc file there with those 3 lines. The node crashed so I deleted it again The directories in the tutorial is geared towards Linux; for Windows, use Windows folder structure.So, in number 3 (preferred for your use-case), for example. Your torrc file should have something like this if you want to save your "Bitcoin Onion Service" directory to Drive D: Code: HiddenServiceDir D:/Bitcoin-onion-service After you restart Tor, you'll see such folder in D:/ and you can find a "hostname" file containing the onion address that you need to set as --externalip. Title: Re: Location of .onion address on windows machine? Post by: Cricktor on May 01, 2024, 08:22:20 AM In addition to what nc50lc wrote, I found this:
https://superuser.com/questions/1631178/how-to-configure-tor-as-service-on-windows/1631196#1631196 (https://superuser.com/questions/1631178/how-to-configure-tor-as-service-on-windows/1631196#1631196) (my link to Bitcoin wiki alone isn't sufficient now that I took a closer look) In the directory where you installed Tor files you create a text file (without extension .txt of course) torrc which you fill with config options as indicated by nc50lc. My above link shows then how to start Tor as a Windows service and checking it's running properly. Title: Re: Location of .onion address on windows machine? Post by: Carbonform on May 03, 2024, 06:48:37 AM excellent, that worked!
Title: Re: Location of .onion address on windows machine? Post by: Cricktor on May 03, 2024, 01:54:53 PM Could you summarize what worked out for you, so other users may benefit from your final working solution?
Title: Re: Location of .onion address on windows machine? Post by: Carbonform on May 08, 2024, 03:49:33 AM The guides suggested are great and self explanatory for most ppl
I just fell into the usual normie traps; not being cmd savvy, not knowing I had to dl python to run rpcauth to get the output, not restarting tor and setting torrc as a txt file So yeah if your like me and have tor running and cant find that onion address, get that torrc file sorted as above |