Post
Topic
Board Bitcoin Technical Support
Merits 2 from 2 users
Re: Location of .onion address on windows machine?
by
Cricktor
on 28/04/2024, 17:15:59 UTC
⭐ Merited by hugeblack (1) ,ABCbits (1)
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)
...
After some lines and
Code:
...
2024-04-20T11:06:52Z init message: Done loading
...
you might find a line like this near the above "init message: Done loading" entry
Code:
2024-04-20T11:06:52Z [tor] Got service ID <redacted to preserve privacy>, advertising service <redacted to preserve privacy>.onion:8333
You should see there the onion address of your node.

You can also execute in a command line window
Code:
bitcoin-cli.exe getnetworkinfo
or
Code:
getnetworkinfo
in the console tab of the Bitcoin Core GUI window. The mostly last record for "localaddresses" also contains your local .onion address.