How to Set Up an IPv6 Proxy on Common Testing Tools
A practical walkthrough for configuring an IPv6 Proxy in curl, Python, Playwright, Postman and a browser, and for checking that traffic really leaves through it.
9 min readUpdated Nov 13, 2026By XPASS Editorial Team

Setting up an IPv6 Proxy is not much harder than setting up any other proxy, but a few details are specific to IPv6 and cause most of the early mistakes: how the address is written, where the hostname is resolved, and how you confirm that traffic really leaves through the proxy. This guide shows the settings in tools that testers and developers use every day: curl, Python's requests library, Playwright, Postman and a desktop browser.
The examples use placeholder values from the documentation address range (2001:db8::/32) and a made-up username. Replace them with the details from your own order. Use a proxy only for lawful work such as testing your own services or reading public pages within each site's terms and local law.
Gather the connection details first
Before you open any tool, collect these items from your provider's order details or dashboard. If something is unclear, check the product page for the plan you chose instead of guessing.
- Host. Either a hostname or an IPv6 address.
- Port. The numeric port for the protocol you plan to use.
- Protocol. HTTP, HTTPS or SOCKS5. Many testing tools support all three, but some support only HTTP.
- Authentication. A username and password, or an authorised source address that you have registered with the provider.
- Which address family the proxy uses on the way out. This affects which destinations you can reach, as explained in why an IPv6 Proxy sometimes fails on certain websites.
Also decide what you want to test. A quick connectivity check, a browser session, an automated suite and an API call need slightly different setups, and it is easier to start with the smallest one.

