2

I am running Tor on Debian via SSH (I do not have GUI).

I am making applications run inside Tor using the torify prefix.

Is there a quick way to get a new IP address?

user7456
  • 21
  • 2
  • Sending SIGHUP should get you a new identity. If you have arm installed press x twice for a new identity. –  May 27 '15 at 20:11

3 Answers3

1

You can issue the NEWNYM command via the control port. The STEM documentation has a good example:

from stem import Signal
from stem.control import Controller

with Controller.from_port(port = 9051) as controller:
  controller.authenticate()
  controller.signal(Signal.NEWNYM)
Lizbeth
  • 1,274
  • 6
  • 22
0

You could just restart the service in Linux as well...

service tor reload

buycanna.io
  • 141
  • 1
0
printf "AUTHENTICATE \"your_password\"\r\nSIGNAL NEWNYM\r\n" | nc 127.0.0.1 9051