Dashboard
Products / Datacenter Proxies

Datacenter Proxies

Dedicated datacenter IPs, assigned only to you and delivered as a list. Each IP has its own port. Fast and cost-efficient.

i

Your Datacenter proxies come as a list of dedicated IPs. Each IP has its own port on dc.crawlhub.ai. Find your list and credentials in the Datacenter section of the dashboard.

Your proxy list

Every line is one dedicated IP. The port picks the IP; the username and password are the same for all lines.

Datacenter proxy listSample: showing 6 IPs
#Proxy entryExit IPCountry

Connection details

SettingValue
Hostnamedc.crawlhub.ai
PortsOne per IP, from your list (e.g. 8001, 8002 …)
Proxy schemehttp:// (or https:// to encrypt your login to the gateway)
Usernamecrh_… from the dashboard
PasswordFrom the dashboard. Same for every IP in your list.
TargetsPublic http:// and https:// sites on ports 80 and 443

Basic query

Send a request through the first IP in your list (port 8001). Replace the port, crh_USERNAME and PASSWORD with your values.

curl -x http://dc.crawlhub.ai:8001 \
  -U "crh_USERNAME:PASSWORD" \
  https://ipinfo.io/json
import requests

username = "crh_USERNAME"
password = "PASSWORD"
proxy = f"http://{username}:{password}@dc.crawlhub.ai:8001"

response = requests.get(
    "https://ipinfo.io/json",
    proxies={"http": proxy, "https": proxy},
    timeout=30,
)
print(response.json())
// npm install undici
import { fetch, ProxyAgent } from "undici";

const auth = Buffer.from("crh_USERNAME:PASSWORD").toString("base64");
const agent = new ProxyAgent({
  uri: "http://dc.crawlhub.ai:8001",
  token: `Basic ${auth}`,
});

const res = await fetch("https://ipinfo.io/json", { dispatcher: agent });
console.log(await res.json());
<?php
$ch = curl_init("https://ipinfo.io/json");
curl_setopt($ch, CURLOPT_PROXY, "http://dc.crawlhub.ai:8001");
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "crh_USERNAME:PASSWORD");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);

echo curl_exec($ch);
curl_close($ch);
package main

import (
    "fmt"
    "io"
    "net/http"
    "net/url"
    "time"
)

func main() {
    proxyURL, _ := url.Parse("http://crh_USERNAME:PASSWORD@dc.crawlhub.ai:8001")
    client := &http.Client{
        Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},
        Timeout:   30 * time.Second,
    }
    resp, err := client.Get("https://ipinfo.io/json")
    if err != nil { panic(err) }
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
import java.net.*;
import java.net.http.*;

public class Main {
  public static void main(String[] args) throws Exception {
    // Java blocks Basic auth on HTTPS tunnels by default; allow it.
    System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");

    HttpClient client = HttpClient.newBuilder()
      .proxy(ProxySelector.of(new InetSocketAddress("dc.crawlhub.ai", 8001)))
      .authenticator(new Authenticator() {
        protected PasswordAuthentication getPasswordAuthentication() {
          return new PasswordAuthentication("crh_USERNAME", "PASSWORD".toCharArray());
        }
      }).build();

    HttpRequest req = HttpRequest.newBuilder(URI.create("https://ipinfo.io/json")).build();
    System.out.println(client.send(req, HttpResponse.BodyHandlers.ofString()).body());
  }
}
using System.Net;

var proxy = new WebProxy("http://dc.crawlhub.ai:8001")
{
    Credentials = new NetworkCredential("crh_USERNAME", "PASSWORD")
};
using var client = new HttpClient(new HttpClientHandler { Proxy = proxy, UseProxy = true })
{
    Timeout = TimeSpan.FromSeconds(30)
};

Console.WriteLine(await client.GetStringAsync("https://ipinfo.io/json"));
require "net/http"

uri = URI("https://ipinfo.io/json")
proxy = ["dc.crawlhub.ai", 8001, "crh_USERNAME", "PASSWORD"]

