Skip to content
Advertisement

different ips in different terminal with torify

how can we get a different tor circuit with torify command in a separate terminal window? Specifically, if I type a command in a terminal 1 window

JavaScript

I receive my IP address in response.

but if I try it in another terminal window simultaneously I get the same IP which is a normal behavior.

what I am trying to achieve is to use a different config file in every new terminal window so as to get a different IP address in a different terminal window.

Advertisement

Answer

Use the -i (--isolate) option or --user and --pass to get stream isolation.

From man 1 torsocks:

JavaScript

Example:

JavaScript

Then, using a different set of credentials will get you a different circuit and exit relay:

JavaScript

You can achieve the same using Tor’s socks proxy directly with curl, and specify a unique proxy username/password combination to get stream isolation as well.

Example:

JavaScript

Then, using a different set of credentials will get you a different circuit and exit relay:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement