With a VPN connected, your public IP address is the VPN server's address, not your real one, because your traffic is encrypted and routed through that server. Websites, apps, and your internet provider see the server's location instead of yours, but a VPN does not hide your identity when you log into an account, and it cannot hide activity on a public blockchain.
Key takeaways
- A VPN replaces your public IP with the VPN server's IP, so websites see the server's location, not yours.
- Check your IP before and after connecting, and test for DNS, IPv6, and WebRTC leaks.
- A kill switch stops leaks when the VPN drops, and a VPN cannot hide you from accounts you log into.
Search "what is my IP address" and you will see a string of numbers that identifies your connection to the internet. Turn on a VPN and that number changes — but what exactly changed, what did not, and how do you know the VPN is really working? This guide answers all three.
What is my IP address?
Your IP address is the number assigned to your internet connection so data can find its way to you and back. It works like a return address on a letter: every website you visit sees it, and it reveals your approximate location and your internet provider.
There are two kinds. A public IP address is the one the internet sees, assigned by your internet provider to your home router or mobile connection. A private IP address is the one your router gives to devices inside your home, such as 192.168.1.5, and it is not visible on the internet.
Most home connections use IPv4 addresses, which look like four numbers separated by dots, such as 203.0.113.42. Newer connections also use IPv6, a longer format designed to replace IPv4 as addresses run out. The Internet Protocol itself is defined in RFC 791, which has described how IP addresses work since 1981.
What is my IP address when I use a VPN?
When you use a VPN, your public IP address is the VPN server's address, not your real one. Your device encrypts your traffic and sends it through a tunnel to the VPN server, which then forwards it to the website. The website sees the server, not you.
For example, if you are in Chicago and connect to a VPN server in London, websites will think you are browsing from London. Your internet provider can see that you connected to a VPN server, but it cannot see which sites you visit, because that traffic is encrypted inside the tunnel.
Most consumer VPNs use shared IP addresses, meaning you share the same address with other users, which adds anonymity. Some providers offer a dedicated IP address that stays the same and belongs only to you, which is less likely to be blocked but easier to associate with your activity.
How does a VPN change your IP address?
A VPN changes your IP address by routing all of your traffic through a remote server. When you connect, your device builds an encrypted tunnel to that server, and the server assigns you one of its IP addresses for the session.
The process has four steps. First, the VPN app connects to a server you choose. Second, it encrypts your traffic so nobody between you and the server can read it. Third, the server forwards your requests to the website using its own IP address. Fourth, the website replies to the server, which sends the answer back through the tunnel to you.
Some VPNs take this further with IP rotation, automatically switching you to a new server at set intervals or on each new session. Others offer multi-hop routing, where traffic passes through two servers, so no single server sees both your real IP and your destination. If you trade crypto, our guide to the best VPN for crypto exchanges covers which of these features matter most.
How do I check my IP address with a VPN?
Checking takes less than a minute, and you should do it every time you connect to a new server. The test is simple: compare your IP before and after the VPN, and confirm the new one matches the server you chose.
- Check without the VPN: open our free what-is-my-IP tool and write down your IP address and location.
- Connect to the VPN and choose a server location.
- Check again with the same tool. The IP address and location should be different.
- Confirm the location matches the server country you selected.
- Test for leaks with our free WebRTC leak test and a DNS leak test.
- Reconnect if anything looks wrong: if the IP did not change, disconnect, pick another server, and test again.
If the IP address stays the same after connecting, the VPN is not working. Common causes are a split-tunneling setting that excludes your browser, a VPN that failed to connect, or a browser extension that bypasses the VPN. Fix the setting, reconnect, and test again before you do anything sensitive.
Does a VPN always use the same IP address?
No, a VPN does not always use the same IP address. Many VPNs automatically assign you a different IP each time you connect, cycling through a pool of available addresses from their servers. These dynamic IP addresses are the default for most VPN services because they maximize anonymity.
You can change your IP at any time by disconnecting and connecting to a new server, or by choosing a different server location in the app. Some VPNs also rotate your IP automatically every few minutes or on each new session, so you do not stay on one address for long.
A dedicated IP is the exception. It stays the same and belongs only to you, which makes it less likely to be blocked by sites that flag shared VPN addresses, but easier to associate with your activity. Choose a dedicated IP if you need stable access to a service that blocks shared IPs, and a dynamic IP if anonymity matters more.
Can my real IP leak through a VPN?
Yes, your real IP can leak through a VPN, and leaks are the most common way a VPN fails silently. The three leaks to check are DNS leaks, IPv6 leaks, and WebRTC leaks, and each one has a different fix.
- DNS leak: your DNS requests go to your internet provider instead of the VPN, revealing which sites you visit. Fix it by turning on DNS leak protection in the VPN settings.
- IPv6 leak: your device sends IPv6 traffic outside the VPN tunnel, exposing your real IPv6 address. Fix it by turning on IPv6 leak protection or disabling IPv6.
- WebRTC leak: your browser's WebRTC feature reveals your real IP to websites. Fix it by disabling WebRTC in the browser or using a VPN with WebRTC blocking.
- Kill switch failure: if the VPN drops and there is no kill switch, your real IP is exposed until you reconnect. Fix it by turning on the kill switch, which blocks all traffic when the VPN drops.
CISA guidance on virtual private networks recommends using a VPN with a kill switch and keeping the software updated, because an outdated VPN can leak even when it looks connected. NIST guidance in SP 800-77 covers the same ground for IPsec VPNs, including how tunnels should be configured and tested.
What can a VPN not hide?
A VPN hides your IP address and encrypts your traffic, but it does not make you anonymous. If you log into Google, Facebook, or a crypto exchange, that account knows who you are regardless of your IP address, because you told it.
Cookies and browser fingerprinting can also track you across sites, even with a VPN on. Your browser version, screen size, fonts, and installed extensions form a fingerprint that can identify you without an IP address at all. A VPN does not change any of those.
A VPN also cannot hide activity on a public blockchain, protect you from phishing, or make a banned service legal to use. It protects the connection, not the account and not the content. For the account side, use a password manager and two-factor authentication — our guide to how to secure your Wi-Fi covers the home-network controls that work alongside a VPN.
What are other ways to change your IP address?
A VPN is the most practical way to change your IP, but it is not the only one. Each alternative has a different trade-off, and most are weaker than a VPN for everyday privacy.
| Method | How it changes your IP | Encryption | Best for |
|---|---|---|---|
| VPN | Routes all traffic through a server | Yes, full tunnel | Everyday privacy and public Wi-Fi |
| Proxy server | Forwards web traffic through a middleman | Usually no | Single-site access, not privacy |
| Tor | Routes traffic through three relays | Yes, layered | Strong anonymity, slow speeds |
| Mobile hotspot | Uses your phone's mobile IP | No | Quick temporary change |
| Restart router | May get a new dynamic IP from your provider | No | One-off change at home |
A proxy only covers web traffic, not your whole device, and usually does not encrypt it. Tor is stronger than a VPN for anonymity but much slower, and it is not suited to streaming or trading. Restarting your router only works if your provider assigns dynamic IPs, and it does not hide your traffic from anyone.
The bottom line
With a VPN on, your public IP address is the VPN server's address, not yours. That hides your location and your internet provider from the sites you visit, and it encrypts your traffic from your provider and the local network.
Verify it every time: check your IP before and after connecting, test for DNS, IPv6, and WebRTC leaks, and turn on the kill switch. You can run the whole check in under a minute with the free what-is-my-IP tool and the WebRTC leak test.
Frequently asked questions
What is my IP address when I use a VPN?
When you use a VPN, your public IP address is the address of the VPN server you connected to. Websites and apps see that server's address and location, not your real home address or your internet provider's address.
Does a VPN change my IP address?
Yes. A VPN replaces your real IP address with one from its server network. If you connect to a server in London, websites will think you are browsing from London, even if you are physically in Chicago.
How do I check my IP address with a VPN on?
First, check your IP without the VPN and write it down. Then connect to the VPN, open a what-is-my-IP tool, and compare. The address and location should be different, and they should match the server country you chose.
Can my real IP leak through a VPN?
Yes, it can. DNS leaks, IPv6 leaks, and WebRTC leaks can expose your real IP or your internet provider even while the VPN is on. A kill switch, DNS leak protection, and a leak test after connecting will catch most of these.
Does a VPN hide my IP from my internet provider?
Yes, from the content of your traffic. Your internet provider can see that you are connected to a VPN server, but it cannot see which websites you visit or your real IP as seen by those sites, because your traffic is encrypted inside the VPN tunnel.
Does a VPN give me the same IP every time?
Usually not. Most VPNs assign a different IP each time you connect, cycling through a pool of addresses from their servers. These are called dynamic IP addresses. Some providers offer a dedicated IP that stays the same and belongs only to you.
Can a website still track me with a VPN on?
Yes. A VPN hides your IP address, but cookies, browser fingerprinting, and logins can still identify you. If you sign into Google, Facebook, or an exchange, that account knows who you are regardless of your IP address.
Is it safe to look up my IP address online?
Yes, checking your own public IP on a what-is-my-IP tool is safe. The tool only shows the address that websites already see. Do not share your IP address publicly, and do not enter it into untrusted sites.
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 CISA virtual private network guidance, NIST SP 800-77, and RFC 791.
How we write and fact-check →