Is there anyway to print out the IP address that is generated by TOR, to ensure that it is not using my IP address?
Here is my code:
from stem import Signal
from stem.control import Controller
def tor_connection():
with Controller.from_port(port=9051) as controller:
controller.authenticate(password='password')
controller.signal(Signal.NEWNYM)
time.sleep(controller.get_newnym_wait())
If there is a way to print out the IP address that is generated by TOR how would I write that in?