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?

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

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:
| improve this answer | |

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

service tor reload

| improve this answer | |
printf "AUTHENTICATE \"your_password\"\r\nSIGNAL NEWNYM\r\n" | nc 9051
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.