# Address, ports and protocols

> Addresses, HTTP port 823, SOCKS5 port 824, proxy formats and connection examples in curl, Python, Node.js and PHP.
> Page: https://rh7proxys.com/en/docs/conexao · Index: https://rh7proxys.com/llms.txt

Every RH7 proxy uses the same address and the same ports. What changes from one proxy to another is the username and password.

## Addresses

| Address | When to use |
|---|---|
| `auto-rh7proxys.com` | Main. Use this one by default. |
| `ip-rh7proxys.com` | Alternative, if the main one is slow on your network. |
| `start.rh7proxys.com` | Third entry option. |

All three lead to the same network. Pick the one with the lowest latency for you. The panel shows the current latency.

## Ports

| Port | Protocol | Behavior |
|---|---|---|
| 823 | HTTP and HTTPS | Rotating IP |
| 824 | SOCKS5 | Rotating IP |
| 10000 to 19999 | HTTP | Sticky session: each port holds one IP |

Use HTTP (823) in browsers, extensions and most programs. Use SOCKS5 (824) when the program asks for that protocol or when the traffic is not web. Rotativa CPA works only over HTTP. Sticky session ports are explained in [Rotating or fixed IP](https://rh7proxys.com/en/docs/sessao-fixa).

## Accepted formats

Each program asks for the proxy in its own way. All of these represent the same proxy:

```text
auto-rh7proxys.com:823:username:password
username:password@auto-rh7proxys.com:823
http://username:password@auto-rh7proxys.com:823
socks5://username:password@auto-rh7proxys.com:824
```

In the panel, the copy button already offers these formats. Through the API, use `GET /v1/proxies/{id}/credentials?format=...` (see [Manage proxies](https://rh7proxys.com/en/docs/api-proxies)).

## Examples

### curl

```bash
# HTTP
curl -x http://username:password@auto-rh7proxys.com:823 https://api.ipify.org

# SOCKS5 (the "h" sends DNS through the proxy)
curl -x socks5h://username:password@auto-rh7proxys.com:824 https://api.ipify.org
```

### Python (requests)

```python
import requests

proxy = "http://username:password@auto-rh7proxys.com:823"
r = requests.get("https://api.ipify.org", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)
```

### Node.js (undici)

```js
import { fetch, ProxyAgent } from "undici";

const dispatcher = new ProxyAgent("http://username:password@auto-rh7proxys.com:823");
const res = await fetch("https://api.ipify.org", { dispatcher });
console.log(await res.text());
```

### PHP (cURL)

```php
$ch = curl_init("https://api.ipify.org");
curl_setopt($ch, CURLOPT_PROXY, "auto-rh7proxys.com:823");
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "username:password");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);
```

## Concurrent connections

You can open several connections at the same time with the same proxy. On a rotating proxy, each new connection can exit through a different IP. Usage is counted in GB, adding up what comes in and what goes out.
