Choosing and Changing Your Proxy Locations

Where each Node4 product sets its country, how to choose US, Italy or Spain addresses at checkout, and how to ask support to move proxies you already have.

Where you choose a location depends on the product. On the static datacenter plans the country belongs to each address, so you choose it at checkout (Premium Datacenter and Shared Datacenter). The gateway products choose an exit for every connection, so you choose the country in the username and can change it whenever you like.

ProductWhere the location is setLocationsTo change it
Premium DatacenterThe Country picker at checkoutUnited States, Italy, Spain, or Any countryOpen a ticket
Shared DatacenterThe Country picker at checkoutUnited States, Italy, Spain, or Italy + SpainOpen a ticket
Rotating Datacenter and Rotating Unmetered-country- in the usernameUnited States, Italy, SpainEdit the username
Residential-country-, -state- and -city- in the usernameThe residential coverage listEdit the username

On every datacenter product, the US addresses are on the US East Coast. For lower latency in Europe, choose Italy or Spain.

You need a Node4 account for every option here. For the gateway products you also need your proxy username and password, which are on the Proxies page and under Auth & IP Access.

Premium Datacenter: pick the country at checkout

When your cart holds a Premium Datacenter plan, the checkout shows a Country choice under the plan:

  1. Leave United States selected for US addresses only. It is the default.
  2. Choose Italy or Spain for addresses in that country only.
  3. Choose Any country if any of the three will do.

A grayed-out country is not available for that plan size right now. If a country becomes unavailable between choosing it and paying, checkout says so and asks you to choose another, before anything is charged.

The country stays with the plan:

  • Renewal keeps the same addresses.
  • Refresh IP on the Proxies page (or the API) gives you a replacement address, and the row shows its country. If a replacement is not in the country you need, open a ticket.
  • A paused plan that you resume after the payment hold comes back in the country it had before.

If you bought with Any country and want everything in one country, open a ticket and say which country. Support moves the addresses; your credential and port stay the same, so all you change in your tool is the address list.

Shared Datacenter: pick the country at checkout

When your cart holds a Shared Datacenter plan, the checkout shows a Country choice under the plan:

  1. Leave United States selected for US addresses. It is the default.
  2. Choose Italy or Spain for addresses in that country only.
  3. Choose Italy + Spain for an even split between the two. With an odd number of addresses, Italy gets the extra one.

Italy and Spain are sold at the same price as the United States. A grayed-out choice is not available for that plan size right now, and checkout refuses a choice that runs out before you pay, before anything is charged. Renewal keeps the same addresses, and a paused plan that you resume comes back in the country it had. Refresh IP looks for a replacement in the same country first.

Each row on the Proxies page shows its country. When a plan holds addresses in more than one country, the country chips above the list filter it.

To move a shared plan you already have, or to ask for a split other than even, open a ticket with the split you want. Once support has moved the addresses, download the list again: the addresses you no longer hold are refused, so a tool still using the old list sees errors on those rows.

Rotating: add the country to the username

Rotating Datacenter and Rotating Unmetered pick a fresh exit for each connection. Append -country- and a two-letter code to your username to keep those exits in one country:

# United States exits, Rotating Datacenter over HTTP
curl -x "http://USERNAME-country-us:PASSWORD@gw-rotating_datacenter.node4.io:8083" https://node4.io/api/tools/ip

# Italian exits over SOCKS5
curl -x "socks5h://USERNAME-country-it:PASSWORD@gw-rotating_datacenter.node4.io:1083" https://node4.io/api/tools/ip

The response names the exit address and the country it geolocates to. Rotating Unmetered takes the same username on gw-rotating_unmetered.node4.io, at the ports shown for it on the Proxies page; a targeted connection counts toward its connection limit like any other.

