DroidCrunch
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact
Subscribe
No Result
View All Result
DroidCrunch
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact
Subscribe
DroidCrunch

VPN Leak Test: How to Check for DNS, WebRTC and IPv6 Leaks 2026

Lokesh Kapoor by Lokesh Kapoor
November 26, 2026
3
0

A VPN leak happens when some of your traffic, or the information about it, slips outside the encrypted tunnel. The three leaks to test for are DNS, WebRTC and IPv6, and each one can reveal your real IP address or your internet provider even while the VPN app says “Connected”.

Each test takes about a minute in a browser. Below, we explain what each test checks, how to read it, and how to fix a leak. We ran all three on our own test machine.

What a VPN leak is

When a VPN works properly, every request from your device goes into an encrypted tunnel to the VPN server, and websites only see the server’s IP address. Our explainer on how a VPN works covers the tunnel in detail.

A leak is any path that skips the tunnel. The three common ones:

  • DNS leak: your device asks your internet provider’s DNS server to look up website names, instead of the VPN’s. The VPN hides your traffic, but your provider still sees every site you visit.
  • WebRTC leak: a browser feature for video calls asks a public server for your IP address, and the answer can come back with your real one, which any website can read with a few lines of JavaScript.
  • IPv6 leak: your VPN only tunnels IPv4, but your connection also has IPv6. Sites that support IPv6 see your real IPv6 address.
LeakWhat it revealsWho can see itHow common
DNSEvery site you look upYour internet provider, the DNS serverCommon on Windows and manual setups
WebRTCYour real public IP addressAny website you visitCommon in browsers, especially with proxies
IPv6Your real IPv6 addressAny IPv6-capable websiteCommon on IPv6 networks with older VPNs
Kill switch failureYour real IP during a dropWhatever you’re connected to at that momentCommon when switching networks
The VPN leaks worth testing for.

What we tested

We ran all three tests on a cloud test machine whose traffic leaves through a single Cloudflare egress gateway, which behaves like a VPN with DNS locking and IPv6 blocking turned on. We used command-line tools and a real Chromium browser, so we could see exactly what each test sees.

TestWhat we ranResultVerdict
Exit IPIPv4 check via ifconfig.coA Cloudflare network addressBaseline
DNS leak (extended)10 unique lookups, then asked the bash.ws leak test which resolvers handled them“No DNS servers found”: lookups never left the gateway as plain DNSPass
Plain DNS bypassA direct query to Google’s 8.8.8.8 on port 53No answer: blockedPass
DNS over HTTPSAsked Google which resolver it sawA Cloudflare IPv6 address, same network as the exitPass
WebRTC (Chromium)Gathered ICE candidates via a public STUN serverOne candidate, hidden as a .local name; no public IPPass
WebRTC with policy flagSame, with the proxied-only IP handling policyNo candidates at allPass
IPv6IPv6 check via curl -6No IPv6 routePass
Our leak tests on a cloud test machine behind a single egress gateway.

It passed all three, and the reasons are the lesson. Plain DNS queries to outside servers like Google’s 8.8.8.8 were blocked outright, so nothing could go around the tunnel. DNS over HTTPS worked, and Google saw the lookups coming from a Cloudflare address, the same network as our exit IP. There was no IPv6 route at all, so nothing to leak there. In the browser, Chromium hid the machine’s local address behind a random .local name and couldn’t reach the public STUN server, so no real IP appeared.

A good VPN should give you the same result for the same reasons: it forces DNS through its own servers, blocks or tunnels IPv6, and blocks traffic when the tunnel drops.

What we didn’t test this time was commercial VPN apps on a home connection. That’s where leaks really happen: the app on your laptop or phone, on your Wi-Fi, with your browser settings. The steps below are how to test yours.

Three VPN leaks: DNS lookups, WebRTC and IPv6 traffic escaping outside the encrypted tunnel
DNS, WebRTC and IPv6 are the three paths that can skip the tunnel.

How to run a VPN leak test

Run every test twice: once with the VPN off, to see your real details, and once with it on. A leak is anything from the first run that shows up in the second.

