Change IP Address to any Country Specific IP Address with Tor

Mayank Gupta

16 Oct 2010
Change Your IP address

Change your IP address to any country specific IP address to access country restricted websites, services that are not yet available in your country or just to anonymise your IP address. Whatever the reason may be Tor - that maintains your anonymity online also lets you easily change your IP address to any country specific IP address. With Tor, you no longer need to change your router settings, etc to anonymise your IP or change your IP address to any country specific IP address. If you already have Tor installed, and you are experiencing problems with Tor's speed, because of Tor's vast network, you can easily restrict Tor to use exit nodes (or IP Addresses) near your country or exit nodes that serve at higher speeds.
Here are the steps that you need to follow to change your IP address to any country specific IP address -

Step 1 - Download Tor -

If you have already installed Tor, you can skip this step. The first step is to download Tor the famous anonymising software that hides your online identity.
Click Here to download Tor or Vidalia for - Microsoft Windows or for Ubuntu - Linux.
To enable and install Tor you can read the post - Install and Run Tor on Microsoft Windows or Install and Run Tor on Ubuntu or Debian Linux.

Step 2 - Select an Exit Tor Node or IP Address -

After you have successfully installed Tor, the next step is to select a Tor exit node (to know more about Tor exit node Click Here).
For a list of active and available Tor exit nodes please visit - This page.
Make sure while selecting a Tor exit node, you select a node that is in the Country ( the country with which you want yo change your IP address with or a country near your place, if you are facing speed problems.) , can server at high speeds and preferably a node with higher uptime as it is more reliable.
Once you have selected the right exit node(with the IP address of the country you need) to suit your needs, click on the name of the exit node and something like this will open -

Screen-shot -

Selected Tor Exit Node details
Selected Tor Exit Node details, Copy the fingerprint of the selected Tor exit node.

From the exit node details you need to copy the node's Fingerprint. You can select one or more Tor exit nodes (that Tor will use incase the primary exit node is not active).
For example the fingerprint for the above exit node will be -

D16BD539CCB4425767A1A9F300CB5D7BBEDDFAEF

•*• Note: There should be no white-spaces in between the fingerprint characters. It is always better to select at least three exit nodes.

Step 3 - Locate Tor's Configuration File and Edit it -

After identifying the the exit nodes, you need to force Tor to use only the exit nodes you want, that is you need to feed in their fingerprints to enable Tor to use them as exit nodes (for changing your IP address).

  • For Windows: Look for the Tor icon in the system tray (right corner of the scrren genrally). For locating the configuration file of Tor, follow this screenshot sequence. -
    Screen-shots -

    Tor Icon
    1. Double click on the Tor Icon from the windows taskbar.

    Tor configuration Panel
    2. Click on the settings option in the Tor Configuration Panel.

    Vadila Advanced Control Panel
    3. Click on the Advanced Tab and see where the configuaration file is located.

    Note the location of the Tor Config file from above, and use the system explorer to open it with any editor (like Notepad).

  • For Ubuntu - Linux: Open the terminal and then run the following command -

    sudo gedit /etc/tor/torrc

Screen-shot -

Screen shot of gedit torrc terminal command
Execute the command sudo gedit /etc/tor/torrc at the terminal.

Next, Add the following lines to the config file -

ExitNodes fingerprint1, fingerprint2, fingerprint3
StrictExitNodes 1

•*• Note: Replace fingerprint1, fingerprint2, fingerprint 3 with the fingerprints of the exit nodes(of which you want to use the IP address of, that is the node in the specif country whose IP address you want to change IP address with).
Screen-shot -

Screen shot of editing of torrc file
Edit torcc file and add the fingerprints as above.

Alternatively for a country specific IP address, that is, if you want to change your IP address with IP addresses from one or more countries (and only these) you can enter the following lines in the config file -

ExcludeNodes {be},{pl},{ca},{za},{vn},{uz},{ua},{tw},{tr},{th},{sk},{sg},{se},{sd},{sa},{ru},{ro},{pt},{ph},{pa},{nz},{np},
{no},{my},{mx},{md},{lv},{lu},{kr},{jp},{it},{ir},{il},{ie},{id},{hr},{hk},{gr},{gi},{gb},{fi},{es},{ee},{dk},{cz},{cy},{cr},{co},
{cn},{cl}, {ci},{ch},{by},{br},{bg},{au},{at},{ar},{aq},{ao}, {ae},{nl},{de},{fr}

•*• Note: From the above the country code of USA - {us} is missing. This will tell Tor that you want to change IP address with only USA based IP's or that you want it to use exit nodes only from USA. You can customize the above list according to your choice. Click here - for A list of ISO codes for all Countries.
It is advised that you should use only one of the above methods in order to avoid any conflicts.

Step 4 - Restart Your System

The last step is to restart your system. Re-starting of Tor is not advised because in some cases the changes in the cofig file do not take effect.
Thus, following the above five simple steps you can successfully change IP address with any Country Specific IP address, or boost speed of Tor by restricting it to use country specific exit nodes.

No Responses yet to Change IP Address to any Country Specific IP Address with Tor

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
You are a Human! Don't you want to prove it?