Skip to content

SOP 003: Configure Proxies

Fresh
FieldValue
SOP IDSOP-003
Version1.0
StatusActive
SourceSteel Proxies Docs

Overview

Proxies make browser sessions appear to originate from different locations and IP addresses. Steel offers managed residential proxies and BYOP (Bring Your Own Proxy).

Prerequisites

  • Steel account (Developer plan+ for managed proxies)
  • steel-sdk installed

Decision Flow

Proxy Options Comparison

FeatureNo Proxy (Default)Steel-ManagedBYOP
Best ForGeneral access, testingSites blocking datacenter IPsFull infrastructure control
IP TypeDatacenterResidentialAny
CostFreeBilled per GBNo Steel charge
AvailabilityAll plansDeveloper+All plans

Procedure

Option A: Steel-Managed Residential Proxies

typescript
// Basic - US residential IP
const session = await client.sessions.create({
  useProxy: true
});

// Target specific country
const session = await client.sessions.create({
  useProxy: {
    geolocation: { country: "GB" }
  }
});

// Target US state
const session = await client.sessions.create({
  useProxy: {
    geolocation: { country: "US", state: "NY" }
  }
});

// Target specific city
const session = await client.sessions.create({
  useProxy: {
    geolocation: { city: "LOS_ANGELES" }
  }
});

Start Broad

Country-level targeting has the largest IP pool and highest quality. Only use city-level when strictly required.

Option B: Bring Your Own Proxy (BYOP)

typescript
const session = await client.sessions.create({
  useProxy: {
    server: "http://username:password@proxy.example.com:8080"
  }
});

Supported formats:

  • http://username:password@hostname:port
  • https://username:password@hostname:port
  • socks5://username:password@hostname:port

Best Practices

  1. Test without proxies first - Save costs if datacenter IPs work
  2. Start with broad targeting - Country > State > City
  3. Build retry logic - Proxy errors like ERR_TUNNEL_CONNECTION_FAILED are normal
  4. Monitor success rates with narrow targeting
  5. Try different regions if consistently blocked

Verification Checklist

  • [ ] Session creates with proxy enabled
  • [ ] Target site accessible through proxy
  • [ ] IP address differs from datacenter IP
  • [ ] Geographic targeting matches expected location
  • [ ] No persistent ERR_TUNNEL_CONNECTION_FAILED errors

Troubleshooting

IssueSolution
ERR_TUNNEL_CONNECTION_FAILEDRetry - these are transient. Steel auto-rotates on retry
ERR_PROXY_CONNECTION_FAILEDCheck BYOP proxy server is online and accessible
Persistent blockingChange geographic region or try BYOP
High failure rate with city targetingSwitch to country-level targeting
Site on compliance blocklistUse BYOP or contact Steel support

See Also

SOP Documentation Hub - Built from Steel.dev Official Docs