What is a VPN and does it hide your IP address?

A VPN sends your traffic through a server before it reaches the web, so websites usually see the VPN’s public IP instead of yours. But it doesn’t hide everything—this article explains what changes, what doesn’t, and how to verify it.

Share
A laptop and smartphone sit on a coffee shop table.

A VPN, or virtual private network, sends your internet traffic through a VPN server before it reaches the websites and apps you use. When it works properly, it hides your real IP address from those sites and replaces it with the VPN server’s IP address. It does not hide everything about you, so it’s privacy protection, not anonymity.

The short answer

Yes, a VPN usually hides your real IP address from websites and apps that you connect through it. The site sees the VPN server’s IP address instead of your home or mobile IP, so your public IP looks different from the site’s point of view.

That’s the cleanest way to think about it: a VPN changes the network address other people see, but it doesn’t erase other ways a site can recognize you. If you sign in, accept tracking cookies, or use a browser that can be fingerprinted, the site may still know it’s you.

What a VPN actually is

A VPN is a secure tunnel between your device and a VPN server. Your traffic goes into that tunnel, gets encrypted on the way out of your device, and then exits to the wider internet from the VPN server.

For example, say you connect to public Wi-Fi at a café. Without a VPN, other people on that network may be able to see more about your traffic. With a VPN on, the local network mainly sees encrypted traffic going to the VPN service, not the sites you open after that.

What changes when you turn it on

When the VPN is on, websites usually see the server IP, not your real one. That matters because many sites use IP addresses for rough location, rate limits, and fraud checks.

A VPN also hides some of your browsing from your internet service provider. Your ISP can usually see that you’re connected to a VPN server, but not the individual sites inside the tunnel. If the VPN drops, your real IP can show again right away.

What it does not hide

A VPN does not hide your identity from an account you log into. If you sign into Gmail, Facebook, Amazon, or your work account, the site can still connect that activity to you.

It also does not hide you from the VPN provider itself, since that service is the middle point carrying your traffic. And it does not stop website tracking by itself. Cookies, browser fingerprinting, app logins, and split tunneling can still reveal or separate parts of your activity.

A VPN can also fail in ways that matter. If your DNS requests leave the tunnel, a DNS leak can expose the sites you’re trying to reach even though the VPN is on. And if the VPN disconnects without a kill switch, your traffic may fall back to your normal connection.

How to tell it’s actually working

The quickest check is to compare your IP before and after connecting. First, look up your current public IP without the VPN. Then turn the VPN on and check again. If it’s working, the second result should show the VPN server’s IP or a location tied to that server, not your home connection.

You should also run a DNS leak check from a trusted source. If the VPN is working well, the DNS servers reported should match the VPN setup rather than your ISP. If you still see your real IP, the VPN likely disconnected, split tunneling is sending some traffic outside the tunnel, or the app is misconfigured. Stop using it for sensitive activity until you fix that.

A person compares two screens on a laptop and smartphone.

Common mistakes people make

The biggest mistake is treating a VPN like antivirus. It does not scan files or block malware on its own.

Another common mistake is assuming a VPN stops all tracking. It can reduce IP-based tracking, but it does not block logins, cookies, or browser fingerprinting by itself. People also think public Wi-Fi is fully safe once the VPN is on. It helps a lot, but you still need to avoid fake login pages, shady downloads, and account mistakes.

When a VPN helps most

A VPN helps most when you want to hide your home or mobile IP from the sites you visit, or when you are on public Wi-Fi and want your traffic between your device and the VPN server encrypted. It is also useful when you want a site to see the VPN server’s location instead of yours.

Here’s a simple way to decide whether it’s the right tool:

SituationA VPN helps?Why
You want sites to see a different IP addressYesThe VPN server’s IP replaces yours
You want to protect traffic on public Wi-FiYesIt encrypts the path from your device to the VPN server
You’re signed into an account and want to be unknown to that serviceNoLogins still identify you
You want malware protectionNoThat’s a different tool
You want to hide browsing from your ISPPartlyYour ISP sees the VPN connection, not the sites inside it

It is the wrong tool if your goal is true anonymity or hiding activity from an account you’re signed into. If you need privacy from the website itself, you usually need to use a different account, avoid logging in, control cookies, and use safer browser settings along with the VPN.

A laptop is being used on public Wi-Fi in a coffee shop.

Conclusion

The plain answer is yes: a VPN usually hides your real IP address from the websites and apps you connect through it, and they see the VPN server’s IP instead. It does not hide everything else about you. The useful rule of thumb is simple: a VPN hides your network address, not your identity.

Frequently Asked Questions

Can a website still know it’s me if I use a VPN?

Yes. If you log into an account, accept tracking cookies, or use a browser setup that can be fingerprinted, the site can still recognize you even though your IP address is masked. The VPN changes the visible network address, not every other identifier.

What is a DNS leak?

A DNS leak happens when your device sends domain lookups outside the VPN tunnel, often to your ISP instead of the VPN’s DNS path. That can reveal which sites you are trying to reach, even if the site itself sees the VPN server’s IP.

Sources