On this page

Summary: Yes, but only in a specific sense. For traffic that actually travels through the VPN tunnel, websites and online services generally see the VPN’s public exit IP address rather than the public address your connection would otherwise use. Your usual address does not disappear: your local network can still identify your device, your internet provider still sees the connection to the VPN server, and the VPN provider can see the public IP from which you connect. Traffic that bypasses the tunnel can still expose your usual public-facing address. Swapping the address a site sees also does not stop that site from recognizing you through sign-ins, cookies, or other signals.

VPN Advisors is an independent, affiliate-supported website that explains how VPNs work, what they protect, and how to evaluate VPN services. This article explains how a VPN changes the IP address websites see, when your original address may remain visible, and why IP masking does not guarantee anonymity. For a broader explanation of VPN routing, servers, and traffic protection, see our How Does a VPN Work? guide.

How a VPN replaces the IP address a website sees

Without a VPN, a website sees the single public address your request came from. The IETF’s WebRTC IP handling standard (RFC 8828) describes this as the typical web scenario: the server learns one public internet address, the one the HTTP request was sent from. A public IPv4 address can represent several devices behind one router, and some internet providers share a public address among customers using carrier-grade NAT.

A VPN changes which machine sends your traffic onto the open internet. Security researchers at Leviathan Security Group lay out the sequence in their technical write-up on VPN routing:

  • The VPN app creates a virtual network interface on your device, and routing rules send outgoing traffic to it.
  • The app encrypts each original packet and places it inside a new packet addressed to the VPN server. That outer packet travels over your normal connection; a home router or mobile carrier may translate its source IP address before it reaches the VPN server.
  • The VPN server decrypts the inner packet and forwards it to the destination using a public exit address associated with the VPN service. The researchers note this is the step VPN providers market as “IP hiding.”
  • Replies come back to the VPN server, which encrypts them and returns them to your device.

The result, in the words of the Electronic Frontier Foundation’s Surveillance Self-Defense guide, is that your traffic appears to originate from the VPN rather than your ISP, and from a website’s point of view your location appears to be wherever the VPN traffic exits to the internet. The FTC’s guidance on VPN apps describes the same effect: traffic to a website can appear to come from the VPN’s servers.

A simple example. Say your home connection uses the public address 203.0.113.25 and, in this simple single-server example, the VPN uses 198.51.100.7 both for the tunnel connection and as its exit address. When you load a news site through the VPN, your internet connection sends outer packets toward 198.51.100.7, and the news site receives the request from 198.51.100.7 rather than 203.0.113.25. These addresses are reserved for examples. Some VPN configurations use different entry and exit addresses; the site sees the exit address.

You can check the basic effect by comparing the public IP address shown by the same IP-checking website before and after connecting to a VPN. A changed result shows what that test page sees; it does not prove every app, IPv6 connection, or WebRTC path is using the tunnel.

Who sees which IP address

The most common simplification is that a VPN hides your IP address from “everyone.” In practice, each party along the path sees a different slice of the connection.

Who sees which IP address
Observer IP address it sees What else it can see or infer
Your local network (home router, café or hotel Wi-Fi) Your device’s local-network address and packets addressed to the VPN server; the router also knows its public-facing connection For tunneled traffic, it can observe the VPN connection and its timing and size, but not the inner website destinations or content. Traffic outside the tunnel is different.
Your internet service provider (ISP) The public-facing address of your internet connection and the VPN server’s IP address The VPN connection and its timing and volume, but not the individual destinations or content inside a properly encrypted tunnel
The VPN provider The public IP from which you connect, and destination IP addresses for traffic the service forwards Destination IPs and traffic metadata; HTTPS still protects the contents of encrypted web sessions from ordinary inspection by the VPN provider
Websites and online services The VPN’s public exit IP address for traffic that actually travels through the tunnel Everything you give them directly: sign-ins, form entries, cookies, and other browser signals. They may also be able to tell the address belongs to a VPN
Web pages using real-time browser features (WebRTC) Usually the VPN exit address when WebRTC follows VPN routing; potentially additional addresses if it uses other paths Depending on browser settings and VPN routing, it may discover an ISP-facing public address or local addresses as well

The pattern is compartmentalization rather than concealment. Your local network can see your device connecting to the VPN, and your ISP sees the connection to the VPN server, but neither can directly inspect the destinations or content carried inside a properly encrypted VPN tunnel. The destination receives the VPN’s exit address rather than your usual public-facing address. The VPN provider is positioned to see your connection’s public address and the destinations it forwards traffic toward. EFF warns that traffic information hidden from an ISP becomes visible to the VPN provider, which may also collect your IP address. That does not make HTTPS-encrypted page contents readable to the VPN provider. The FTC describes the arrangement as shifting trust from your network providers to the VPN provider.

The table describes a commercial VPN. With a workplace VPN, the organization running the corporate network has comparable visibility into traffic routed through that VPN, as EFF notes.

When traffic can expose an address other than the VPN’s

A VPN only replaces the address on traffic that is actually routed through the tunnel. Your operating system decides, packet by packet, which network interface to use, and several ordinary configurations, platform rules, and attacks can send some traffic out through your normal connection instead. That traffic can expose the ordinary public-facing IP address used by that route to its destination.

Split tunneling and per-app settings

Some VPN configurations deliberately route only part of your traffic through the tunnel. Microsoft’s Windows VPN routing documentation distinguishes a force-tunnel configuration, where all traffic goes over the VPN, from a split-tunnel configuration, where only specified routes use the VPN and everything else goes over the physical interface. On Android, Google’s VPN documentation for managed devices explains that, without a non-VPN traffic block, apps outside an allowed list use the system network as if the VPN were not running. With Android’s “Block connections without VPN” setting enabled, those excluded apps instead lose network access. When bypass traffic is allowed, the sites those apps contact can see the usual public-facing address.

Operating-system exceptions

Even “send everything through the VPN” modes have platform-defined exceptions. Apple’s developer documentation for the includeAllNetworks setting says that when it is enabled, the system routes traffic through the tunnel except for designated system services, such as captive-portal sign-in for Wi-Fi hotspots, certain cellular services like VoLTE, and communication with companion devices like an Apple Watch. The setting is off by default, so how much traffic is captured depends on how the VPN app is built.

On Android, a 2022 security audit of Mullvad’s app identified connectivity checks sent outside the VPN tunnel when the device joined Wi-Fi, even with “Block connections without VPN” enabled. In Mullvad’s original disclosure, the company reported DNS lookups and HTTP(S) connectivity checks that could reveal the connection’s public-facing address to the check server. This was a documented system exception, not evidence that normal browsing in every Android VPN configuration bypasses the tunnel. A DNS leak can reveal queries to a resolver without necessarily exposing your usual IP address to the website you visit.

Gaps before connecting or after a drop

A VPN tunnel cannot carry new traffic while it is down. Android’s “Block connections without VPN” option can prevent ordinary apps from using a non-VPN connection when an always-on VPN is unavailable. Without that block, those apps may use the normal network while the VPN is disconnected. Whether and how a VPN app blocks traffic during startup or after a disconnection is an implementation detail that varies by platform and provider.

IPv6 handled differently from IPv4

Many networks carry both IPv4 and IPv6 traffic. To prevent direct connections, a VPN needs to carry or block both address families. Microsoft’s documentation shows the full-tunnel approach adding default routes for IPv4 and IPv6. If a VPN tunnels IPv4 but leaves IPv6 free to use the ordinary network, IPv6 traffic can bypass it. A 2015 peer-reviewed study of 14 commercial VPN services found that most suffered from IPv6 traffic leakage, largely because clients configured IPv4 routes while leaving IPv6 routing untouched. The study is dated and says nothing about any current product, but it illustrates why IP replacement depends on implementation rather than being guaranteed by the category.

Route manipulation on hostile networks

In 2024, Leviathan Security Group disclosed TunnelVision (CVE-2024-3661), a technique in which someone controlling the local network uses a standard DHCP feature to push routing rules that take priority over the VPN’s. Matching traffic is then sent out through the physical network interface without ever entering the tunnel, so it no longer carries the VPN server’s address. The VPN continued to show as connected and kill switches were not triggered in the researchers’ testing. They reported that Windows, Linux, macOS, and iOS were affected, that Android was not because it does not support the DHCP option involved, and that the effect is independent of the VPN protocol. Mitigation depends on how a given VPN client configures the device.

Real-time browser features

Browsers use a technology called WebRTC for video calls and peer-to-peer connections, and it works by discovering several possible addresses for your device. RFC 8828 notes that with a split-tunnel VPN, WebRTC can discover both the VPN’s public address and the ISP public address the VPN runs over, and that it can also reveal private local-network addresses. The standard recommends that, by default, WebRTC traffic follow the same route as ordinary web traffic, which limits that exposure in full-tunnel setups. Actual behavior depends on the browser and the VPN configuration.

Why a different IP address is not anonymity

An IP address is one identifier among many. EFF notes that it gives an indication of your general location and can therefore be used to identify you, which is why replacing it can matter. But the same guide is explicit that a VPN is not a tool for anonymity, because companies can track people in many other ways, including GPS, web cookies, tracking pixels, and fingerprinting. Those methods can still link your activity or identify you even when a site sees the VPN’s address.

Several limits follow directly from how the mechanism works:

  • Information you share with a site can still identify you. The FTC notes that sites can use identifying information you share directly, such as an email address entered in a form, to track you. Signing in to an account identifies you to that service regardless of the IP address in front of it.
  • The VPN address can itself be recognizable. According to the FTC, sites may be able to determine that you are using a VPN. A replaced address can show that a VPN is in use without revealing who is using it.
  • The VPN provider also learns your connection’s public address. EFF also points out that paying by credit card can give the provider information linked to your identity.

A more accurate description of what a VPN does to your IP address is this: for traffic that goes through the tunnel, destinations generally see the VPN’s exit address instead of your usual public-facing address. Your ISP and local network still see the VPN connection, while the VPN provider gains visibility into the traffic it forwards. Websites can still recognize you through other information. That is a meaningful change in who sees which part of your activity, not a guarantee of anonymity.