Digital Privacy · VPN Guide

Does a VPN Hide Your IP Address?

Learn how a VPN masks your public IP address, what your ISP and websites can still see, how leaks happen, and how to check your VPN privacy.

A VPN routes covered traffic through a remote server, so destination websites usually see the VPN server's public IP address instead of the address assigned to your connection.
On this page — Article contents
  1. What Is an IP Address?
  2. How Does a VPN Hide Your IP Address?
  3. What Does a VPN Hide From Websites?
  4. What Can Your ISP See?
  5. Can a VPN Provider See Your Real IP?
  6. What Can a VPN Not Hide?
  7. Can Websites Detect a VPN?
  8. Does a VPN Hide Your Location?
  9. How to Check Your VPN
  10. VPN vs. Proxy vs. Tor
  11. Is a VPN Enough for Privacy?
  12. Frequently Asked Questions
  13. Final Thoughts
  14. References & Further Reading

The quick answer

Yes. A VPN generally hides your original public IP address from websites by routing covered traffic through a VPN server. The destination normally sees the server's public IP address instead. However, a VPN does not guarantee anonymity: providers may see your connecting IP address, websites can recognize accounts and tracking identifiers, and misconfigured traffic can leak outside the tunnel.

Yes, a VPN generally hides your original public IP address from websites and online services by routing your internet traffic through a VPN server. When the connection is working correctly, the destination website typically sees the VPN server's public IP address instead of the address assigned to your internet connection.

However, hiding your IP address is not the same as becoming anonymous online. Your VPN provider may be able to see the IP address you connect from, websites can recognize you through account logins and tracking technologies, and certain network or browser configurations can expose information you expected to keep private.

Understanding these limitations helps you decide when a VPN is useful and what additional privacy measures you may need. This guide explains how VPN-based IP masking works, what your internet service provider (ISP) can observe, how to identify potential leaks, and how VPNs compare with proxies and Tor.

What Is an IP Address?

An Internet Protocol (IP) address is a numerical address used to identify a network interface and help route data across networks. Devices and servers use IP addressing to send information to the correct destination.

There are two important categories to understand.

Public IP addresses are used for communication across the public internet. Your internet connection typically uses a public IPv4 address, a public IPv6 address, or both. Websites can generally see the public source IP address of incoming connections.

Private IP addresses are used within local networks, such as the network connecting your laptop, smartphone, and router at home. A device might have a private address such as 192.168.1.25, while the router uses a public address for many connections to the internet.

Network Address Translation (NAT) commonly allows multiple devices on a local network to share a public IPv4 address. Learn more in Synth Visual's guide to What Is NAT and How Does It Work?

An IP address can provide clues about the network an internet connection uses. IP geolocation services may estimate a country, region, or city, and IP registration information can identify an associated internet provider.

However, IP-based geolocation is not a precise tracking system. The results vary by network and location, and an IP address alone does not necessarily identify a specific individual or reveal their street address. MaxMind's IP geolocation guidance explains these limitations.

IP addresses may also change over time, be shared by many users, or belong to mobile and business networks that serve people across a broad area. This distinction matters because a VPN changes the public IP address visible to the destination service, not necessarily every other identifier associated with your device.

How Does a VPN Hide Your IP Address?

A virtual private network (VPN) creates a protected connection between your device and a VPN server. It routes selected internet traffic through that connection before forwarding it to its destination.

The process generally works as follows.

1

Your device connects to a VPN server

The VPN application establishes a connection using a supported VPN protocol.

2

A protected tunnel is established

Traffic covered by the VPN's routing rules is encapsulated and typically encrypted while traveling between your device and the VPN server.

3

The VPN server forwards your traffic

The server sends requests to websites and other online services on your behalf.

4

The destination sees the VPN server's IP address

The website normally sees the public IP address from which the VPN server's outgoing connection originates.

5

The response returns through the VPN

The VPN server sends the response back through the protected connection, where your device processes it.

The Internet Engineering Task Force's IPsec architecture, RFC 4301, documents how IPsec can protect traffic through tunnel-mode operation. Consumer VPN implementations vary, but the general principle of routing traffic through a remote server explains the IP-masking effect.

The basic traffic flow is:

