
How to Test Your VPN for IP, DNS, IPv6 & WebRTC Leaks
A VPN can show Connected and still not be protecting every possible network path on your device.
Your visible IPv4 address might correctly belong to the VPN while DNS requests use an unexpected resolver. An IPv4-only VPN might leave your device's normal IPv6 connection available outside the tunnel. A browser may expose network information through WebRTC. Or everything may work correctly until the VPN unexpectedly disconnects.
That is why checking only "What is my IP?" is not enough.
A proper VPN leak test should examine four main areas:
IPv4
IPv6
DNS
WebRTC
You should also test what happens when the VPN connection fails.
This guide explains how to test each layer, how to understand the results and what to investigate if something looks wrong.
If you have not already configured failure protection, start with our VPN Kill Switch Guide.
What Is a VPN Leak?
A VPN leak occurs when network information or traffic that you expected to use the VPN instead takes another path.
The most obvious example is your normal public IP address appearing while the VPN is connected.
But there are several other possibilities.
A VPN configuration can potentially expose or mishandle:
Your normal IPv4 address
Your native IPv6 connection
DNS requests
WebRTC network information
Traffic while the VPN reconnects
Traffic after waking from sleep
Traffic during network changes
Traffic when the VPN application crashes
The objective of testing is simple:
Confirm that the traffic you expect to use the VPN actually uses it — and that another internet path does not silently become available when it should not.
Before Testing: Record Your Normal Connection
Before connecting the VPN, establish a baseline.
Visit a public IP-checking website and record:
Your IPv4 Address
It may look something like:
73.100.20.50
Your IPv6 Address
If your ISP provides native IPv6, you may see a much longer address such as:
2600:abcd:1234:5678::1234
If no IPv6 address appears, your current internet connection may not provide usable IPv6.
Your ISP
Record the network provider shown by the test.
Your Approximate IP Location
IP geolocation is not exact, but recording the displayed region helps with comparison.
Your DNS Resolvers
Run a DNS leak test while disconnected from the VPN and note which resolver providers appear. If your internet provider's resolver shows up here, that is how it sees the site names you visit, which we explain in can my ISP see what sites I visit.
Now you know what your normal unprotected connection looks like.
Connect the VPN and Test Again
Connect to your intended VPN endpoint.
Wait several seconds for networking and DNS settings to settle.
Then run the same IP check again.
For example:
Before VPN:73.100.20.50
After VPN:98.210.40.25
If the second address belongs to the VPN endpoint, then the website you tested is at least receiving its IPv4 traffic through the VPN.
That is a good start.
It is not yet a complete leak test.
Test 1: Check for an IPv4 Leak
IPv4 is the simplest and most familiar VPN test.
With the VPN connected, check your public IPv4 address.
Good Result
Your original ISP IPv4 disappears and only the VPN-facing address appears.
For example:
Normal connection:73.100.20.50
VPN connected:98.210.40.25
Possible Leak
The VPN address appears, but another test also exposes:
73.100.20.50
If the connection is intended to use a full VPN tunnel, your normal public ISP address generally should not appear in ordinary public-facing traffic.
Possible causes include:
Split tunneling
Incorrect routing
VPN client malfunction
Proxy settings
Browser extensions
VPN disconnection
Another network interface
IP Geolocation Does Not Need to Match Perfectly
Do not confuse an IP geolocation database disagreement with a network leak.
One service might identify an IP as:
Miami
while another identifies the same address as:
Fort Lauderdale
or another nearby city.
That does not necessarily mean the VPN is leaking.
The same goes for Google: if only Google places you somewhere else while IP checkers look right, see why Google shows the wrong location and how to fix it.
The more important question is:
Is the public IP the intended VPN address, or is your underlying ISP address appearing?
For a deeper explanation of network location versus physical laptop location, see our How to Hide Your Laptop Location on Windows & Mac.
Test 2: Make Sure IPv6 Cannot Bypass an IPv4-Only VPN
IPv6 is especially important when using a VPN that primarily or exclusively routes IPv4 traffic.
OurVPNs currently uses an IPv4-only VPN configuration.
That means the expected result is not that OurVPNs gives your device a different public IPv6 address.
Instead, the goal is to verify that your device's normal ISP IPv6 connection cannot remain active outside the VPN and bypass the protected IPv4 route.
First Check Your Normal IPv6 Connection
Disconnect the VPN.
Run an IPv6 test.
If your normal ISP provides IPv6, record the address.
For example:
Normal IPv4:73.100.20.50
Normal IPv6:2600:abcd:1234:5678::1234
Now connect the VPN.
Run the test again.
Expected OurVPNs Result
A healthy IPv4-only configuration may look like this:
IPv4: OurVPNs residential VPN address ✅
IPv6: Not detected / unavailable ✅
That is a valid result.
The VPN does not need to provide another IPv6 address if IPv6 is intentionally unavailable outside the tunnel.
Result That Needs Investigation
This is the situation you do not want:
IPv4: OurVPNs residential VPN address ✅
IPv6: Original physical ISP IPv6 address ❌
That would mean IPv4 traffic is using the VPN while the device potentially retains a second native path to the internet through IPv6.
Applications capable of using IPv6 could then potentially bypass the IPv4-only VPN tunnel.
Why This Happens
IPv4 and IPv6 are separate networking protocols.
A system can support both simultaneously.
If the VPN handles IPv4 while the operating system retains native IPv6 connectivity, traffic may not necessarily follow the same path.
That is why an IPv6 test remains important even when the VPN service itself does not offer IPv6.
Why Doesn't OurVPNs Show an IPv6 Address?
Because the current OurVPNs VPN configuration uses IPv4.
The purpose of the IPv6 test is therefore leak prevention, not obtaining a residential IPv6 address.
A result such as:
IPv4: Residential VPN IP
IPv6: Unavailable
can be exactly what you want from an IPv4-only VPN configuration.
Should You Disable IPv6?
If your VPN does not route IPv6, the important requirement is that native IPv6 must not become an unintended bypass route.
Depending on the VPN client, router and operating system, this may be handled by:
Blocking IPv6 while the VPN is active
Disabling IPv6 on the relevant interface
Firewall rules
Router policies
VPN client configuration
The exact implementation can vary.
The test result is what matters:
Your physical ISP's IPv6 address should not remain publicly reachable outside the intended VPN path.
Test 3: Check for DNS Leaks
DNS translates domain names such as:
ourvpns.com
into IP addresses computers can connect to.
When you visit websites, your device makes DNS requests unless the required information is already cached.
A VPN can correctly change your public IPv4 address while DNS queries are still sent somewhere you did not expect.
That is why DNS deserves a separate test.
How to Run a DNS Leak Test
Connect to the VPN.
Visit a reputable DNS leak-testing service.
Run its standard or extended test.
The service generates specially controlled DNS requests and observes which DNS resolver infrastructure ultimately processes them.
Then examine the resolver list.
What Does a Good DNS Result Look Like?
There is no single company name that must appear.
Depending on the VPN configuration, DNS may legitimately be handled by:
A VPN-operated resolver
A privacy-focused resolver
Another third-party DNS provider
A router-level DNS service
The important question is whether the DNS resolver is the one you intended.
What Might Indicate a DNS Leak?
Imagine your physical ISP is:
Example Cable Internet
Your VPN is connected.
You run a DNS test and several resolver entries clearly belong to:
Example Cable Internet
That deserves investigation.
Possible causes include:
VPN DNS settings not being applied
Operating-system DNS configuration
Browser secure DNS settings
Split tunneling
Router DNS behavior
Another network interface
VPN client problems
DNS Encryption and VPN Routing Are Different
Modern browsers and operating systems may support encrypted DNS such as DNS over HTTPS, commonly called DoH.
This is useful, but it solves a different problem.
Encrypted DNS protects the DNS request itself.
The VPN determines the network path used to reach that DNS resolver.
For example, a browser could contact a third-party encrypted DNS resolver while that connection still travels through the VPN.
That does not automatically represent a leak.
The important questions are:
Which resolver is being used?
and:
Which network path is being used to reach it?
Your Browser May Use Different DNS Settings
Chrome, Edge, Firefox and other browsers may provide secure-DNS settings independent from the operating system.
That means you could theoretically have:
Windows DNS → VPN-provided resolver
while:
Chrome → third-party DoH resolver
Neither is necessarily wrong.
But it can make DNS test results look different between browsers.
If you use multiple browsers regularly, test each one.
Test 4: Check for WebRTC Leaks
WebRTC is browser technology used for real-time communication.
It can power:
Video calls
Voice calls
Browser conferencing
Screen sharing
Peer-to-peer communication
To create those connections, WebRTC uses a process known as ICE — Interactive Connectivity Establishment.
The browser identifies possible network routes called ICE candidates.
Those candidates can contain network-address information.
This is why WebRTC deserves a separate VPN test.
How to Run a WebRTC Test
Connect the VPN.
Open a WebRTC leak-testing page in your normal browser.
Compare the network information it displays with the public addresses you recorded before connecting the VPN.
The Most Important Thing to Look For
Your normal ISP-facing public IP should not unexpectedly appear.
Suppose:
Normal ISP IP:73.100.20.50
VPN IP:98.210.40.25
If a WebRTC test exposes:
73.100.20.50
while the VPN is active, investigate the browser and VPN configuration.
Local Addresses Are Not Automatically a Public IP Leak
A WebRTC test may also display local or private networking information.
Examples might include addresses from:
Your home LAN
A virtual network interface
A VPN adapter
A local network
Seeing a private address is not necessarily equivalent to exposing the public ISP IP.
The most important distinction is whether WebRTC can reveal the public connection you intended the VPN to hide.
Should You Disable WebRTC?
Usually not immediately.
WebRTC powers legitimate services such as:
Google Meet
Microsoft Teams in a browser
Discord calls
Browser video conferencing
Voice chat
Disabling WebRTC can break those services.
Test first.
The goal is not:
"WebRTC must disappear."
The goal is:
"WebRTC should not expose an unintended public network address."
Test 5: Test the VPN Kill Switch
A VPN can pass every IPv4, IPv6, DNS and WebRTC test while the tunnel is connected — and still expose the normal internet connection when that tunnel fails.
That is why failure testing matters.
If you have not already configured it, see our complete VPN Kill Switch Guide.
Basic Failure Test
Connect the VPN.
Verify the public VPN IP.
Then force the tunnel to fail.
Try loading a new website.
Expected Strict Kill-Switch Result
VPN unavailable → Internet blocked
When the VPN returns:
VPN restored → Internet restored
Problematic Result
VPN disconnects.
Website continues loading.
Your normal ISP IP returns.
That means the physical internet connection is acting as a fallback.
Test Startup
One of the most overlooked leak opportunities occurs before the VPN has finished connecting.
Restart the computer.
Ask:
Can applications access the normal internet before the VPN tunnel starts?
If yes, there may be an unprotected startup window.
For users requiring strict VPN-only routing, persistent kill-switch protection can help prevent this.
Test Sleep and Wake
Laptops repeatedly disconnect and reconnect network interfaces when sleeping.
Test this deliberately.
Connect the VPN.
Put the laptop to sleep.
Wake it.
Immediately attempt to access the internet.
Ideally:
Tunnel not ready → traffic blocked
then:
Tunnel restored → traffic works
rather than:
Physical network reconnects → traffic escapes → VPN reconnects later
Test Network Switching
Travelers should test changing the physical connection as well.
Examples:
Wi-Fi → Ethernet
Ethernet → Wi-Fi
Wi-Fi → phone hotspot
The VPN may need to rebuild routing when the underlying network changes.
The kill switch should continue enforcing the intended policy during that transition.
For a larger travel connectivity strategy, see our How to Work Remotely From Abroad Guide and Digital Nomad Connectivity Guide.
Test the Browsers You Actually Use
VPN leak testing is not always purely an operating-system issue.
Different browsers may use:
Different secure-DNS settings
Different WebRTC behavior
Different privacy features
Browser extensions
Proxy settings
If you regularly use Chrome, Edge, Firefox or Safari, test the browsers you actually depend on.
Your intended public VPN address should remain consistent.
Repeat Tests Without Browser Extensions
VPN, privacy and proxy browser extensions can modify network behavior.
If you see an unexpected result, repeat the test using:
A clean browser profile
A browser without extensions
Another browser
This can help determine whether the problem comes from:
VPN routing
or
browser configuration.
What Should a Healthy OurVPNs Connection Look Like?
For the current IPv4-only OurVPNs configuration, a healthy result should generally resemble:
IPv4
OurVPNs residential IPv4 address
IPv6
No native physical-ISP IPv6 bypass
IPv6 may appear unavailable because OurVPNs currently uses IPv4-only VPN routing.
DNS
The intended resolver path
The local ISP should not unexpectedly receive DNS queries if that is not part of your configuration.
WebRTC
No unexpected original public ISP address
VPN Failure
Traffic behaves according to your configured kill-switch policy rather than silently returning to the underlying ISP
That is a much more complete test than simply checking one IP website. To see what a site can learn beyond your IP, read what websites can actually see when you use a VPN.
Common VPN Leak Problems
Your Original IPv4 Appears
Possible causes:
VPN disconnected
Split tunneling
Incorrect routes
VPN application problem
Proxy configuration
Browser extension
Your Original IPv6 Appears
With an IPv4-only VPN such as the current OurVPNs configuration, this is particularly important.
It can indicate that native IPv6 remains available outside the protected IPv4 tunnel.
Investigate the device, VPN client or router's IPv6 handling.
Your ISP's DNS Servers Appear
Possible causes:
VPN DNS configuration
Router DNS settings
Browser secure DNS
Operating-system overrides
Split tunneling
WebRTC Shows Your Normal Public ISP IP
Investigate:
Browser configuration
VPN routing
Split tunneling
Proxy extensions
WebRTC behavior
Everything Is Protected Until the VPN Fails
The VPN tunnel is probably doing its job.
The missing protection may be the kill switch.
See our VPN Kill Switch Guide.
Split Tunneling Changes How You Interpret Results
Split tunneling deliberately allows some traffic outside the VPN.
For example:
Browser → VPN
Streaming application → normal connection
If split tunneling is enabled, seeing more than one network path may be intentional.
Before calling something a leak, ask:
Was this traffic supposed to use the VPN?
If yes and it bypassed the tunnel, investigate.
If no, the split-tunnel rule may be functioning exactly as configured.
Test Router-Level VPNs Too
If the VPN runs on a router instead of directly on the laptop, still perform leak tests from the devices behind it.
Test:
Laptop
Phone
Tablet
Another connected device
The architecture might be:
Device → VPN router → encrypted tunnel → residential gateway → internet
If the router VPN fails, a router-level kill switch should prevent the router from simply forwarding client traffic through its ordinary WAN connection when the desired configuration is VPN-only.
How a Residential VPN Fits Into Leak Testing
Residential, datacenter and ISP addresses describe what type of network your connection exits through.
Leak testing asks a different question:
Is your traffic actually reaching the internet through that intended connection?
For example, an OurVPNs dedicated residential VPN can provide the intended residential IPv4 endpoint.
Your testing verifies that:
IPv4 → OurVPNs residential VPN
IPv6 → no native ISP bypass
DNS → intended route
WebRTC → no original public ISP IP
VPN failure → protected according to the kill-switch configuration
If the terminology is unfamiliar, see:
Residential IP vs Datacenter IP vs ISP IP
Dedicated IP vs Static IP vs Residential IP
Complete VPN Leak-Test Routine
For a thorough test, use this order:
1. Disconnect the VPN
Record:
Normal IPv4
Normal IPv6
ISP
DNS resolvers
2. Connect the VPN
Wait for the connection to stabilize.
3. Check IPv4
Confirm the intended VPN IPv4 appears.
4. Check IPv6
For an IPv4-only VPN such as OurVPNs, confirm that the original ISP IPv6 does not remain publicly reachable.
5. Check DNS
Verify which resolvers receive your queries.
6. Check WebRTC
Confirm your normal public ISP IP does not unexpectedly appear.
7. Force the VPN to Fail
Verify the kill switch.
8. Restart the Device
Test startup behavior.
9. Sleep and Wake
Verify traffic does not escape during reconnection.
10. Change Networks
Switch between Wi-Fi, Ethernet or hotspot where applicable.
11. Test Your Main Browsers
Pay particular attention to DNS and WebRTC.
12. Repeat After Major Changes
Retest after:
Operating-system updates
VPN updates
Router firmware updates
Browser updates
Changing VPN protocols
Network-driver updates
Major configuration changes
VPN Leak Testing Checklist
Before considering the VPN configuration verified, check:
Normal IPv4 recorded
Normal IPv6 status recorded
Normal ISP recorded
VPN IPv4 verified
Native IPv6 bypass tested
DNS resolvers checked
WebRTC checked
Original public ISP address absent
Browser secure-DNS settings understood
Split tunneling reviewed
Kill switch enabled where required
Forced VPN failure tested
Startup tested
Sleep/wake tested
Network switching tested
Router VPN tested if applicable
Main browsers tested
Browser extensions reviewed
Configuration retested after major changes
Frequently Asked Questions
How Do I Know If My VPN Is Leaking?
Record your normal network information before connecting.
Then connect the VPN and test:
IPv4
IPv6
DNS
WebRTC
Finally, force the VPN connection to fail and observe whether traffic falls back to the normal internet connection.
What Is an IP Leak?
An IP leak occurs when a public network address that you expected the VPN to hide remains exposed.
The most obvious example is your normal ISP IPv4 appearing while traffic is supposed to use the VPN.
What Is an IPv6 Leak With an IPv4-Only VPN?
An IPv6 leak can occur when the VPN protects IPv4 but the device still has direct IPv6 connectivity through the physical ISP.
For OurVPNs' current IPv4-only configuration, you do not need to see an OurVPNs IPv6 address.
Instead, your normal ISP IPv6 should not remain as a usable bypass route.
Why Doesn't OurVPNs Show an IPv6 Address?
OurVPNs currently routes its VPN connection using IPv4.
Therefore, an IPv6 test may report:
IPv6 unavailable
while the VPN is active.
That can be expected.
The important thing is that your original physical ISP IPv6 address does not remain exposed outside the VPN.
What Is a DNS Leak?
A DNS leak occurs when DNS queries unexpectedly use a resolver or network path outside the VPN configuration you intended.
What Is a WebRTC Leak?
WebRTC uses network candidates to establish real-time browser connections.
If that process exposes your normal public ISP address while the VPN is active, the browser or VPN configuration deserves investigation.
Should I Disable WebRTC?
Not automatically.
WebRTC is used by legitimate browser communications.
Test first and determine whether it is actually exposing an unintended public address.
Is DNS Over HTTPS Enough to Prevent a DNS Leak?
Not by itself.
DNS over HTTPS encrypts communication with a DNS resolver.
VPN routing determines the path used to reach that resolver.
They are related but separate protections.
Should I Disable IPv6 With OurVPNs?
The important requirement is that IPv6 should not bypass the IPv4-only VPN tunnel.
Depending on the device and configuration, that may involve blocking or disabling IPv6 while the VPN is active.
Verify the result through testing rather than assuming it is protected.
Does a Kill Switch Prevent All VPN Leaks?
No.
A kill switch primarily prevents traffic from falling back to the normal connection when the VPN becomes unavailable.
You should still test IPv4, IPv6, DNS and WebRTC while the VPN is functioning.
Can a VPN Leak Test Tell My Physical Location?
Not completely.
VPN tests evaluate network information.
A laptop may have other physical-location mechanisms including Wi-Fi positioning, GPS, cellular hardware and Location Services. And if the IP itself points to the wrong place, see why your IP address shows the wrong city.
See our Laptop Location Privacy Guide for those issues.
Final Thoughts
Seeing VPN Connected is the beginning of verification, not the end.
A complete VPN test should answer five questions:
Which IPv4 address is visible?
Can native IPv6 bypass the tunnel?
Who receives your DNS requests?
What public network information can WebRTC expose?
What happens when the VPN disappears?
For the current IPv4-only OurVPNs configuration, the ideal result is straightforward:
Residential VPN IPv4 visible
No physical-ISP IPv6 bypass
DNS following the intended configuration
No unexpected public IP through WebRTC
No silent fallback when the VPN fails
When those results match the behavior you intended, you can have much greater confidence in the VPN setup.
For users who want a stable residential endpoint, learn more about OurVPNs dedicated residential VPN connections.
You can also start a free 3-day OurVPNs trial and perform the tests in this guide on your own connection.
Continue Reading
Continue building and testing your VPN setup with these related OurVPNs guides: