Skip to content

How Does Happy Eyeballs Choose Connections When a VPN Is Active?

Your device often tries IPv6 and IPv4 almost at once and keeps the first that works. Here is how that race behaves when a VPN tunnel is active, and what to check when it misbehaves.

10 min readUpdated Nov 4, 2026By XPASS Editorial Team

How Does Happy Eyeballs Choose Connections When a VPN Is Active?

When you open a website, your device does not simply connect to "the website". It first asks the Domain Name System for the site's addresses, and a modern site often has two kinds: an IPv6 address and an IPv4 address. The device then has to decide which one to use. If it picks the wrong one and that path is broken, you might sit looking at a blank page for many seconds while it waits for an answer that never comes.

Happy Eyeballs is the name of the approach most operating systems and browsers use to avoid that wait. It is a small race between the two address types. When a VPN is active, the race still runs, but the routes it can use may be different, and that is where odd symptoms sometimes appear. This article explains how the race works, how a VPN tunnel changes it, and what to check if something feels off.

What Happy Eyeballs actually does

Most devices today are dual-stack: they can use both IPv4 (RFC 791) and IPv6 (RFC 8200). If you want the background on the two systems, see IPv4 vs IPv6 for VPN users. The short version is that a site can publish an address of each kind, and your device can in principle reach it using either one.

The problem is that networks are uneven. Your home router might hand out IPv6 addresses but the upstream path might be faulty. A hotel network might support only IPv4. A site might publish an IPv6 address that is slow or unreachable from where you are. If a device always tried IPv6 first and waited for a long timeout before trying IPv4, every such problem would feel like the internet being broken.

Happy Eyeballs, standardised by the IETF under that informal name, solves this with a few simple steps. The exact timings and rules differ between systems, and I will describe the general pattern rather than promise a specific number.

  1. Ask for both kinds of address. The device sends DNS questions for IPv6 records and IPv4 records at about the same time, rather than one after the other.
  2. Prefer IPv6 slightly. If an IPv6 answer arrives, the device usually tries it first, because IPv6 is the newer system and is meant to be favoured when it works.
  3. Do not wait too long. If the IPv6 attempt has not connected after a short delay, commonly a fraction of a second, the device starts an IPv4 attempt in parallel.
  4. Keep the winner. Whichever connection completes first is used. The other attempt is dropped.
  5. Remember the result. Many systems keep a short-term memory of what worked, so the next connection to the same place can skip the guessing.

The name comes from the idea of keeping the "eyeballs", meaning the person looking at the screen, happy by hiding the failures. In normal life it works so well that most people never hear of it.

Why a VPN changes the situation

A VPN adds a tunnel between your device and the VPN's servers. Your device then has at least two possible ways out: the normal local network, and the tunnel. Which one traffic takes depends on the routing table, the VPN app's settings, and whether the tunnel handles IPv4, IPv6 or both. For a general explanation of the tunnel itself, see what a VPN tunnel is.

Happy Eyeballs does not know about any of this. It only sees that an attempt to connect to an address either worked or did not. So the VPN influences the race indirectly, through what routes exist for each address type. There are three common cases.

Situation while the VPN is on What the race sees Likely result
Tunnel carries both IPv4 and IPv6 Both attempts go through the tunnel The faster one wins; no surprise
Tunnel carries IPv4 only, IPv6 is blocked or has no route IPv6 attempt fails or times out, IPv4 works IPv4 wins, sometimes after a short delay
Tunnel carries IPv4 only, but a local IPv6 route still works IPv6 attempt succeeds outside the tunnel IPv6 may win and bypass the VPN

The first case is the healthy one. The second is common and generally harmless, apart from the possible delay. The third is the one worth understanding, because it is the root of many IPv6 leak reports. Happy Eyeballs did not cause the leak; the missing handling of IPv6 did. But the race is the mechanism that decides, connection by connection, whether the unprotected path is used. The detection side is covered in the article on IPv6 leaks.

A plain example

Imagine you are on home Wi-Fi with a router that gives your laptop both an IPv4 and an IPv6 address. You connect your VPN, and the app sets up a tunnel for IPv4 traffic only. Your laptop still has its IPv6 address on the local network.