StageWhat happensAddress generally visible
Your device to VPN serverCovered traffic travels through the protected VPN tunnel.The VPN server can generally observe the public source address connecting to it.
VPN server to destination websiteThe VPN server forwards the request to the destination.The website normally sees the VPN server's outgoing public IP address.

Encryption and IP masking serve related but different purposes. Encryption helps prevent intermediaries on the path to the VPN server from reading protected traffic. Routing through the VPN server changes the apparent public source address seen by the destination.

A VPN does not necessarily route every application or connection through its tunnel. Split tunneling, application-specific settings, unsupported traffic, connection failures, and operating-system routing behavior can affect which traffic is protected. If some traffic bypasses the VPN, its public source IP address may remain visible to the destination.

What Does a VPN Hide From Websites?

When a VPN is functioning correctly and the relevant traffic travels through its tunnel, websites generally cannot directly obtain your original public IP address from that connection.

This can conceal or change several pieces of information:

  • Your original public IP address: A website ordinarily receives the VPN server's public IP address instead.
  • Some IP-based geographic clues: A location lookup may associate the connection with the VPN server's region rather than your actual region.
  • Some information about your original network: The website usually sees information associated with the VPN exit connection rather than a direct connection from your home or mobile network.

However, these benefits apply primarily to network-level information. A VPN does not automatically conceal everything your browser or applications reveal.

For example, a website can recognize an account when you sign in, use existing cookies to associate a visit with an earlier session, or collect browser characteristics to help recognize the same device across visits.

If you visit a website while connected to a VPN and log into your personal account, the website may still know which account is using the service. It simply sees the connection arriving from a VPN address. A VPN therefore reduces one source of identifying information without eliminating all the others.

What Can Your Internet Service Provider See When You Use a VPN?

Your ISP provides the connection between your device and the internet. When you use a VPN, your ISP ordinarily still handles the network connection, but its direct view of your traffic changes.

The ISP can generally observe:

  • The public IP address of your internet connection.
  • The IP address of the VPN server to which you connect.
  • When the VPN connection begins and ends, and how long it remains active.
  • The amount of traffic transferred and other connection metadata.

A properly configured VPN encrypts the traffic it carries between your device and the VPN server. This generally prevents your ISP from directly reading the contents of that protected traffic.

However, the ISP may still infer information from connection patterns and traffic volume. It may also observe DNS requests or other activity that bypasses the VPN, depending on your device and network configuration.

The distinction between the ISP's ability to observe a connection and its ability to read its contents is important. Seeing that you connected to a VPN server does not automatically mean the ISP can read the websites' content or every request sent through the tunnel.

HTTPS also remains important. It encrypts communication between your browser and the website, adding protection beyond the VPN tunnel. MDN's HTTPS documentation explains how HTTPS uses TLS to protect communications.

Can a VPN Provider See Your Real IP Address?

Yes. A VPN provider will generally be able to observe the public source IP address from which your device connects to its VPN server, along with certain connection metadata.

This happens because the VPN server must receive your connection before it can forward your traffic. When your device connects directly from your home network, the source address visible to the VPN infrastructure is typically the public address of that network.

What the provider records, retains, or can associate with a particular account depends on its logging practices, system architecture, and operational policies.

A VPN provider's visibility also depends on the type of traffic involved. The provider operates the point where VPN traffic exits its tunnel, so it may be able to observe destination IP addresses and other connection metadata. If traffic is not protected by HTTPS or another end-to-end encryption layer, its contents may also be exposed at that point. HTTPS helps protect content between the browser and the destination website even when a VPN is used.

When evaluating a VPN service, look for a clear privacy policy, understandable logging practices, information about its technical architecture, and credible independent assessments where available.

Do not assume that every VPN provider keeps the same information—or that a claim of being a "no-logs VPN" automatically proves that no relevant data can be collected.

The Federal Trade Commission's guidance on VPN apps emphasizes that a VPN does not automatically make users anonymous and that choosing a VPN shifts some trust from the ISP to the VPN provider.

What Can a VPN Not Hide?

A VPN is useful for changing the public IP address visible to destination services, but it does not eliminate every form of identification or security risk.

Your Identity When You Log In

Signing into an email, social media, shopping, or banking account can identify you regardless of the IP address being used.

A website may associate your current activity with your existing account, purchase history, saved preferences, and previous sessions. A VPN does not erase that relationship.

Cookies and Browser Fingerprinting

Cookies can store identifiers and session information in your browser. Depending on their scope and configuration, they may help websites recognize returning visitors.

Browser fingerprinting works differently. It combines characteristics such as browser and operating-system details, screen dimensions, fonts, and other features to help distinguish one browser from others.

Changing your IP address does not automatically remove cookies or make your browser fingerprint different. Mozilla's explanation of fingerprinting describes how these characteristics can contribute to online tracking.

GPS and Device Location

VPN location masking primarily changes the IP address visible to websites and services.

It does not automatically change your device's GPS coordinates. Depending on the device, application, permissions, and platform behavior, an app may obtain location information independently of the network's public IP address.

For browser-based location access, the MDN Geolocation API documentation explains how websites can request access to a device's location, subject to browser and permission controls.

Review location permissions and disable access for applications that do not need it.

DNS and IP Leaks

The Domain Name System (DNS) translates domain names, such as example.com, into IP addresses that computers can use.

A DNS leak occurs when DNS requests are sent outside the path or resolver arrangement you expected the VPN to protect. For example, a misconfiguration could cause DNS requests to reach an ISP-operated resolver instead of the resolver intended for the VPN connection.

IPv6 routing and connection failures can also expose traffic if they are not handled correctly. Modern VPNs may support IPv4 and IPv6 differently, so configuration matters. See Synth Visual's guide to IPv4 vs. IPv6: Key Differences Explained.

WebRTC, a collection of browser technologies used for real-time communication, can expose IP-related network information under some browser and network configurations. The MDN documentation on WebRTC IP candidates explains why such information can matter for privacy.

These issues do not affect every VPN or browser. They are reasons to test the actual configuration instead of assuming all traffic is protected.

Malware, Phishing, and Unsafe Downloads

A VPN is not a substitute for keeping software updated, avoiding suspicious links, recognizing phishing attempts, or using appropriate endpoint security protections.

A VPN may protect traffic on the way to its server, but it does not automatically make a malicious download safe or prevent you from entering a password on a fraudulent website.

Your Activity to the VPN Provider

A VPN changes which intermediary handles the traffic routed through it. It does not make that intermediary disappear.

The provider may be able to observe your connecting IP address, connection timing, traffic volume, and destination-related metadata. Its ability to inspect traffic contents depends partly on whether those contents are protected by HTTPS or other end-to-end encryption.

Using a VPN means making a decision about which network operator you trust with part of your connection.

Can Websites Detect That You Are Using a VPN?

Yes. Websites and online services may recognize or flag connections associated with VPN servers.

They may check an incoming IP address against databases of known VPN servers, hosting providers, or addresses associated with unusual connection patterns. Some services also use additional signals and automated risk assessments.

This can lead to a CAPTCHA, a request for extra verification, restricted access, or a connection being blocked.

However, VPN detection is not always accurate. An IP address may be shared by legitimate users and automated systems, and not every connection from a hosting or data-center network necessarily represents a VPN.

Most importantly, detecting that a connection comes from a VPN server does not automatically reveal the user's original IP address. A service can recognize the apparent source as a VPN without knowing which person or original network is behind it.

Does a VPN Hide Your Location?

A VPN can change the location associated with your public IP address, but it does not necessarily conceal your actual physical location from every service.

There are three different concepts to separate:

  • IP-based location: An approximate location inferred from a public IP address.
  • VPN server location: The region associated with the server through which your traffic exits to the internet.
  • Physical device location: Your actual position, potentially determined through GPS, nearby networks, device signals, or permission-based location services.

For example, someone physically located in Brazil might connect to a VPN server in the United States. A website relying on the connection's public IP address may associate the visit with the United States, even though the person has not moved.

The result is not guaranteed. IP geolocation databases can be inaccurate, and websites may have other information about the user.

A VPN should therefore be understood as a way to change IP-based location clues, not as a tool that automatically changes or conceals every location signal.

How Can You Check Whether Your VPN Is Hiding Your IP Address?

You can perform several simple checks to see whether your VPN is presenting the expected public IP address.

1

Check your public IP address before connecting