Net::HTTP.start(uri.host, uri.port, *proxy, use_ssl: true, read_timeout: 30) do |http|
  puts http.get(uri.path).body
end

Example response

The target sees the exit IP of that list entry. Values below are illustrative.

JSON
{
  "ip": "203.0.113.24",
  "city": "Ashburn",
  "region": "Virginia",
  "country": "US",
  "org": "AS16509 Amazon.com, Inc.",
  "timezone": "America/New_York"
}

Use the whole list

Loop over the ports in your list. Each request goes out through the next IP.

for port in $(seq 8001 8006); do
  curl -x http://dc.crawlhub.ai:$port -U "crh_USERNAME:PASSWORD" https://ipinfo.io/ip
done
import requests

for port in range(8001, 8007):
    proxy = f"http://crh_USERNAME:PASSWORD@dc.crawlhub.ai:{port}"
    print(requests.get("https://ipinfo.io/ip", proxies={"http": proxy, "https": proxy}).text)
import { fetch, ProxyAgent } from "undici";

const token = "Basic " + Buffer.from("crh_USERNAME:PASSWORD").toString("base64");
for (let port = 8001; port <= 8006; port++) {
  const agent = new ProxyAgent({ uri: `http://dc.crawlhub.ai:${port}`, token });
  console.log(await (await fetch("https://ipinfo.io/ip", { dispatcher: agent })).text());
}
<?php
for ($port = 8001; $port <= 8006; $port++) {
    $ch = curl_init('https://ipinfo.io/ip');
    curl_setopt($ch, CURLOPT_PROXY, "http://dc.crawlhub.ai:$port");
    curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'crh_USERNAME:PASSWORD');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    echo curl_exec($ch) . PHP_EOL;
}
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	for port := 8001; port <= 8006; port++ {
		proxy, _ := url.Parse(fmt.Sprintf("http://crh_USERNAME:PASSWORD@dc.crawlhub.ai:%d", port))
		client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxy)}}
		resp, err := client.Get("https://ipinfo.io/ip")
		if err != nil {
			fmt.Println(err)
			continue
		}
		ip, _ := io.ReadAll(resp.Body)
		resp.Body.Close()
		fmt.Println(string(ip))
	}
}
import java.net.*;
import java.net.http.*;

public class Main {
  public static void main(String[] args) throws Exception {
    System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
    Authenticator auth = new Authenticator() {
      protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication("crh_USERNAME", "PASSWORD".toCharArray());
      }
    };
    HttpRequest req = HttpRequest.newBuilder(URI.create("https://ipinfo.io/ip")).build();
    for (int port = 8001; port <= 8006; port++) {
      HttpClient client = HttpClient.newBuilder()
        .proxy(ProxySelector.of(new InetSocketAddress("dc.crawlhub.ai", port)))
        .authenticator(auth).build();
      System.out.println(client.send(req, HttpResponse.BodyHandlers.ofString()).body());
    }
  }
}
using System.Net;

for (var port = 8001; port <= 8006; port++)
{
    var proxy = new WebProxy($"http://dc.crawlhub.ai:{port}") { Credentials = new NetworkCredential("crh_USERNAME", "PASSWORD") };
    using var client = new HttpClient(new HttpClientHandler { Proxy = proxy });
    Console.WriteLine(await client.GetStringAsync("https://ipinfo.io/ip"));
}
require "net/http"

uri = URI("https://ipinfo.io/ip")
(8001..8006).each do |port|
  puts Net::HTTP.start(uri.host, uri.port, "dc.crawlhub.ai", port, "crh_USERNAME", "PASSWORD", use_ssl: true) { |http| http.get(uri.path).body }
end

Customize your requests

Plans and allocation

Datacenter plans are billed by the number of IPs, not by traffic. More IPs means a longer list. See Limits & Fair Use.

Dashboard and account

  • Proxy list and credentials: Datacenter section of the dashboard.
  • Integrations: antidetect browsers and bulk tools take the list as is. See Integrations.
Need help?Contact supportProxy checkerhello@crawlhub.ai
Copied