Writing IPv6 addresses correctly
An IPv6 address contains colons, and so does the separator between a host and a port. That is why URLs wrap the address in square brackets. For example:
- Correct:
http://[2001:db8::1]:8080 - Incorrect:
http://2001:db8::1:8080
If a tool gives you separate fields for host and port, the host field usually takes the address without brackets. If you are unsure, try both forms with a simple request and read the error message. A hostname that resolves to an IPv6 address avoids the issue entirely and is often the easiest option.
A few other points help:
- Zone identifiers (the part after a percent sign) are for link-local addresses and are not used for a proxy on the public internet.
- Leading zeros and the double-colon shorthand are interchangeable.
2001:db8::1and2001:0db8:0000:0000:0000:0000:0000:0001mean the same address. - Copy addresses from your order details instead of retyping them.
curl
curl is the best tool for a first test because its output is easy to read.
An HTTP proxy with a username and password:
curl -v -x "http://[2001:db8::1]:8080" --proxy-user "myuser:mypassword" https://example.com/
A SOCKS5 proxy where the proxy resolves the hostname:
curl -v --socks5-hostname "[2001:db8::1]:1080" --proxy-user "myuser:mypassword" https://example.com/
Useful notes:
-vprints the connection steps, including which address was tried.-xwith asocks5h://URL has the same effect as--socks5-hostname; withsocks5://the hostname is resolved by curl locally.- The
-6and-4options control the address family curl uses for its own connections. Test both when you are not sure which family reaches your proxy host. - Passwords containing special characters should be passed with
--proxy-userrather than placed in the URL, or be URL-encoded. - Avoid putting real credentials in shell history on shared machines. An environment variable or a configuration file with restricted permissions is safer.
Python requests
The requests library reads a proxies mapping. HTTP and HTTPS proxies work out of the box. SOCKS support needs the optional extra (pip install "requests[socks]").
import requests
proxies = {
"http": "http://myuser:mypassword@[2001:db8::1]:8080",
"https": "http://myuser:mypassword@[2001:db8::1]:8080",
}
r = requests.get("https://example.com/", proxies=proxies, timeout=20)
print(r.status_code)
For SOCKS5 with proxy-side name resolution use the socks5h:// scheme in the same dictionary. Always set a timeout, because a missing route to an IPv4-only destination often shows up as a long hang rather than a quick error.
If you set the standard environment variables (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY and NO_PROXY), requests will honour them, which is convenient for scripts but can also surprise you when a variable set in another terminal tab changes the result. Print the effective configuration at the start of a test run so that logs show it.
Playwright
Playwright accepts proxy settings when you launch a browser or create a context.
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(proxy={
"server": "http://[2001:db8::1]:8080",
"username": "myuser",
"password": "mypassword",
})
page = browser.new_page()
page.goto("https://example.com/")
print(page.title())
browser.close()
Points to remember:
- Pass credentials in their own fields instead of embedding them in the server string.
- A per-context proxy is useful when a single test run needs more than one exit.
- Browsers resolve names in their own way. If a page partly loads, open the browser's network log and look for sub-requests to hostnames that have no AAAA record.
- Keep the request volume reasonable and respect the target site's terms. Automation that ignores a site's rules is not a proxy problem you can fix with settings.
Postman and other API clients
In Postman, open Settings and find the Proxy tab. Choose a custom proxy configuration, enter the host and port, tick the option for authentication if your proxy needs it, and provide the username and password. Some versions let you enter the host with or without brackets; if one form fails, try the other.
Tips for API testing:
- Postman can use the system proxy by default. Turn that off when you want only the custom proxy to apply, so the two do not interfere.
- Send a request to an IP echo endpoint first. If it reports an address in the proxy's range, the setup works.
- Save the working configuration as part of your test documentation, without the password.
Other API tools follow a similar pattern: a proxy host, a port, an optional username and password, and sometimes a separate list of addresses that bypass the proxy.
Desktop browsers
Browsers are good for manual checks of how a page looks from another network.
- Firefox has its own proxy settings. Open Settings, search for "proxy", choose Manual proxy configuration and enter the host and port for the right protocol. For SOCKS5 there is a checkbox that sends DNS queries through the proxy; turning it on matches the
socks5hbehaviour and is often the more reliable choice with IPv6. - Chrome and other Chromium-based browsers use the operating system's proxy settings by default. You can start a separate profile with a command-line proxy flag for testing so that your everyday browsing is not affected.
- Browser extensions can switch between proxy profiles. Choose one from a source you trust, because an extension that manages proxy settings can see your browsing traffic.
Browsers cache DNS answers and connections. After you change the proxy, close the tab or restart the browser before drawing conclusions.
Confirm that traffic really goes through the proxy
A page that loads does not prove that the proxy was used. Several tools fall back to a direct connection if the proxy setting is ignored or mis-parsed. Confirm with these checks:
- Request an IP echo service that supports IPv6 through the proxy. Note the address it returns.
- Request the same service without the proxy. The two addresses should differ.
- Compare the returned address with the range you were given. It may not match exactly if the provider rotates addresses, so check the plan details for what to expect.
- Run the tool in verbose mode and read the log for the proxy address and the final destination.
- For DNS behaviour, query a hostname that has only an A record and another that has an AAAA record. The results show how the exit side reaches each. Our article on IPv6 Proxy versus datacenter IPv4 explains why those results can differ between proxy types.
A plain example: you test a checkout page you own. You run the curl command, see the echo service report an IPv6 address from the proxy, then load the checkout page in Playwright with the same proxy and confirm the layout is correct. Because the page uses a separate hostname for its payment widget, you also run dig AAAA for that hostname to make sure it is reachable over IPv6.
Common setup mistakes
| Mistake | What you see | Fix |
|---|---|---|
| Missing brackets in a URL | Parsing errors or the wrong port | Use [address]:port inside URLs |
| Wrong protocol for the port | Empty reply or handshake failure | Confirm whether the port speaks HTTP or SOCKS5 |
| Credentials in the wrong place | 407 Proxy Authentication Required | Pass them in the field or option the tool expects |
| System proxy overriding the tool | Unexpected exit address | Disable the system or environment proxy for the test |
| Local DNS resolution of an IPv4-only name | Timeout or no route | Use proxy-side resolution or pick a destination with an AAAA record |
| No timeout configured | Test hangs for a long time | Always set connect and read timeouts |
| Reusing a browser session | Old connections persist | Restart the browser or use a clean profile |
Limits and what to watch for
Setup problems are only one part of the story. Keep these limits in mind.
- A correctly configured IPv6 Proxy still cannot reach a destination that has no IPv6 address. That is a limit of the destination, not of your settings.
- Rotation, session handling and the number of simultaneous connections depend on the plan. Read the product page to see what your plan supports, and do not assume behaviour you have not verified.
- Address ranges may be shared or treated as a group by some websites, which is discussed in the limits of IPv6 Proxies for public data collection.
- Keep credentials out of source control and shared logs. Use environment variables or a secrets store.
- Use the proxy lawfully, respect site terms and robots.txt, keep request rates modest and do not attempt to defeat access controls or CAPTCHAs.
Summary
To configure an IPv6 Proxy in a testing tool, collect the host, port, protocol and authentication details, write IPv6 literals in square brackets inside URLs, choose where DNS is resolved, and then verify the result with an IP echo request and a verbose log instead of trusting that a page loaded. curl is the best first step, Python requests and Playwright cover automation, Postman covers API checks, and browsers cover manual review. Most early problems come from missing brackets, the wrong protocol, credentials in the wrong place or a system proxy that overrides the tool. If a specific site still fails, the cause is often on the destination side, so continue with the troubleshooting steps above.
When you are ready to pick a proxy for your own tests, the proxy page lists the options and what each one includes.
Frequently asked questions
What details do I need before configuring an IPv6 Proxy?
You need the proxy host or address, the port, the protocol (HTTP, HTTPS or SOCKS5) and the authentication method, either a username and password or an authorised source address. Your provider's plan page and order details are the place to confirm these values.
Do I need square brackets around an IPv6 address?
Yes, when the address is written inside a URL, for example http://[2001:db8::1]:8080. The brackets separate the address from the port. If the tool has separate host and port fields, enter the address without brackets unless the tool says otherwise.
How do I confirm traffic really goes through the proxy?
Request an IP echo service that supports IPv6 through the proxy and compare the address it reports with your own address without the proxy. Also read the verbose log of your tool to see which address was used.
What is the difference between socks5 and socks5h?
In tools that use these schemes, socks5 resolves the hostname on your computer and sends the address to the proxy, while socks5h sends the hostname and lets the proxy resolve it. The second form is often easier when working with IPv6.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a proxy for this?
XPASS Proxy sells residential proxy traffic by the gigabyte, with the price shown before you pay.
See proxy plansKeep reading

Proxy Guides
Why an IPv6 Proxy Sometimes Fails on Certain Websites
An IPv6 Proxy that works on one site can fail on the next. Learn the common causes, from missing AAAA records to client and DNS settings, and how to narrow them down.
9 min read

Proxy Guides
Limits of an IPv6 Proxy for Collecting Public Website Data
An honest look at where an IPv6 Proxy helps and where it stops when you collect public web data: coverage, rate rules, terms, data quality and lawful use.
9 min read

Proxy Guides
IPv6 Proxy vs Datacenter IPv4: What Is the Difference?
Both are datacenter-style addresses, but IPv6 and IPv4 behave differently in compatibility and reputation. Compare them by purpose before you choose.
10 min read