Use a reputable IP-checking service and note the displayed address. Avoid publishing or sharing it unnecessarily.

2

Connect to your VPN

Choose a server and wait for the application to confirm that the connection is active.

3

Check your public IP address again

The displayed address should normally differ from the one you recorded before connecting.

4

Review the approximate location

Check whether the displayed region is consistent with your chosen VPN server. Remember that geolocation databases are not always accurate.

5

Review your VPN settings

Look for options related to leak protection, split tunneling, IPv6 handling, and routing behavior.

6

Check DNS behavior

Use a reputable DNS leak-testing service to see which DNS resolvers are detected. Review what the results mean alongside your provider's technical documentation.

7

Review IPv6 and WebRTC behavior

Follow reliable testing instructions appropriate to your operating system and browser. A single test may not reveal every possible exposure.

8

Check connection-drop protection

Review whether your VPN offers a kill switch and whether it is enabled. Where appropriate, consult the provider's instructions for understanding how the feature behaves if the VPN disconnects.

A kill switch is intended to block selected internet traffic when the VPN connection drops unexpectedly. Its exact behavior depends on the implementation and configuration.

Seeing a different public IP address is useful evidence that IP masking is working for the connection being tested. It does not prove that every application, DNS request, or network path is protected.

Do not enter sensitive information into unfamiliar testing sites or install unknown software simply to test your connection.

VPN vs. Proxy vs. Tor: What's the Difference?

VPNs, proxy servers, and Tor can all change the network path through which a destination sees a connection, but they use different approaches and provide different protections.

FeatureVPNProxy ServerTor Network
General routingRoutes selected device traffic through a VPN server.Forwards traffic for a specific application or protocol, depending on configuration.Routes supported traffic through multiple relays.
IP address seen by the destinationUsually the VPN exit server's public IP.Usually the proxy's outgoing IP.Usually the Tor exit relay's IP for public internet destinations.
EncryptionTypically protects traffic between device and VPN server.Depends on the proxy; HTTPS may independently encrypt traffic.Uses layered encryption within the Tor network.
Typical usesNetwork privacy, remote access, and IP masking.Application-specific routing and intermediary services.Privacy-focused browsing and reducing direct linkability between user and destination.
Important limitationProvider becomes a point of trust; anonymity is not guaranteed.May not protect all applications or encrypt the connection.Some services block Tor traffic; exit traffic still needs HTTPS protection for end-to-end confidentiality.

A proxy does not necessarily encrypt traffic. For example, a plain proxy connection and an HTTPS connection are different things: HTTPS may protect data between your browser and the destination even when a proxy is involved.

Tor takes another approach. According to the Tor Project's overview of Tor Browser, traffic is routed through multiple relays rather than a conventional single VPN exit server. The destination generally sees an exit relay address, while the different stages of the route serve distinct roles.

None of these tools automatically prevents identification through account logins, unsafe browsing, or all forms of tracking.

Is a VPN Enough to Protect Your Online Privacy?

A VPN can be one useful part of an online privacy strategy, especially when you want to prevent destination websites from directly seeing your original public IP address or reduce the ISP's ability to inspect traffic protected inside the VPN tunnel.

However, a more complete approach combines several safeguards:

  • Use HTTPS: It protects the contents of communication between your browser and the website, including when traffic travels through a VPN.
  • Keep your software updated: Security updates address vulnerabilities in browsers, operating systems, and applications.
  • Manage cookies and tracking permissions: Review browser privacy controls and limit unnecessary tracking where practical.
  • Secure your accounts: Use strong, unique passwords and multifactor authentication where available.
  • Review location permissions: Restrict applications that do not need access to your device's location.
  • Choose a VPN provider carefully: Evaluate its privacy policy, logging claims, technical protections, and independent assessments.
  • Understand the goal: Hiding your public IP address, securing a network connection, and achieving anonymity are different objectives.

The right combination depends on what you are trying to protect and from whom. Everyday privacy needs are different from the requirements of a journalist protecting a sensitive source or an organization managing confidential systems.

The most useful approach is to understand the limitations of each tool instead of expecting one application to solve every privacy and security problem.

Frequently Asked Questions

1. Does a VPN completely hide your IP address?

