unbraid

Guides · Published · Updated on

How to check if your VPN is working on Android

The quickest check takes a minute. Open a page that shows your IP address, note it, then connect the VPN and reload. If the address changes to the one of your VPN exit, your browser is going through the VPN.

Before you start: turning the VPN off for that first look lets every app on the phone use your normal connection for a moment. And if Android’s Block connections without VPN is on, nothing loads with the VPN off. In both cases you can skip the “before” step: you’ll recognise your home or mobile address anyway, because it belongs to your internet provider.

A changed IP address doesn’t tell you where your DNS lookups go, whether IPv6 or WebRTC take another way out, or what any other app does. The checks below cover those.

1. Your IP address

Any “what is my IP” page works. Two that load fast on a phone:

  • cloudflare.com/cdn-cgi/trace is plain text. The line ip= is the address Cloudflare sees, loc= the country Cloudflare thinks it’s in.
  • ipleak.net shows the address, a country, your DNS servers and any IPv6 address on one page.

Most VPN providers also have a check page of their own.

The test checks one thing: the address that test site saw for that request. Compare it with the exit you chose. If you use a commercial VPN, it should belong to your provider. If you run your own exit, at home or on a server you rent, it’s that connection’s address, which may well belong to an ordinary internet provider.

The country can be wrong while the VPN works fine. Sites guess the country from location databases, and those disagree with each other. “Virtual locations”, where a server sits in one country and is offered as another, add to the confusion. A country label alone can’t confirm the route. The address can.

2. DNS lookups

Before your phone connects to a site, it looks up the site’s address. That lookup goes to a DNS server, and the server learns every name you look up. With a VPN on, you’d expect your VPN’s DNS server or one you chose yourself. If it’s your internet provider’s or your mobile carrier’s, look closer.

A DNS leak test works with made-up names. The page makes your browser look up random names under the test site’s own domain, names nobody has looked up before. Your phone asks its DNS server, that server asks the test site’s name server, and the test site sees which server asked. That’s the list the test shows you.

Run dnsleaktest.com (the extended test asks more names) or look at the DNS section of ipleak.net. Then compare the servers with the DNS you meant to use:

  • Your internet provider or mobile carrier, when you expected your VPN’s DNS: something is sending lookups another way. Check that the browser isn’t excluded from the VPN, Android’s Private DNS, and the browser’s own secure DNS setting (below).
  • A public DNS service such as Quad9, Cloudflare or Google: fine if that’s what your VPN or you chose. On its own it doesn’t prove the lookups went through the tunnel, because those services can also be reached directly.
  • The service you set in Android’s Private DNS: see below.

The test sees only the DNS server that asked, not the path your lookup took to reach it. It tells you who answers, which is usually what you want to know.

Private DNS and the browser’s own DNS

Android has a setting called Private DNS (Settings, Network & internet, Private DNS on a Pixel; on Samsung under Connections, More connection settings). Set to a hostname such as dns.quad9.net, it sends lookups encrypted to that service, and a VPN app’s own DNS can be bypassed as a result. A leak test then shows that service. It isn’t a leak to your internet provider, but your VPN’s DNS, and any blocking it does, isn’t used. Setting Private DNS to Automatic stops forcing that hostname.

Browsers can have their own setting too. Chrome on Android has Use secure DNS under Settings, Privacy and security. With a provider chosen there, Chrome sends its lookups to that provider whatever Android or the VPN says.

3. IPv6

Many home and mobile networks give your phone an IPv6 address as well as an IPv4 one. A VPN has to either carry IPv6 or block it. If IPv6 can still leave outside the tunnel, sites that have an IPv6 address see your real one.

ipleak.net shows an IPv6 address if your browser has one. With the VPN on, you want either no IPv6 address or one that belongs to your VPN exit. An IPv6 address from your own internet provider means IPv6 goes around the VPN: look for an IPv6 or leak protection setting in your VPN app.

An empty IPv6 result only means something if the network has IPv6 to begin with. Compare with the VPN off, on a network where the test does show an IPv6 address.

4. WebRTC

WebRTC is what browsers use for calls and video chat. To connect two people directly, the browser collects its network addresses, and a web page can ask for them. That’s why leak tests check it.

BrowserLeaks’ WebRTC test shows what your browser gives away. Two kinds of address can appear:

  • A local address, such as 192.168.1.23, or a random name ending in .local that browsers use to hide it. This is your phone’s address inside your own Wi-Fi network. It doesn’t show that traffic left outside the VPN.
  • A public address. With a working VPN it should be your VPN exit’s. If your normal public address shows up, WebRTC has found a way out that doesn’t use the VPN, for example over IPv6 or because the browser is excluded.

5. Every app that isn’t the browser

A browser test only tells you about the browser. With split tunneling, each app can take a different way out. An app you excluded from the VPN normally uses your normal connection, or no connection at all if Block connections without VPN is on, and nothing you do in the browser shows it.

Android doesn’t show which network an app uses, so for other apps you have to look elsewhere:

  • An app that shows its own connection details, such as a speed test app, tells you what that app sees.
  • Your VPN app’s split tunneling list shows which apps it leaves out.
  • In unbraid, each connected VPN route on Routes shows its exit’s public address, when the check through that exit succeeds. With statistics on, Flows in Stats shows how much traffic each app, and each website with a route of its own, sent through each VPN exit in the period you pick. Direct traffic isn’t shown there.

What results mean and what to do

You see Likely cause What to do
Your normal address in the browser VPN not connected, browser excluded, or the browser is in your work profile or Private Space Check the key icon in the status bar, the VPN app’s split tunneling list, and which profile the browser is in
An unexpected internet provider’s DNS servers The browser is excluded, the VPN app isn’t setting DNS, or something else picks the DNS server Fix the exclusion, check the VPN app’s DNS setting, Android’s Private DNS and the browser’s secure DNS
The Private DNS service you chose Android’s Private DNS has a hostname set Leave it if that’s what you want, or set Automatic
Your exit’s address, but the wrong country Location databases disagree Nothing, as long as the address is your exit’s
An IPv6 address from your internet provider IPv6 goes around the VPN Turn on IPv6 handling or leak protection in the VPN app
Your normal address for a moment after a restart or network change Android isn’t keeping the VPN on Turn on Always-on VPN and Block connections without VPN: see the kill switch guide

With unbraid

  • Each app has its own exit, so test from the app you care about, or look at its route on Routes. A browser on one route tells you nothing about an app on another. A website route can override the browser’s route when its lookup passes through unbraid. Check that the test page has no website rule before using it to identify the browser’s exit.
  • DNS goes through the app’s route. unbraid answers lookups inside the phone and looks the name up again through the exit the app uses. An Own DNS server behind your home WireGuard tunnel is asked through that tunnel, and one in your tailnet through Tailscale while Reach your tailnet is on. The DNS server is the provider’s, one the tunnel supplies, or the filter you picked in Protection. Where a tunnel has none, unbraid uses Quad9 through that tunnel. The server a leak test shows can still be in another country than the exit, since big DNS services run servers in many places.
  • Private DNS. If Android’s Private DNS has a hostname set, apps’ lookups skip their routes’ DNS. Routes shows a warning when that’s the case.
  • IPv6 is blocked for traffic passing through unbraid, so an IPv6 test from an app on a route should show no IPv6 address. Apps you set to Direct keep IPv6 only while they stay outside unbraid: with Block connections without VPN on, or when Protection filters their lookups, they pass through unbraid and use IPv4 only. Apps that follow a Direct default route always pass through and use IPv4 only.
  • The exit check shows an address, not a country, because of the location database problem above.

The split tunneling guide shows how routes work, and a different VPN country for each app how to give apps different exits.

Questions

How do I know my VPN is on? A key icon in the status bar means a VPN is connected. It doesn’t tell you which apps use it, or where your lookups go. Run the IP and DNS tests above.

Is a DNS leak dangerous? It shows the DNS server, often your internet provider’s, the names of the sites you visit. It doesn’t show what you do on them. If you use a VPN for privacy, it’s still worth fixing.

How often should I test? After you set up the VPN, after you change its settings or split tunneling, and after a big Android update. Not every day.

Bring your own VPN

unbraid is a VPN client with no servers of its own. You sign in with an account you already have, or add your own server. It has built-in support for AirVPN, ExpressVPN, IVPN, Mullvad, NordVPN (affiliate link), Private Internet Access, Proton VPN (Free included), Surfshark (affiliate link) and Windscribe. For CyberGhost, you import config files from your account, with step-by-step help in the app.

We earn a commission if you subscribe through a link marked (affiliate link). It helps keep unbraid free. If you're about to subscribe to a VPN service, thank you for considering doing it through one of them.