What the rotating gateways accept:

  • Countries: us, it and es. A country with no exits is refused with a 502 and a plain-text reason. It is never served from another country, so retrying will not help; change the code or drop the segment.
  • Country only. State, city and network targeting are residential features. A -city- segment is not used on rotating, so a US city still gets any US exit.
  • Sessions combine with it. USERNAME-country-es-session-job42 holds one Spanish exit for up to 30 minutes; sticky vs rotating sessions explains the session rules.
  • Spell keys exactly, in the documented order: username, then -country-xx, then -session-ID. A typo is not always refused; the table below shows what each mistake does.

Over SOCKS5 a refused country arrives as a "host unreachable" reply, because SOCKS5 has no room for a message. On the rotating gateways, a whitelisted server keeps its country by sending the targeted username with an empty password; IP whitelisting best practices covers each product.

If you build strings in code, the API returns them ready-made for a country: see building proxy strings with the gateway API.

When a typo changes the request

On rotating gateways, a typo can change the request instead of rejecting it. Use the documented order and check the exit after editing the username.

UsernameHow the gateway reads itExpected outcome
USERNAME-contry-itThe misspelled key stays part of the username, so the login does not match407
USERNAME-country-us-sesion-xThe country code includes the misspelled option: US-SESION-X502, because no country by that name has exits
USERNAME-session-abc-contry-itA session called abc-contry-it, and no countryAn untargeted exit, with no error
USERNAME-country-us-city-bostonCountry US; the city is read but not used on rotatingA US exit, not necessarily in Boston

Residential reads the username differently. A misspelled key is a 400 that names it, with an X-Node4-Targeting: unknown-key header, wherever it sits; a malformed value for a known key is a 407. Over SOCKS5 both arrive as a refused login. Residential targeting has the full grammar.

A 407 is not always a typo: correct credentials can also get one while the gateway cannot reach its authentication service, or when one source address sends more logins than the gateway's per-source limits allow. Fixing 407 errors walks through those checks.

Residential: country, state and city

The residential gateway accepts a country, a state, a city and a network, all in the username:

curl -x "http://USERNAME-country-us-state-tx-city-austin:PASSWORD@gw-residential.node4.io:8082" https://node4.io/api/tools/ip

Some city names exist in more than one state. Those are refused until you add the state: -country-us-city-dallas fails, while -country-us-state-tx-city-dallas works. The same applies abroad, as in -country-co-state-dc-city-bogota for Bogota, Colombia. The full grammar, the coverage list and the targeting builder on the Proxies page are in residential targeting.

Check where an exit is

Two checks tell you whether you got the country you asked for.

The X-Node4-Country header. The rotating gateways report what happened to your country segment: honored (the exit is in that country), unavailable (refused, no exits there) or none (no country segment was read). You can read it on plain-HTTP responses and on every refusal:

curl -s -o /dev/null -D - -x "http://USERNAME-country-it:PASSWORD@gw-rotating_datacenter.node4.io:8083" http://example.com | grep -i x-node4

A successful HTTPS tunnel does not carry it, because the gateway answers the CONNECT before the destination does, and SOCKS5 carries no headers at all. For those, use the second check.

An IP-check service. Request https://node4.io/api/tools/ip through the proxy, as in the examples above, or open What Is My IP in a browser configured with the proxy. Geolocation databases sometimes disagree about an address, especially a recently moved one, so if a target places you in the wrong country, compare two services; why proxy locations differ between lookups explains the causes.

Ask support to change locations

Open a ticket from Support in the dashboard. Support, sales and billing run 24/7, and you get a reply within 12 hours. Include:

  • the plan (Premium Datacenter or Shared Datacenter) and its order or subscription;
  • the country you want, or the split between countries;
  • which addresses to move, or "all of them".

Your credential, the ports and the hostnames do not change when addresses move. Re-copy the address list from the Proxies page and replace the old one in your tool. If the location you want is outside the United States, Italy and Spain, the datacenter products cannot provide it; Residential proxies cover far more countries, and choosing the right proxy type compares the options.

Product details and current plans: datacenter proxies, shared proxies, rotating proxies and pricing.