All locations active · 99.99% uptime
ISP & Datacenter

How to Set Up an IPv6 Proxy

Using an IPv6 proxy is technically no different from IPv4 — but the address format and client behaviour hold a few traps. The most common problems do not come from the setup itself, but from writing the address incorrectly and from not understanding dual-stack behaviour.

For the basic concepts, see what an IPv6 proxy is article.

IPv6 Address Format

FIGUREThe structure of an IPv6 address
ANATOMY2a01:4f8:c17:1a2b::7 / port 8080 → [2a01:4f8:c17:1a2b::7]:80802a01:4f8The upper block allocated to the providerc17:1a2bThe customer /64 block::7The interface identifier within the block; :: is shorthand for zeros[...]:8080When writing a port, the address is enclosed in square brackets

Square brackets are mandatory because an IPv6 address already contains colons; without them, the port separator becomes ambiguous.

The most common mistake

2a01:4f8:c17:1a2b::7:8080 writing it this way. This is invalid — the last :8080 is taken to be part of the address. The correct form is: [2a01:4f8:c17:1a2b::7]:8080

Client Configuration

FIGURECorrect address formats
IPv6 proxy in different clients01# curl — HTTP proxy02curl -x "http://[2a01:4f8:c17:1a2b::7]:8080" https://example.com0304# curl — with authentication05curl -x "http://username:password@[2a01:4f8:c17:1a2b::7]:8080" https://example.com0607# curl — force the target to be resolved over IPv608curl -6 -x "http://[2a01:4f8:c17:1a2b::7]:8080" https://example.com0910# Python requests11proxies = {12 "http": "http://username:password@[2a01:4f8:c17:1a2b::7]:8080",13 "https": "http://username:password@[2a01:4f8:c17:1a2b::7]:8080",14}1516# Environment variable17export HTTP_PROXY="http://[2a01:4f8:c17:1a2b::7]:8080"18export HTTPS_PROXY="$HTTP_PROXY"

Using quotes in the environment variable matters; some shells mistake square brackets for a filename pattern and try to expand them.

Dual-Stack Behaviour

Most modern systems support both IPv4 and IPv6. If a domain has both kinds of address, which one does the client pick? That decision is made by the "Happy Eyeballs" algorithm, and the outcome can be surprising.

FIGUREWhich protocol is the connection established over?
DECISIONWhich records does the target have?A record only (IPv4)YESIPv4 is usedNOSee belowAn IPv6 proxy will not helpAAAA record only (IPv6)YESIPv6 is usedNOSee belowAn IPv6 proxy is essentialBoth are presentYESThe faster one winsNOThe Happy Eyeballs race

This is why the "I am using an IPv6 proxy but my IPv4 address is showing" situation can occur: the client may simply have found the IPv4 path faster.

Forcing

To make sure you really are going out over IPv6, force the client: in curl, -6, in Python a custom connector with socket.AF_INET6 , in Node the family: 6 option.

Verification

FIGUREProving that the IPv6 exit is genuinely being used
Terminal01# 1) Does the target have an AAAA record?02dig AAAA example.com +short0304# 2) Read the exit address through the proxy05curl -s -x "http://[2a01:4f8:c17:1a2b::7]:8080" https://ornek-ip.example/text0607# 3) If the returned address contains colons, you are going out over IPv608# If it contains dots (1.2.3.4), you have fallen back to IPv40910# 4) Test your local IPv6 connectivity11ping6 -c 3 2001:4860:4860::8888

Looking at the address format is the quickest check: colons mean IPv6, dots mean IPv4.

To see your exit address from the browser, you can use our My IP Address page.

Common Problems

FIGURETypical mistakes when setting up an IPv6 proxy
ERRORCODE / SYMPTOMLIKELY CAUSESOLUTIONInvalid address errorMissing square bracketsUse the [address]:port formatCannot establish a connectionNo IPv6 on the local networkTest local IPv6 connectivity with ping6An IPv4 address is showingHappy Eyeballs chose IPv4Force the client with -6 / AF_INET6Some sites will not openThe target has no AAAA recordUse an IPv4 proxy for those targetsShell error (no matchesfound)The square brackets were expandedPut the address in quotes

The first two rows are setup problems, the third is a behaviour problem, and the fourth is a problem with the target. Making this distinction during diagnosis saves time.

Hybrid Use: The Right Approach

The way to benefit from IPv6's cost advantage without running into compatibility problems is to work in hybrid mode:

FIGUREIPv6-first flow with IPv4 fallback
1Is there an AAAA record?DNS check2If yes, IPv6 proxythe cheap path3If not, IPv4 proxythe compatible path4Cache the resultlearn per targetFLOWStore the protocol preference per target

Do not run the DNS check on every request; cache the result per target. This reduces both latency and DNS load.

Summary

Setting up an IPv6 proxy is as simple as IPv4 once you pay attention to the address format. Three rules are enough: use square brackets when writing a port, verify that you really are going out over IPv6, and check whether the target has an AAAA record. Solving the compatibility problem with a hybrid flow lets you use IPv6's cost advantage without putting it at risk. For product details, see our IPv6 proxy page .

Frequently Asked Questions

01How should I write the IPv6 proxy address?

When using it with a port, enclose the address in square brackets: [2a01:4f8:c17:1a2b::7]:8080. Writing it without brackets is invalid, because the address already contains colons.

02I am using an IPv6 proxy but my IPv4 address is showing — why?

If the target has both an A and an AAAA record, the client may have chosen the faster path via the Happy Eyeballs algorithm. Force the client to IPv6 with -6 or AF_INET6.

03Can I reach every site over IPv6?

No. If the target has no AAAA record, it cannot be reached over IPv6. That is why an IPv6 proxy is usually used in a hybrid setup alongside IPv4.

04What happens if my local connection has no IPv6?

You will not be able to reach the IPv6 proxy at all. First test your local IPv6 connectivity with ping6; if you have none, you need to request IPv6 from your internet provider or use a tunnel.

05Why are IPv6 proxies so cheap?

There is no address scarcity; billions of addresses can be allocated to a single customer. The address fee, the largest cost item, drops to almost zero.

Related Articles and Pages

NEXT STEP

Strengthen your proxy setup today.

Get started in minutes with a paid plan, or try our free proxy list first.

FREEPROXY.TR

Looking for a free proxy? You're in the right place

A complete proxy platform where you can browse up-to-date free proxy addresses, compare HTTP and SOCKS proxy types, and check your proxy connections with free tools.