Back to Blog
Available in:EnglishEspañol中文

How to Check If a Proxy Is Working: Ping, Headers, and Anonymity Tests

Learn how to test proxy servers for connectivity, speed, and anonymity. From simple ping checks to advanced header analysis.

Pineapple Team10 min read
proxy-checkertestinganonymityheaderstroubleshooting

Why Testing Proxies Matters

Not all proxies are created equal. A proxy that worked yesterday might be dead today. A proxy that claims to be "elite" might leak your IP through headers. Regular testing is essential for anyone running proxy-dependent infrastructure.

Let's walk through the testing methods — from quick checks to thorough validation.

Quick Connectivity Test

Method 1: Ping Test

A simple ping test checks if the proxy host is reachable:

ping proxy.example.com

Caveat: Ping uses ICMP, which proxies don't handle. A failed ping doesn't mean the proxy is dead, and a successful ping doesn't mean it's working as a proxy.

Method 2: Telnet Test

Telnet verifies the port is open:

telnet proxy.example.com 8080

If the connection succeeds (blank screen or banner), the port is open. This confirms the proxy service is listening.

Method 3: cURL Test

The most practical test — actually use the proxy:

# HTTP proxy
curl -x http://proxy.example.com:8080 https://httpbin.org/ip

# SOCKS5 proxy
curl --socks5 proxy.example.com:1080 https://httpbin.org/ip

If you get a JSON response with an IP, the proxy is working.

Checking Your IP

The simplest way to confirm a proxy is working: check what IP the internet sees.

# Without proxy
curl https://api.ipify.org?format=json

# With proxy
curl -x http://proxy:8080 https://api.ipify.org?format=json

The two IPs should be different. If they match, your proxy isn't routing traffic correctly.

Anonymity Level Testing

What Proxies Reveal

When a proxy forwards your request, it adds headers. The anonymity level determines what those headers contain:

  • Transparent: X-Forwarded-For: your_real_ip
  • Anonymous: Via: proxy or X-Forwarded-For: proxy_ip
  • Elite: No proxy-related headers

Testing with httpbin

curl -x http://proxy:8080 https://httpbin.org/headers

Check the response for these headers:

  • X-Forwarded-For — leaks the original IP
  • Via — indicates a proxy was used
  • X-Real-IP — another potential leak

An elite proxy should show none of these.

Speed Testing

Proxy speed matters. A slow proxy degrades your experience. Test latency:

# Measure total time with cURL
time curl -x http://proxy:8080 -o /dev/null -s -w \
  "Connect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" \
  https://example.com

For production use, track proxies over time. A proxy that averages <500ms TTFB is good; >2s is problematic.

Protocol-Specific Testing

HTTP Proxy Test

curl -x http://proxy:8080 -v https://example.com

Look for CONNECT tunnel establishment and 200 OK response.

SOCKS5 Proxy Test

curl --socks5 proxy:1080 -v https://example.com

SOCKS5 negotiation happens at the TCP level. If curl connects without errors, the proxy is working.

Testing at Scale

Testing a handful of proxies manually works for small projects. For production, you need automated validation.

At Pineapple Proxy, we run 50,000+ proxy checks daily using:

  • Multi-protocol testing (HTTP, HTTPS, SOCKS5, CONNECT)
  • Response time measurement
  • Header analysis for anonymity verification
  • Geographical location verification
  • Site-specific access tests

Every proxy in our database includes verified metrics so you know exactly what you're getting.

Use Our Proxy Checker

Instead of writing your own testing scripts, try our Proxy Checker — a free tool that tests any proxy for:

  • Connectivity (HTTP/HTTPS/SOCKS5)
  • Anonymity level
  • Response time
  • Geographical location

Try it now — no registration required.