> ## 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.

# Protocols

> Residential Proxy Support for HTTP, HTTPS, and SOCKS5 Formats

The connection protocol (`HTTP`, `HTTPS`, or `SOCKS5`) can be specified in the tool or program you're using to connect with the proxies.

In the following `cURL` examples, the protocol is specified at the beginning of the proxy line, just replace the `username` and `password` with your proxy user credentials, and run them in your Terminal or Command Prompt.

## HTTP

Here is a `cURL` example for the `HTTP` protocol:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -x "http://username:password@gate.decodo.com:7000" "https://ip.decodo.com/json"
  ```
</CodeGroup>

## HTTPS

Using this protocol will **encrypt** your connection. Here is a `cURL` example for the `HTTPS` protocol:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -x "https://username:password@gate.decodo.com:7000" "https://ip.decodo.com/json"
  ```
</CodeGroup>

## SOCKS5

Here is a `cURL` command for the `SOCKS5` protocol:

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -x "socks5h://user-username-session-1:password@gate.decodo.com:7000" "https://ip.decodo.com/json"
  ```
</CodeGroup>

<Note>
  The letter `h` in `socks5h://` means that the hostname will be resolved on the proxy side, and not locally.
</Note>

<Warning>
  ### Country Endpoint Support

  Note that you have to use the `gate.decodo.com` endpoint to use `SOCKS5`. Country endpoints like `us.decodo.com` will not work!

  You can instead target specific locations by specifying the location using [**Advanced Parameters**](https://help.decodo.com/docs/residential-proxy-advanced-parameters#/). For example, this `cURL` command targets the US location:

  ```shellscript theme={null}
  curl -U "user-username-country-us:password" -x "socks5h://gate.decodo.com:7000" "https://ip.decodo.com/json"
  ```
</Warning>

<Warning>
  ### Tool Support

  * To get a sticky `SOCKS5` proxy in a **tool**, you must use a `session` parameter, otherwise, the proxy will always rotate even with a `sessionduration` parameter.
  * The **session ID** can be defined by any string of your choice. More on that can be found on the [**Advanced Parameters**](https://help.decodo.com/docs/residential-proxy-advanced-parameters) page in the **Sticky session** section.
</Warning>

***

## Ports

Easily understand which ports you can access when using our proxies, including details on the default accessible ports, restrictions, and how to request a port to be unblocked.

### Accessible Ports

With the **residential** and **mobile** proxies, the following ports are accessible by default:

* `80`
* `443`

### Restricted Ports

<Warning>
  Restricted ports include `SMTP`, `IMAP`, and other **mailing** and **messaging**-related ports.
</Warning>

### Port Unblocking Process

To request a port unblock, contact us at [**compliance@decodo.com**](mailto:compliance@decodo.com) and provide the following information:

* The **port** that needs to be unblocked.
* Describe the **use case** with that port – **be as specific as possible**.
* Provide the **target** that you’ll access using the mentioned port.

For added security, particularly for requests involving sensitive or high-risk ports, we’ll require the user to provide **company details** or complete ID verification to complete the unblocking request.

<Note>
  Please note that certain ports, such as those categorized as restricted, cannot be unblocked. Although the specific ports aren't mentioned in this article, your request to unblock them may be denied.
</Note>

***

<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>