You open a news site that publishes both address types.

  • Your laptop asks DNS for both. The answers come back, an IPv6 address and an IPv4 address.
  • It tries the IPv6 address first. If the VPN app blocked IPv6, or if it set up a route that discards it, the attempt fails quickly and the laptop moves on to IPv4 immediately. You notice nothing.
  • If the VPN app did not touch IPv6, the attempt goes straight out through the local network. It connects. The site now sees your home IPv6 address, not the VPN's address, even though you believed the VPN was on.
  • A third variation: the VPN app sets an IPv6 route into the tunnel, but the tunnel does not actually carry IPv6 through to the internet. The attempt hangs until the short timer expires, then IPv4 wins. You experience a pause on the first connection to each site.

All three outcomes come from the same, simple race. The difference is entirely in what the routes allow.

Symptoms that point to this race

Several everyday symptoms can be linked to Happy Eyeballs behaviour with a VPN, though none proves it on its own.

  • A short pause before pages begin loading, only with the VPN on. The pause shows up on the first visit to a site and then vanishes on later visits, because the device remembers what worked.
  • Some sites slow, others fast. Sites without IPv6 addresses skip the race entirely, so they never show the delay.
  • An IPv6 address on a test page while the VPN is connected. A test site shows an address that matches your normal internet provider, not the VPN. The race chose a path outside the tunnel.
  • Different behaviour on different networks. On a mobile network, IPv6 may be the default, while on a hotel network, only IPv4 exists. The same VPN can look different on each.
  • An app works but the browser does not, or the other way round. Apps differ in how they implement the race, and some do not do it at all.

Do not treat any one of these as proof. Plain distance to the server, congestion and the DNS provider can produce similar feelings. The point of listing them is to give you a reason to run the tests below rather than guess.

How to check what your device is doing

You do not need special tools to get a first answer. A careful side-by-side test is enough.

  1. Test with the VPN off. Open an IP test page that reports both IPv4 and IPv6 addresses. Note what it shows. If it shows only IPv4, your network may not offer IPv6, and the rest of this article matters less for you.
  2. Connect the VPN and test again. Reload the same page. Compare the IPv4 address (it should reflect the VPN) and the IPv6 address (it should either be absent or also reflect the VPN).
  3. Look for a mismatch. If an IPv6 address from your normal provider still appears, traffic is leaving outside the tunnel for IPv6. The Help Center guide on checking your VPN is working covers the general checks.
  4. Repeat on another network. Try mobile data as well as Wi-Fi. A different network can have a different IPv6 situation.
  5. Time a fresh visit. Visit a site you have not opened recently with the VPN on, and note whether the first load pauses. Reload it and see if the pause disappears. A pause followed by quick later loads is consistent with a failed IPv6 attempt followed by a remembered IPv4 choice.
  6. Try a private window or a different browser. If the problem follows the browser, the issue may be that application's own implementation of the race rather than the VPN.

Record what you see in plain words: network, VPN on or off, what the test page showed, whether there was a delay. This is useful if you contact support.

What you can do about it

The right action depends on what you found. Work from the least invasive step.

  • If IPv6 shows outside the tunnel: check the VPN app's settings for anything about IPv6 or leak protection, and keep the app's defaults unless support tells you otherwise. Reconnect and test again. If it persists, contact support with your test results, since this is a handling gap in the app or the setup rather than something you can fix with a single toggle.
  • If you see a delay only on first visits: this often means IPv6 is being attempted and failing. It is usually minor. Reconnecting the VPN or switching networks sometimes clears it, because the route situation changes.
  • If one network behaves badly: the network itself may have a faulty IPv6 path. Using a different network for comparison will tell you quickly.
  • Disabling IPv6 on the device: some people do this as a workaround. It can remove the race by leaving only one option, but it may also disable features that rely on IPv6 and it makes the underlying problem harder to see. Treat it as a last resort and note that settings differ by operating system. Check the official guidance for your system, such as your device maker's support pages, before changing anything.
  • Restart the connection after changing networks: moving from Wi-Fi to mobile data changes the available routes, and some apps keep stale choices for a while. A quick disconnect and reconnect re-establishes the state.

None of these steps needs you to change server addresses or technical protocol settings. If the app shows a protocol option, leave it at its default unless support advises otherwise.