The steps at a glance

  1. 1
    Step 1 of 7

    Write down your real details

    With the VPN off, note your public IPv4, IPv6, city, provider and DNS servers.

  2. 2
    Step 2 of 7

    Connect the VPN

    Pick a server in another country so leaks are easy to spot.

  3. 3
    Step 3 of 7

    Run the DNS leak test

    Use the extended test and check every DNS server listed.

  4. 4
    Step 4 of 7

    Run the WebRTC leak test

    Check in every browser you use; your real public IP must not appear.

  5. 5
    Step 5 of 7

    Run the IPv6 test

    There should be no IPv6 address, or only the VPN’s.

  6. 6
    Step 6 of 7

    Test the kill switch

    Drop the connection mid-download and check that traffic stops.

  7. 7
    Step 7 of 7

    Repeat on every device and network

    Phones, laptops, home and public Wi-Fi can all behave differently.

Step 1: write down your real details

With the VPN off, visit an IP checker and note your public IPv4 address, your IPv6 address if you have one, your city and your internet provider. Then run a DNS leak test and note which DNS servers appear; they’ll usually belong to your provider. This is your baseline.

Step 2: connect the VPN

Connect to a server in a different country from you, so leaks are obvious. A server in your own city makes it harder to tell whether a DNS server or IP belongs to you or to the VPN.

Step 3: run the DNS leak test

Use a DNS leak test site and choose the extended test, which sends several lookups and reports every DNS server that handled them. Look at the server list:

  • Pass: every server belongs to your VPN provider or a DNS service it uses, in or near the VPN server’s country.
  • Fail: any server belongs to your internet provider, or sits in your real country when you’re connected elsewhere.

From a terminal, you can run the same test without a browser:

DNS leak test from a terminal Bash
# DNS leak test from a terminal (Linux or macOS), using bash.ws
id=$(curl -s https://bash.ws/id)
for i in 1 2 3 4 5 6 7 8 9 10; do ping -c1 -W1 $i.$id.bash.ws >/dev/null 2>&1; done
curl -s "https://bash.ws/dnsleak/test/$id?txt"

Step 4: run the WebRTC leak test

Open a WebRTC leak test page in the browser you actually use. It will show any IP addresses your browser reveals through WebRTC.

  • Pass: only the VPN server’s IP, or no public IP at all. Addresses ending in .local are fine; modern browsers use them to hide your local network address.
  • Fail: your real public IP from step 1 appears anywhere on the page.

Test every browser you use. Chrome, Firefox, Safari and Brave all handle WebRTC differently, and browser extensions can change the result.

Step 5: run the IPv6 test

Visit an IPv6 test site, or check whether an IP checker shows an IPv6 address.

  • Pass: no IPv6 address, or one that belongs to the VPN provider.
  • Fail: the IPv6 address from step 1.

Step 6: test the kill switch

Leaks also happen when the VPN drops. Start a large download or a video, then disconnect your Wi-Fi for a few seconds or force-quit the VPN app. If the kill switch works, traffic stops completely until the VPN reconnects. Run the IP check again straight after reconnecting. Our article on the VPN kill switch explains the two kinds and how to test them.

Step 7: repeat on every device and network

A VPN that passes on your laptop at home can leak on your phone, or on hotel Wi-Fi that forces its own DNS. Repeat the tests on each device, and again whenever you change VPN settings or app versions.

How to read DNS leak test results

DNS leak results confuse people more than the other two tests, because they show server names and companies rather than one clear IP address.

What you seeWhat it means
Only your VPN provider’s serversNo leak
A public DNS service in the VPN server’s countryProbably fine: many VPNs use one
Your internet provider’s nameDNS leak
Servers in your real country, connected elsewhereLikely DNS leak
A mix of VPN and provider serversPartial leak: some queries escape
No servers foundLookups aren’t leaving as plain DNS; check that sites load normally
How to read the server list from a DNS leak test.

Seeing Cloudflare, Google or Quad9 isn’t automatically a leak. Many VPNs use these services behind the scenes. It’s a leak only if your device is talking to them directly instead of through the tunnel, which usually shows up as servers in your real country, or as your provider’s own DNS alongside them.

A quick command-line check: these commands ask DNS services which resolver is asking them. If the answer belongs to your internet provider while the VPN is on, you have a DNS leak.

Which DNS resolver is asking? Bash
# Which resolver is answering for you? (macOS, Linux; Windows: use nslookup)
dig +short TXT o-o.myaddr.l.google.com
dig +short TXT whoami.cloudflare CH @1.1.1.1

# Your public IPv4 and IPv6, as websites see them
curl -4 https://ifconfig.co
curl -6 https://ifconfig.co

How to fix a DNS leak

CauseFix
VPN app’s DNS protection offTurn on DNS leak protection or VPN-only DNS
Custom DNS set on the adapter or routerSet it back to automatic, or use the VPN’s DNS addresses
Browser secure DNS bypassing the VPNSet browser secure DNS to your current provider, or check split tunnelling
Windows querying every adapterUse the VPN’s own app, which blocks it, or disable unused adapters
Manual WireGuard or OpenVPN configSet the DNS line in the config and add firewall rules
DNS leak causes and fixes.

Turn on the VPN’s DNS leak protection. Most good VPN apps have a setting called DNS leak protection, private DNS or “use VPN DNS only”. Turn it on, reconnect and test again.

Check your browser’s secure DNS setting. Chrome, Edge, Firefox and Brave can send DNS over HTTPS to a provider you choose, separately from the system. Inside a full VPN tunnel this is usually fine, because the encrypted lookups still travel through the tunnel. With split tunnelling, or if the browser is excluded from the VPN, it can bypass the VPN’s DNS. If you see unexpected DNS servers, try setting the browser’s secure DNS to “use your current provider” and test again.

Fix manual DNS settings. If you set a custom DNS server on your network adapter or router, some VPN apps won’t override it. Set the adapter back to automatic, or use your VPN’s DNS server addresses.

Watch for smart DNS and router setups. A VPN running on your router protects every device behind it, but only if the router also hands out the VPN’s DNS. Check the router’s DHCP DNS setting.

How to fix a WebRTC leak

WebRTC powers video calls in the browser, so turning it off completely breaks Google Meet, Discord in the browser and similar apps. The goal is to stop it revealing your real IP, not to remove it.

BrowserFix
Chrome and EdgeUse the VPN’s extension or a WebRTC-limiting extension; Chrome has no built-in switch
FirefoxIn about:config, set media.peerconnection.ice.default_address_only to true; set media.peerconnection.enabled to false only if you never use browser calls
BraveSettings, Privacy and security, WebRTC IP handling policy: Disable non-proxied UDP
SafariDoesn’t reveal local IPs by default; still run the test with the VPN on
Any browser with a proxyApply the setting above; proxies don’t cover WebRTC
WebRTC leak fixes by browser.

We tested the Chromium setting directly. With Chromium’s WebRTC IP handling policy set to only use proxied connections, our browser produced no WebRTC address candidates at all, not even the hidden .local one. With the default setting, it produced one .local candidate. That’s the same setting that browser extensions and VPN extensions change behind the scenes.

Use the VPN’s browser extension if it has one. Most major VPNs, including ExpressVPN and Surfshark, offer extensions that block WebRTC leaks. The extension alone isn’t a full VPN, so keep the app running too.

Proxies leak WebRTC more often than VPNs. A browser proxy only redirects normal web traffic. WebRTC can still go straight out over UDP and reveal your real IP. If you use proxies, apply the browser fixes above. Our guide on how to test a proxy covers proxy-specific checks, and proxy vs VPN explains why the protection differs.

How to fix an IPv6 leak

Most VPN apps either tunnel IPv6 or block it while connected. If yours doesn’t, you have three options:

  • Turn on the app’s IPv6 leak protection, often in the advanced or privacy settings.
  • Switch protocol. Some VPNs only tunnel IPv6 on certain protocols. Our WireGuard vs OpenVPN comparison covers the differences.
  • Disable IPv6 on the device as a last resort. On Windows, untick Internet Protocol Version 6 in the network adapter’s properties. On macOS, set Configure IPv6 to Link-local only for your network. Turn it back on if you stop using the VPN.

Testing a VPN on your phone

Phones leak in their own ways, and most people never test them. The same three tests work in a mobile browser, but the fixes are different.

Android. Turn on “Always-on VPN” and “Block connections without VPN” in Settings, Network and internet, VPN, then tap the gear next to your VPN. That’s Android’s system-level kill switch, and it stops apps sending anything before the VPN connects. Also check Private DNS in the network settings: if it’s set to a specific provider, Android may send DNS there instead of through the VPN’s DNS. Set it to Automatic or Off while testing, and run the DNS test again.

iPhone and iPad. iOS doesn’t offer a system kill switch toggle for most VPN apps, so check the app’s own settings for one. If you use iCloud Private Relay, turn it off while testing; it changes how Safari’s traffic and DNS are routed and can make results confusing. Run the WebRTC test in Safari and in any other browser you use.

Switch networks on purpose. Phones jump between Wi-Fi and mobile data all the time. Run the IP check, turn Wi-Fi off, wait for mobile data and check again. If your real mobile IP appears even briefly, the kill switch isn’t covering network changes.

Check per-app settings. Many mobile VPN apps include split tunnelling that lets apps bypass the VPN. Make sure your browser and any sensitive apps aren’t on the bypass list.

What causes VPN leaks in the first place

Knowing the cause makes leaks easier to prevent.

Operating system shortcuts. Windows, for example, can send DNS queries out of every network adapter at once and use whichever answers first. A good VPN app blocks this; a basic one may not.

Network changes. Switching between Wi-Fi and mobile data, or waking from sleep, can briefly send traffic outside the tunnel before the VPN reconnects. That’s what the kill switch is for.

Split tunnelling. Apps or sites you exclude from the VPN go out directly, by design. Check that you haven’t excluded the browser by mistake.

Manual and third-party configurations. Using a VPN’s config files in a generic WireGuard or OpenVPN client skips the leak protection built into the provider’s own app. You need to set DNS and firewall rules yourself.

Browser features. WebRTC and browser-level DNS work independently of the system’s network settings, which is why a VPN that protects every other app can still leak in the browser.

VPN leak fixes: DNS leak protection, WebRTC browser setting, IPv6 block and kill switch
Each leak has its own fix: VPN DNS, a browser setting, IPv6 protection and the kill switch.

Which VPNs pass leak tests

Most major paid VPNs pass all three tests with default settings on their own apps, because leak protection is a core feature for them. Where we’ve seen problems is with free VPNs, browser-only proxies sold as VPNs, and manual setups.

If you’re choosing a VPN, look for these four features: DNS leak protection with the provider’s own DNS servers, IPv6 leak protection, a system-wide kill switch, and a browser extension that blocks WebRTC. ExpressVPN and Surfshark both list all four. Our ExpressVPN review covers its setup, and our guide to choosing the right VPN service lists what else to check. Whatever you pick, run the tests yourself after installing it.

Our verdict

A VPN leak test takes less than five minutes, and it’s the only way to know your VPN is doing its job. Run the DNS, WebRTC and IPv6 tests with the VPN off and on, compare the results, and test the kill switch while you’re at it.

In our test, the setup that passed did three things: blocked DNS outside the tunnel, had no IPv6 path, and left the browser nothing to reveal through WebRTC. If your VPN does the same on every device you use, you’re protected.

Heads-up: our ExpressVPN and Surfshark links are affiliate links. If you buy through them, DroidCrunch earns a commission at no extra cost to you.

Can my internet provider see my browsing if my VPN leaks DNS?

Yes. With a DNS leak, your provider sees the name of every site you look up, even though the content of your traffic stays encrypted. It can’t see which pages you read on a site, but the list of sites alone reveals a lot.

Does incognito mode stop WebRTC leaks?

No. Incognito or private mode stops the browser saving history and cookies, but WebRTC works the same way. If your browser leaks your IP through WebRTC normally, it’ll leak it in incognito too. Use the browser settings or extensions covered above.

How often should I run a VPN leak test?

After installing a VPN, after any app update or settings change, and whenever you use a new network such as a hotel or airport Wi-Fi. For everyday use, a quick check every month or two is enough.

Do free VPNs leak more than paid ones?

Often, yes. Free VPNs and browser proxy extensions are more likely to skip DNS and IPv6 protection or lack a kill switch. Some reputable providers offer free tiers with the same protection as their paid apps, so test any VPN rather than assuming.

Can a website see my real IP if my VPN passes all three tests?

Not through these routes. But sites can still recognise you in other ways, such as cookies, logged-in accounts and browser fingerprinting. A VPN hides your IP address, not your identity, if you sign in or keep the same cookies.

Is a WebRTC leak the same as a DNS leak?

No. A DNS leak exposes which sites you look up to your internet provider. A WebRTC leak exposes your real IP address to the websites you visit. You can have one without the other, so test for both.

Why does the leak test show a different city from my VPN server?

IP location databases are often wrong, especially for VPN and data centre addresses. What matters is the IP address and the company that owns it. If the IP belongs to your VPN provider, a wrong city isn’t a leak.

Does a VPN router stop leaks on every device?

It covers every device’s normal traffic, including smart TVs and consoles that can’t run VPN apps. Browsers on those devices can still leak WebRTC, and the router must hand out the VPN’s DNS servers. Test from a device behind the router to confirm.

Summarize this article with AI

Get the key points in seconds. Pick an assistant and it opens in a new tab, ready to go.

ChatGPTClaudePerplexityGoogle AIGrokMistral

Opens in a new tab. Nothing is shared until you pick an assistant.

Share4Tweet2Share1Share
Previous Post

What Is an API? How APIs Work, With Real Examples 2026

Lokesh Kapoor

Lokesh Kapoor

I am Lokesh Kapoor who loves to write blogs, create videos and watch sci-fi movies on Netflix and Jio Cinema. DroidCrunch is my first love and a crucial part of my life.

Related Posts

What is an API: title card showing an app sending a request to a server and getting a JSON response back

What Is an API? How APIs Work, With Real Examples 2026

November 24, 2026
298
What are tokens in AI: title card showing a sentence split into colored token chips beside a context window meter

AI Tokens and Context Windows, Explained With Real Costs 2026

November 24, 2026
298
What is web scraping title card: a web page turning into rows of a data table

What Is Web Scraping? How It Works, What It’s Used For, and Its Limits 2026

November 23, 2026
300
How does a VPN work: a laptop sends data through an encrypted tunnel to a VPN server, and the website sees the VPN's IP address

How Does a VPN Work? What Happens to Your Data 2026

November 23, 2026
301
Load More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

DroidCrunch

Tested first. Then written.

Independent software reviews since 2016. Search the archive, or start with a topic.

WordPressAI toolsHostingVPNSEO
  • 630+reviews, comparisons and guides
  • 243product reviews
  • 36topics covered
  • 2016publishing since
home

An independent tech blog and YouTube channel. We use every tool before we rate it, and we always tell you the catch.

Topics

  • WordPress
  • AI tools
  • Hosting
  • SEO
  • VPN
  • Proxies
  • Automation

Company

  • About DroidCrunch
  • Editorial policy
  • Affiliate disclaimer
  • Write for us
  • Contact

Explore

  • All articles
  • Reviews
  • Deals and coupons
  • Black FridayLive
  • Facebook group
  • Help and support

Recently scored

  • miniOrange Secure MCP Server75%
  • Royal MCP80%
  • WPVibe76%
  • Zapier82%
All reviews

Reader-supportedWhen you buy through our links, we may earn a commission at no extra cost to you. It never changes our verdicts. Read our affiliate disclaimer.

© 2026 DroidCrunch. Independent since 2016.

  • Privacy policy
  • Terms
  • Cookie policy
  • Your GDPR rights
  • RSS
Back to top

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

No Result
View All Result
Subscribe
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact

© 2026 DroidCrunch - Best Place for Tech NomadPrivacy PolicyTerms & ConditionsCookie PolicyGDPR RightsAffiliate Disclosure

DroidCrunch Giveaway

Amazon Gift Card worth $15

Participate now and get a chance to become a lucky winner to receive the reward.​

Join Giveaway