# Residential Proxies How to Connect

Source: https://docs.evomi.com/proxy-instructions/residential-proxies/how-to-connect/

This page is a basic guide with information about Residential Proxies and how to connect to them.

## Endpoint and Port Information

To connect to the evomi proxy system with residential proxies, you need to use the following endpoint and port configurations:

| Proxy Protocol   | Residential Endpoint      | Residential Port   |
|--------------|---------------|--------|
| HTTP Proxy   | rp.evomi.com  | 1000  |
| HTTPs Proxy  | rp.evomi-proxy.com  | 1001  |
| SOCKS5 Proxy | rp.evomi.com  | 1002  |

The HTTPs endpoint uses the `evomi-proxy.com` domain — that is the hostname our TLS certificate covers, and it reaches the same servers. A client that verifies certificates will reject `rp.evomi.com` on port 1001.

The difference between the HTTP and HTTPs proxies is that the HTTPs proxy is encrypted, while the HTTP proxy is not. The SOCKS5 proxy is a more advanced protocol that can handle more types of traffic.

The HTTP protocol works for HTTPs requests, you do not need to use the HTTPs protocol for HTTPs requests. The HTTPs protocol is only necessary if you need to connect to a secure HTTPs server and is generally slower than the HTTP protocol.

Please note that depending on your protocol, you will need to use the correct port number.

Every residential proxy request has a minimum billed traffic consumption of 512 bytes. If a request consumes less than 512 bytes, it still deducts 512 bytes from your balance. At $0.49 per GB, the Core Residential rate on the 100 GB plan, that minimum is about $0.00000025088 per request.

## Basic Connection Instructions

Here are step-by-step instructions to help you connect using different programming languages and tools.

### CURL
To connect using CURL, use the following command format:

```bash
curl -x http://rp.evomi.com:1000 -U testuser:testpassword https://ip.evomi.com/s
```

### Python
To connect using Python with the `requests` library, follow these steps:

1. Install the `requests` library if you haven't already:

    ```bash
    pip install requests
    ```

2. Use the following script:

    ```python
    import requests

    proxy_pass = "testpassword"
    proxy_url = f"http://testuser:{proxy_pass}@rp.evomi.com:1000"

    proxies = {
        "http": proxy_url,
        "https": proxy_url,
    }

    response = requests.get("https://ip.evomi.com/s", proxies=proxies)
    print(response.text)
    ```

### JavaScript
To connect using JavaScript, particularly with Node.js, follow these steps:

1. Install the `node-fetch` and `http-proxy-agent` packages if you haven't already:

    ```bash
    npm install node-fetch http-proxy-agent
    ```

2. Use the following script:

    ```javascript
    const fetch = require('node-fetch');
    const HttpsProxyAgent = require('https-proxy-agent');

    const proxyPass = 'testpassword';
    const proxyUrl = `http://testuser:${proxyPass}@rp.evomi.com:1000`;
    const agent = new HttpsProxyAgent(proxyUrl);

    fetch('https://ip.evomi.com/s', { agent })
        .then(res => res.text())
        .then(body => console.log(body))
        .catch(err => console.error('Error:', err));
    ```

  Note that you can get an easy to use interface to configure this for you, using our [Proxy Generator](https://docs.evomi.com/proxy-instructions/proxy-generator/).
