> ## Documentation Index
> Fetch the complete documentation index at: https://help.decodo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User:pass Requests

> Datacenter Pay/GB Proxy Advanced Parameter Usage via User:Pass Authentication

When using **backconnect**, the endpoint proxy **server** remains the same: `dc.decodo.com`

For **static** connection sessions, the proxy **port** is any number within the following range: `10001`-`63000`

For **rotating** connection sessions, the proxy **port** is: `10000`

The `cURL` code will be shown in the examples below. You may try them out on your machine.

<Note>
  ### City, State and ASN parameter

  * The user must choose between city targeting, state targeting and ASN targeting, as they can’t be used simultaneously.
</Note>

***

## `Username:Password`

<Note>
  ### Username And Password Parameter

  To use a proxy username and password, please be aware that your username line will **always** start with `user-` followed by your proxy username.
</Note>

An example of a **rotating proxy** using a proxy username and password to return you an IP address from a random location:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

Replace `username` and `password` with your credentials and run the command in your **Terminal** or **Command Prompt**.

You will see the IP address that has been assigned to you for this particular request, as well as the information on that IP address, including its location, in the output.

***

## Direct IP Targeting

It's possible to target specific IP addresses from the shared DC proxy pool. However, we don't provide a list of specific IP addresses for connection.

Example of a **static proxy** that returns a **specific IP address**. The proxy IP remains unspecified:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-ip-x.x.x.x:password" -x "dc.decodo.com:10001" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

***

## Country Targeting

If IPs from a specific country are needed, then modify the username to include the `country-xx` parameter. Use two-letter Alpha-2 codes. There is a full list of them [**here**](https://www.iban.com/country-codes).

[**Here**](https://help.decodo.com/docs/datacenter-pay-per-gb-proxy-locations) is the full list of available locations with DC Pay/GB proxies.

If you wish to generate an **endpoint list**, which you can then export, or a **request example** with a country, navigate to the [**Datacenter → Datacenter Pay/GB → Proxy setup**](https://dashboard.decodo.com/shared-dc-gb-proxies/proxy-setup) dashboard page. Click on the **Location** field, and in the dropdown menu, feel free to select one of the countries.

<img src="https://mintcdn.com/decodo/ZzFFt4k1AMcE-z1r/images/docs/7f8d1b1f1632182f3c0c2b064d3c9a0ba7b0f2e6a7aa40cbe2b5621c146721b9-Group_427323608.png?fit=max&auto=format&n=ZzFFt4k1AMcE-z1r&q=85&s=a96889daf8793db75503a37dc6123edb" className="mx-auto" style={{ width:"80%" }} width="2472" height="2704" data-path="images/docs/7f8d1b1f1632182f3c0c2b064d3c9a0ba7b0f2e6a7aa40cbe2b5621c146721b9-Group_427323608.png" />

Example of a **rotating proxy** that returns IPs from the US:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-country-us:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

Example of a **static proxy** that returns an IP from Italy:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-country-it:password" -x "dc.decodo.com:10001" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

***

## City Targeting

Add a `city-xxxx` parameter to the username to specify a city within a country.

It's used in conjunction with the `country` parameter and is not standalone.

If the city name consists of multiple words, then use underscores.

Example of a **rotating proxy** that returns IPs from New York City:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-country-us-city-new_york:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

Example of a **rotating proxy** that returns IPs from Rome:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-country-it-city-rome:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

***

## State Targeting

Adding the `state-xxxxx` to your username will allow for state targeting. Only US states are currently supported.

An example of a **rotating proxy** that returns IPs from the state of New York:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-country-us-state-new_york:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

**Rotating** IPs from California:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-country-us-state-california:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

***

## ASN Targeting

Adding the `asn` parameter will allow you to target IPs from a specific carrier.

* You must choose between `city`, `state` targeting and `asn `targeting, as they can’t be used simultaneously.
  * The same logic would apply to the `continent` and `country` parameters.
* An example of a proxy with the **AT\&T Mobility LLC** `asn` number with a rotating session:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -U "user-username-asn-20057:password" -x "dc.decodo.com:10000" "https://ip.decodo.com/json?provider=IPinfo"
  ```
</CodeGroup>

<Columns cols={2}>
  <Card title="Support" href="https://direct.lc.chat/12092754" cta="Let's chat!">
    Need help or just want to say hello? Our support is available 24/7. \
    You can also reach us anytime via email at [support@decodo.com](mailto:support@decodo.com).
  </Card>

  <Card title="Feedback" href="mailto:feedback@decodo.com" cta="Share feedback">
    Can't find what you're looking for? Request an article! \
    Have feedback? Share your thoughts on how we can improve.
  </Card>
</Columns>