Limits and what to watch for

Happy Eyeballs is a helpful mechanism, but it is not a privacy feature, and a VPN does not control it.

  • It is not the VPN's job. The race runs on your device in the operating system or the browser. A VPN can only influence it through routes.
  • Behaviour differs between systems. Timings, preferences and caching differ between operating systems, browsers and apps. Be cautious about advice that quotes exact numbers as if they applied everywhere.
  • A VPN does not guarantee that nothing leaks. Test your own setup rather than assume. A clean result on one network at one moment is a snapshot, not a promise.
  • A pause is not always IPv6. DNS lookups, distance to the server, busy networks and the website itself all add delay. See latency for background on what contributes.
  • Do not chase a perfect result. A short, harmless fallback delay is a normal part of dual-stack networking. The thing to act on is an IPv6 address visible outside the tunnel, or a lasting failure to load sites.
  • Some content is simply blocked or limited by the site. A VPN does not unlock every site, and a connection problem is not always about address families.

Quick reference

What you notice What it might mean First thing to try
Pause on the first visit to each site IPv6 attempt failing, then IPv4 fallback Reconnect; compare on another network
Home IPv6 address on a test page with the VPN on IPv6 bypassing the tunnel Retest; check app settings; contact support
Only IPv4 shown with VPN off Network offers no IPv6 Nothing to fix; race is not relevant
Browser slow, other apps fine Browser's own handling or cache Try another browser or a private window
Problem only on one Wi-Fi network That network's IPv6 path Test on mobile data for comparison

Summary

Happy Eyeballs is the quiet race your device runs between IPv6 and IPv4 so that a broken path does not leave you waiting. A VPN does not turn it off. It changes which routes are available, and that decides who wins: an IPv4-only tunnel with blocked IPv6 usually means a brief fallback delay, while an IPv4-only tunnel with a working local IPv6 route can let traffic skip the tunnel. Test with the VPN off and on, on more than one network, and act on a visible IPv6 address or a persistent failure rather than on a small pause.

If you want a pass you can try on your own devices without a subscription that renews itself, you can look at the XPASS pricing page and run these checks yourself.

Frequently asked questions

What is Happy Eyeballs in plain terms?

It is a way for your device to avoid waiting on a broken connection. When a site offers both IPv6 and IPv4 addresses, the device tries one, and if it does not answer quickly, it starts the other in parallel and keeps whichever connects first. The details vary between operating systems and apps.

Does a VPN turn Happy Eyeballs off?

No. The race still happens on your device. What changes is which routes exist while the VPN is on. If the tunnel carries only IPv4 and IPv6 is blocked or has no route, the IPv6 attempt fails and the IPv4 attempt wins, usually after a small delay.

Can Happy Eyeballs cause an IPv6 leak?

It can make one visible. If your device still has a working IPv6 route outside the tunnel, the race may pick that route because it connects first. That is a routing or configuration gap rather than something Happy Eyeballs invents, and it is worth testing for.

Why do some sites feel slow only when the VPN is on?

One possible cause is a broken IPv6 path. The device tries IPv6, waits for a short timeout, then falls back to IPv4. Each site can pay that wait. Other causes, such as distance or congestion, are more common, so test before blaming IPv6.

Should I disable IPv6 to fix this?

Treat it as a last step, not a first one. Disabling IPv6 can hide a problem, but it may also break features and is not always needed. Start by testing with the VPN on and off, and check the VPN app's settings and the support pages for your device.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

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 VPN for a short trip or a busy month?

XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.

See passes

Keep reading

VPN Security

IPv4 vs IPv6 for VPN Users

Your device probably has both an IPv4 and an IPv6 address. Here is what that means for a VPN, where the two differ for privacy and security, and how to check yours.

10 min read

VPN Security

IPv6 Leaks and VPNs: A Practical Guide

A hands-on guide to IPv6 leaks with a VPN: why two address families create a gap, how to test, how to read the result, and the fixes to try in order.

10 min read

VPN Basics

What Is a VPN Tunnel? A Simple Explanation

A VPN tunnel is not a place but a method: your data is wrapped inside other data and carried to the VPN server. See the anatomy, the life cycle and the limits.

9 min read