How to connect
This page is a basic guide with information about Datacenter Proxies and how to connect to them.
Endpoint and Port Information
To connect to the evomi proxy system with Datacenter proxies, you need to use the following endpoint and port configurations:
Proxy Protocol | Datacenter Endpoint | Datacenter Port |
---|---|---|
HTTP Proxy | dcp.evomi.com | 2000 |
HTTPs Proxy | dcp.evomi.com | 2001 |
SOCKS5 Proxy | dcp.evomi.com | 2002 |
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.
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:
curl -x http://testuser:[email protected]:2000 https://ip.evomi.com/s
Python
To connect using Python with the requests
library, follow these steps:
-
Install the
requests
library if you haven’t already:pip install requests
-
Use the following script:
import requests proxies = { "http": "http://testuser:[email protected]:2000", "https": "http://testuser:[email protected]:2000", } 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:
-
Install the
node-fetch
andhttp-proxy-agent
packages if you haven’t already:npm install node-fetch http-proxy-agent
-
Use the following script:
const fetch = require('node-fetch'); const HttpsProxyAgent = require('https-proxy-agent'); const proxyUrl = 'http://testuser:[email protected]:2000'; 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));