Change IP Address – How to Change IP Address Provided by Tor Using Terminal

command lineipservicestor

I have the Tor service, and I want to use the terminal to change the IP address which Tor gives me. In other words: How do I request a new IP address from Tor on the command line?

Best Answer

For tor daemon running on Ubuntu, first try this:

killall -HUP tor

If that does not work, enable the control port in your torrc file.

Then, set a password for the control port with tor --hash-password password

Open a telnet connection to the control port and issue the NEWNYM command:

printf 'AUTHENTICATE "password"\r\nSIGNAL NEWNYM\r\n' | nc 127.0.0.1 9051

sources: