What Proxy Headers Reveal About Your IP Address

A proxy can change the IP address a destination sees on the connection while leaving address information in HTTP headers. Compare a direct request with a proxied one, then check what your receiving server actually logged.

Technician comparing a printed diagnostic sheet with a screen on a server rack

Start with the exit IP the destination sees

Open the same IP lookup directly and through your proxy from the machine that runs your application. The two results give you a baseline for comparing the addresses you later find in server logs. If a browser and a terminal disagree, repeat the check in the browser profile where you see the issue. A proxy extension, a system route or a per-application setting can change which connection reaches the lookup. Check your proxy exit IP in a browser.

Use the first command for the direct check. In the second, replace the example address with the scheme, host and port of a proxy you own or manage. The two commands return a JSON body with an ip field. On Windows PowerShell, run curl.exe if your shell resolves curl to a different command.

curl --disable --noproxy "*" --fail --silent --show-error --max-time 20 https://testmyproxies.com/api/my-ip
curl --disable --noproxy "localhost" --proxy "http://gateway.example:8080" --fail --silent --show-error --max-time 20 https://testmyproxies.com/api/my-ip

The first command excludes every host from proxy use. The second replaces any inherited bypass list with localhost, leaving the public IP lookup eligible for your specified proxy. Use your provider’s approved credentials workflow when authentication is required. The IP response tells you the address the lookup observed on that request. To see the request headers, inspect a receiving server you control. More cURL proxy test examples.

Read Via, Forwarded and X-Forwarded-For

A destination can observe the network address of its immediate peer. It can also receive HTTP fields with information about earlier hops. These are separate observations. If a destination has its own load balancer, the peer address in the application’s logs may belong to that load balancer. Its edge logs are the place to check the address from which the request entered.

HeaderWhat to look for
ViaInformation about an intermediary and the protocol version it received. The field’s received-by component identifies the intermediary, which can use a pseudonym.
ForwardedLook for the for parameter, which can contain an address, an obfuscated identifier or unknown. Other parameters can describe the receiving proxy, the original protocol or the requested host. Each comma-separated element can describe a different hop.
X-Forwarded-ForA widely used field with one or more addresses. A proxy might append to the list, replace it or leave it alone. Interpret it using the behavior of the proxies you trust.

The receiving server needs a trust policy before it uses a forwarding field as the client address. Any client can send a header with the same name. For example, Apache’s mod_remoteip can interpret a configured field supplied by trusted intermediaries, while recording the underlying peer address separately. An arbitrary first entry in a list cannot establish who made the request. HTTP Via semantics. Forwarded header specification. Apache trusted proxy handling.

Compare the peer address and headers at your server

  1. Choose an HTTPS endpoint you control. On its receiving edge, temporarily log the immediate peer address and the three selected request fields. Keep the logs private. Omit cookies and authorization fields.
  2. Make the direct and proxied requests against that same endpoint. Mark the tests with separate paths or timestamps so you can locate just those two requests. Keep the proxy mode and URL scheme consistent with the application you are diagnosing.
  3. Compare the proxy result against the direct baseline. If the destination receives the expected proxy exit address but a request field contains the baseline address, that field can disclose the address for this request. If your own CDN adds a field, check both sides of that edge before attributing the field to the forward proxy.

Consider a direct baseline of 192.0.2.24. In a subsequent test, the receiving edge records the following example values. Both addresses are reserved for documentation.

Connection peer: 198.51.100.41
Via: 1.1 edge-hop
Forwarded: for=192.0.2.24;proto=https
X-Forwarded-For: 192.0.2.24

Here the peer address differs from the direct address, yet both forwarding fields contain the original value. The difference in peer addresses shows that the route changed. The repeated baseline address is the evidence of disclosure. If only Via appeared, it would record the intermediary. When the immediate peer matches the direct baseline, check the proxy bypass settings and verify the exit address your provider expects. In some networks both routes share the same outward address. When you compare IPv6 addresses, normalize them first so that different spellings of the same address compare equal.

Account for HTTPS CONNECT and TLS inspection

A normal HTTP CONNECT tunnel carries the client’s encrypted HTTPS traffic after the proxy accepts the tunnel. A proxy that only relays this traffic cannot add a header to the encrypted HTTPS request inside it. In a managed network that terminates TLS for inspection, the inspector can modify that request before sending it onward. A destination’s own reverse proxy can also add fields after it terminates TLS. Use the certificate and the logs at each hop to identify which situation applies. Compare HTTP, HTTPS and SOCKS5 proxy routing. Diagnose the TLS connection used by a proxy.

Interpret the TestMyProxies IP exposure result

In the online proxy test, the connecting client is the TestMyProxies test server. Its probe reports IP exposed when the test server’s address is visible as the connection’s source or found in the forwarding fields the probe checks. Treat this as a result for that specific request. If you need to verify your own application, repeat the network and header checks from that application’s environment. Browser WebRTC, DNS routing and other connections are separate measurements. Read the full proxy test result.

All proxy testing guides · Open the proxy tester