How do I get the external IP address of the current Tor exit node (the one which is in use) without using external services/websites (through curl
or otherwise) but only through the Tor control port functionality (using bash or python3).
NOTE: I have been looking for an answer to this question and found this one (which lists all exit nodes) and this one (which does not give the IP address of the current exit node but of some other node). Other answers suggest using external services through curl
or otherwise which is not what I am looking for.
I am using GNU/Linux.