A properly functioning VPN generally hides your original public IP address from destination websites for traffic routed through its tunnel. It does not guarantee that every application or connection is protected, and leaks or configuration problems can expose information.

2. Can Google see my real IP address when I use a VPN?

When Google receives a request through a properly functioning VPN connection, it generally sees the VPN server's public IP address rather than your original public IP address. However, Google may still recognize you through your account, cookies, or other identifying signals. Traffic that bypasses the VPN may also reveal your original address.

3. Can my internet provider see what websites I visit when I use a VPN?

Your ISP can ordinarily see that you are connecting to a VPN server, along with connection timing and traffic volume. A correctly configured VPN generally protects the traffic it carries from direct inspection by your ISP. DNS leaks, split tunneling, or other traffic outside the tunnel can reveal additional information.

4. Can a VPN hide my IP address from the government?

A VPN can hide your original public IP address from destination services and change what your ISP can directly observe about traffic routed through the tunnel. It does not guarantee anonymity from government agencies. Relevant information may be available through other sources, and the legal processes and technical capabilities involved vary by jurisdiction and circumstance.

5. Can websites track me while I use a VPN?

Yes. Websites may recognize you through account logins, cookies, browser fingerprinting, and other tracking signals. A VPN changes your apparent public IP address, but it does not automatically erase other identifiers.

6. Does a VPN hide my location completely?

No. A VPN can change the approximate location associated with your public IP address. It does not automatically change GPS coordinates, prevent all permission-based location access, or remove every other clue about your location.

7. Can a VPN leak my real IP address?

Yes, under certain conditions. DNS leaks, routing errors, IPv6 handling, browser behavior, or unexpected VPN disconnections may expose information outside the protected tunnel. The likelihood and type of exposure depend on the VPN implementation, operating system, browser, and configuration.

8. Is a VPN enough to make me anonymous online?

No. A VPN can reduce direct exposure of your original public IP address, but anonymity also depends on account activity, tracking technologies, browser configuration, provider visibility, and other identifying information. A VPN is a privacy tool, not a guarantee of anonymity.

Final Thoughts

A VPN can help hide your original public IP address from destination websites by routing your traffic through a VPN server. When the connection is working as intended, websites generally see the VPN server's public IP address rather than the address associated with your original internet connection.

However, IP masking does not make every aspect of your online activity invisible. Your ISP can still observe the connection to the VPN server, the VPN provider may be able to observe your connecting IP address and relevant metadata, and websites can recognize users through account logins, cookies, browser fingerprinting, and other signals.

The practical takeaway is to understand what a VPN protects, verify that it is routing your traffic as expected, and combine it with appropriate privacy and security practices. A VPN can improve privacy, but realistic expectations and careful configuration are just as important as the tool itself.

The main takeaway

A VPN generally replaces the public IP address websites see with the VPN server's outgoing address for traffic routed through its tunnel. It can improve privacy, but it does not hide every identifier, prevent all leaks, or guarantee anonymity. Verify your setup and combine a VPN with HTTPS, sensible account security, updated software, and careful privacy settings.

References & Further Reading

These standards, official technical documents, and educational resources support the article's explanations of VPN tunneling, IP geolocation, tracking, location permissions, and online privacy.

  1. Internet Engineering Task Force (IETF) — RFC 4301: Security Architecture for the Internet Protocol

    Technical standard describing IPsec security architecture, protected traffic, and tunnel-mode operation.

  2. Federal Trade Commission (FTC) — In the Market for a VPN App?

    Guidance concerning VPN apps, privacy claims, and the trust users place in VPN providers.

  3. MDN — RTCIceCandidate: address property

    Technical documentation explaining how WebRTC IP-related address information can be exposed.

  4. MDN — Geolocation API

    Browser documentation explaining access to device location and associated permission controls.

  5. Mozilla — Firefox: Blocking Fingerprinting

    Educational explanation of browser fingerprinting and how device and browser characteristics can contribute to tracking.

  6. MaxMind — Understanding IP Geolocation Accuracy

    Guidance on the limitations of associating IP addresses with geographic locations.

  7. MDN — HTTPS

    Technical explanation of HTTPS and the encryption provided by TLS.

  8. Tor Project — About Tor Browser

    Official explanation of Tor's multi-relay routing model and its privacy properties.

↑ Back to the top