# Formatting Proxies

### NetNut Configuration

NetNut proxies offer flexible configuration options that include country, state, and city-level targeting. You can also configure sticky sessions for longer-lasting IP assignments.

#### General Format:

* **Standard Format**:\
  `host:5959:user:pass`
* **With State/City**:\
  `host:5959:user-res_sc-uk_england_manchester:pass`

  *Here, `sc-uk_england_manchester` refers to a proxy located in Manchester, England.*
* **With Country**:\
  `host:5959:user-res-any:pass`\
  \&#xNAN;*(Replace "any" with the desired country code, e.g., `us` for the United States.)*

#### Sticky Session Format:

* **Sticky Proxy Format**:\
  `host:5959:user-res-us-sid-20944387:pass`

  *In this case, `20944387` is a random 8-character session identifier.*

#### Ports:

* **HTTP**: 5959
* **SOCKS5**: 9595

***

### IPRoyal Proxy Configuration

IPRoyal allows for similar flexibility, including country- and city-level targeting, with sticky sessions customisable by time.

#### General Format:

* **Worldwide Format**:\
  `host:12321:user:pass`
* **With Country**:\
  `host:12321:user:pass_country-us`\
  \&#xNAN;*(Replace `us` with the desired country code.)*
* **With City**:\
  `host:12321:user:pass_country-us_city-asheville`\
  \&#xNAN;*(In this case, the proxy is based in Asheville, USA.)*

#### Sticky Session Format:

* **Sticky Proxy Format**:\
  `host:12321:user:pass_session-0ttVmvBb_lifetime-300m`

  *Here, `0ttVmvBb` is an 8-character random session ID, and `300m` specifies the session lifetime in minutes.*

#### Ports:

* **HTTP**: 12321
* **SOCKS5**: 32325

***

### Oxylabs Proxy Configuration

Oxylabs offers a more advanced configuration, including country, state, and city-level targeting, and even options for specific US states and cities.

#### General Format:

* **Worldwide Format**:\
  `host:7777:customer-user-cc-any:pass`
* **With Country**:\
  `host:7777:customer-user-cc-us:pass`
* **With City**:\
  `host:7777:customer-user-cc-gb-city-bristol:pass`

#### State-Level Targeting (USA Only):

* **State Targeting**:\
  `host:7777:customer-user-cc-us-st-us_alabama:pass`
* **State + City Targeting**:\
  `host:7777:customer-user-cc-us-st-us_alabama-city-birmingham:pass`

#### Sticky Session Format:

* **Sticky Proxy Format**:\
  `host:7777:customer-user-cc-us-sessid-02989489-sesstime-10:pass`

  *Here, `02989489` is a random 8-character session ID, and `10` specifies the session lifetime in minutes.*

#### Ports:

* **HTTP**: 7777
* **SOCKS5**: 8888

***

### Setting Up Proxies with Custom Subdomains

To use your own subdomain for proxy access, you need to configure DNS settings via your domain provider. Here's how to do it using Cloudflare, however the process will be similar for others:

#### Steps to Set Up a Custom Subdomain:

1. **Log into Cloudflare**:\
   Go to your Cloudflare dashboard and select your domain.
2. **Create A Records**:\
   For each subdomain (e.g., `proxy1.yourdomain.com`, `proxy2.yourdomain.com`), create an A record pointing to the IPs provided.\
   Use  the following IPs:
   * 178.156.130.77
   * 188.245.87.142
   * 5.223.43.28
3. It should now look something like this:

   <figure><img src="/files/T6dlxEUReVaLtgYRAFR8" alt=""><figcaption></figcaption></figure>
4. **Configure A Records**:
   * **Name**: Enter the desired subdomain (e.g., `proxy1` for `proxy1.yourdomain.com`).
   * **IPv4 Address**: Enter the provided IP address (e.g., `178.156.130.77`).
   * **Proxy status**: Set this to **DNS only** (do not use Cloudflare’s proxy services for this).
5. **Repeat for Additional Subdomains**:\
   Add as many A records as needed, pointing each to the provided IPs.
6. **Update Your Proxy Configuration**:\
   Replace the `host` in the proxy format with your custom subdomain. For example:
   * `proxy1.yourdomain.com:5959:user:pass`

#### Example:

* Instead of using the default host, you would now use your custom subdomain:
  * **NetNut Format**:\
    `proxy1.yourdomain.com:5959:user-res-any:pass`
  * **IPRoyal Format**:\
    `proxy2.yourdomain.com:12321:user:pass_country-us_city-asheville`
  * **Oxylabs Format**:\
    `proxy3.yourdomain.com:7777:customer-user-cc-us:pass`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flashproxy.io/getting-started/formatting-proxies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
