Yes, a VPN hides your real IP address from the websites you visit, your internet provider and anyone running the Wi-Fi network you use. When you connect, your traffic is routed through a VPN server, so those parties see the server's IP address and location instead of yours. Your VPN provider can still see your real address, and logins, cookies and GPS can still identify you.
Key takeaways
- A VPN replaces your real IP address with the VPN server's address for websites, your ISP and Wi-Fi owners.
- It does not hide your identity when you log in, your GPS location, cookies, or your activity from the VPN provider itself.
- A kill switch, a no-logs policy and a leak check matter more than the server location you pick.
Your IP address is the return address on everything you send online. Websites use it to work out roughly where you are, and your internet provider uses it to link your traffic to your account. A VPN changes that return address — but only for some of the people watching.
Does a VPN hide your IP address?
Yes. When you connect to a VPN, your traffic travels through an encrypted tunnel to a VPN server, and websites see that server's IP address instead of yours. Your internet provider and the owner of the Wi-Fi network you are on also stop seeing your real address in your web traffic.
Think of it as sending your mail through a forwarding office. The letter still arrives, but the return address on the envelope belongs to the forwarding office, not your home. Anyone who reads the envelope sees that office address.
The change is real, but it is limited. Your VPN provider now holds the view your internet provider used to have: it can see your real IP address and the sites you connect to. That is why the provider you choose matters as much as the technology itself.
How does a VPN hide your IP address?
A VPN hides your IP address by routing all of your device's internet traffic through one of its servers. The server replaces your address with its own before forwarding your requests, so the destination only ever sees the server.
Here is the sequence in plain terms:
- You connect. Your VPN app opens an encrypted tunnel to a server you pick, for example one in Chicago or London.
- Your traffic is encrypted. Everything leaving your device is scrambled inside the tunnel, so your provider and the Wi-Fi owner cannot read it.
- The server forwards it. The VPN server decrypts the traffic and sends it on to the website, using its own IP address as the sender.
- Replies come back the same way. The website answers the server, the server encrypts the reply, and your device decrypts it.
NIST describes this kind of setup in SP 800-113, its guide to SSL VPNs, which explains how a VPN creates a protected tunnel between a device and a remote network. The consumer apps most people buy work the same way, except the tunnel ends at the VPN company's server instead of an office network.
Who can no longer see your real IP address?
A VPN hides your real IP address from websites and apps you visit, your internet provider, and anyone running the Wi-Fi network you are on. Each of them sees the VPN server's address instead.
| Who is watching | Without a VPN | With a VPN |
|---|---|---|
| Websites and apps | Your real IP address and approximate location | The VPN server's IP address and location |
| Your ISP or mobile carrier | The sites you visit and when | Only that you connect to a VPN, and how much data you use |
| Wi-Fi owner (cafe, hotel, airport) | The sites you visit on their network | Only an encrypted connection to a VPN server |
| The VPN provider | Nothing; it is not involved | Your real IP address and the sites you connect to |
| Someone on the same public Wi-Fi | Unencrypted traffic and your address | Encrypted traffic only |
Surfshark's guide to what a VPN hides gives the same list: IP address, activity and location hidden, but not accounts, cookies or GPS.
That middle row is the one people misunderstand most. A VPN does not remove the party that can see your traffic; it swaps your internet provider for the VPN company. The Electronic Frontier Foundation makes the same point in its VPN guidance: you are choosing to trust the VPN provider instead of your provider, so read its privacy policy and look for independent audits.
On public Wi-Fi, the protection is still worth having. Without a VPN, anyone else on the network can see unencrypted traffic and probe your device. With a VPN, that traffic is encrypted before it leaves your device. For more on staying safe on shared networks, see our guide to how to secure your Wi-Fi.
What does a VPN not hide?
A VPN does not hide your identity when you log in, your GPS location, cookies and trackers already on your device, or your activity from the VPN provider itself. Hiding your IP address is one layer of privacy, not anonymity.
- Your accounts. If you log in to Google, Facebook or your bank, that service knows it is you. It can still record your searches, messages and purchases.
- Your GPS location. A VPN changes your IP-based location, not your phone's GPS. An app with location permission still sees where you really are.
- Cookies and fingerprinting. Cookies, tracking scripts and browser fingerprinting follow you across sites even when your IP address changes.
- Your device information. Your device type, operating system and screen size can still be collected by websites.
- The fact you use a VPN. Your provider and many networks can tell you are using one, even if they cannot see inside the tunnel. Some VPNs offer obfuscated servers that disguise VPN traffic as ordinary traffic.
- Malware and phishing. A VPN is not antivirus. A malicious link or download works the same with a VPN on, although some VPN apps add a blocklist for known bad domains.
Logging in is the biggest gap. People turn on a VPN and then sign in to the same accounts as usual, which hands those services their identity back. If your goal is to stop a specific site linking visits to you, log out, clear cookies, and use a separate browser profile as well.
How do you check that your VPN is actually hiding your IP?
Check your IP address before and after connecting: it should change to the VPN server's address and location. Then run a leak test to make sure your real address is not slipping out through your browser or DNS.
- Note your real IP first. With the VPN off, open our what is my IP tool and write down the address and location it shows.
- Connect the VPN. Pick a server in another city or country so the change is easy to spot.
- Check again. Reload the tool. The address and location should now match the VPN server, not your home.
- Test for leaks. Run our WebRTC leak test. If it shows your real provider or location, your VPN is leaking.
- Test the kill switch. If your VPN has a kill switch, turn it on, then briefly drop the connection. Your internet should stop entirely rather than fall back to your real address.
Do this check whenever you change VPN apps, update your browser, or connect on a new network. A VPN that worked yesterday can leak today after a settings change. You can also check your DNS with our DNS lookup tool.
NordVPN's own guide to what a VPN hides and does not hide lists the same gaps: logins, cookies, GPS and the VPN provider itself.
When does a VPN fail to hide your IP address?
A VPN fails to hide your IP address when the connection drops without a kill switch, when your browser leaks your real address through WebRTC, or when DNS requests travel outside the tunnel. Split tunneling can also expose some apps by design.
The most common failure is the simplest: the VPN disconnects and your device quietly returns to its normal connection. Without a kill switch, you keep browsing with your real IP address and may not notice for hours. Always turn the kill switch on, and set the VPN to start automatically when your device boots.
WebRTC leaks are the second culprit. WebRTC is a browser feature used for video calls, and it can reveal your real IP address even while the VPN is running. Most good VPN apps block this, and browser extensions can disable WebRTC, but you should test for it rather than assume it is fixed.
Split tunneling is a feature, not a bug, but it confuses people. It lets you choose which apps use the VPN and which use your normal connection. If your browser is outside the tunnel, its traffic shows your real IP address even though the VPN app says it is connected.
How do you choose a VPN that actually protects your IP?
Choose a VPN with a kill switch, a published no-logs policy backed by an independent audit, modern protocols such as WireGuard or OpenVPN, and servers in the locations you need. Price matters less than those four features.
- Kill switch: blocks all traffic if the VPN drops, so your real IP address never leaks.
- No-logs policy, audited: the provider should publish its policy and have it checked by an independent auditor, not just claim it in marketing.
- Modern protocol: WireGuard and OpenVPN are the widely trusted choices. Avoid old protocols such as PPTP.
- DNS leak protection: the VPN should route DNS requests through its own servers inside the tunnel.
- Jurisdiction and ownership: know which country's laws apply to the provider and who owns it.
Do not pick a VPN for its server count alone. A provider with 100 servers and a real no-logs audit protects you better than one with 10,000 servers and no audit. Read the privacy policy yourself: if it logs connection times, bandwidth or IP addresses, that data can identify you later.
The bottom line
A VPN does hide your IP address from websites, your internet provider and Wi-Fi owners, by replacing it with the address of its server. That is a genuine privacy gain, especially on public Wi-Fi and when you want to stop sites tracking your location.
It is not a cloak of invisibility. Your VPN provider can see your traffic, your logins and cookies can still identify you, and your GPS can still give you away. Use a VPN with a kill switch and an audited no-logs policy, verify it with our what is my IP tool, and treat it as one layer of your privacy setup, not the whole thing.
Frequently asked questions
Does a VPN hide your IP address from your ISP?
Yes. Your ISP can see that you are connected to a VPN server and how much data you transfer, but it cannot see your real IP address in your traffic to websites, or which sites you visit, because that traffic is encrypted inside the VPN tunnel.
Does a VPN hide your IP address from websites?
Yes. Websites see the IP address of the VPN server you connected to, not your own. They also see the server's approximate location instead of yours, which is why a VPN can make it look as if you are browsing from another city or country.
Can a VPN hide your IP address from Google?
No, not if you are logged in. Google still knows your account and your search history when you are signed in, even though it sees the VPN server's IP address. A VPN hides your address, not your account identity.
Does a VPN hide your location on your phone?
It hides your IP-based location, but not your GPS location. If an app has permission to use your phone's GPS, it can still see your real location. Turn off location permission for apps you do not want to track you.
Does a VPN hide you from your employer or school?
Only partly. A VPN hides your browsing from the network, but monitoring software installed on a work or school device can still see what you do. A VPN also does not hide activity on a device your employer manages.
Can your IP address leak even with a VPN on?
Yes. Leaks can happen through WebRTC in your browser, DNS requests sent outside the tunnel, or a dropped VPN connection. A kill switch and a leak test after connecting catch most of these problems.
Does a VPN make you anonymous?
No. A VPN improves privacy by hiding your IP address and encrypting traffic, but it does not make you anonymous. Your VPN provider, the sites you log in to, cookies, browser fingerprinting and payment details can still identify you.
Is it legal to hide your IP address with a VPN?
Using a VPN is legal in the United States and most other countries. A VPN does not make illegal activity legal, and some countries restrict or ban VPN use, so check local law before you travel.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against NordVPN and Surfshark's explanations of VPN hiding, NIST SP 800-113 and the EFF's VPN guidance.
How we write and fact-check →