Your IP address changes when you connect to a different WiFi network

Yes — when you switch from one WiFi network to another, your IP address changes. Each network assigns you a new local address on that network. If you move from your home WiFi to a coffee shop's WiFi, or from one office building to another, you get a different IP address from each one.

The reason is straightforward: your IP address is how devices on that network find and talk to you. When you join a new network, the network's router assigns you a new address from its own pool. It's like getting a new mailbox number when you move to a different building — the address is specific to that location.

This happens automatically. You don't choose it or set it yourself. The moment you connect and the network authenticates you, the router hands out an address. When you disconnect and join a different network, that address is released and a new one is assigned.

Key Takeaways

  • Each WiFi network assigns your device a new local IP address when you connect, so switching networks means getting a new address.
  • Your internet service provider also assigns you a public IP address that identifies your home or office to the wider internet, and this changes only when you switch providers or restart your modem.
  • Websites and online services see your public IP address, not your local one, so they will see a different location when you connect to a different network.
  • Devices on the same WiFi network can see your local IP address, but devices outside that network cannot.

The difference between local and public IP addresses

Your device actually has two IP addresses at the same time, and they work at different levels. Your local IP address (also called a private IP address) is assigned by the WiFi router and is only used within that network. It typically looks like 192.168.1.5 or 10.0.0.12. This address changes every time you connect to a new WiFi network.

Your public IP address is assigned by your internet service provider and is how the wider internet sees you. This is the address that websites log, that streaming services use to guess your location, and that online games use to connect you to other players. Your public IP address does not change when you switch WiFi networks — it only changes when you switch providers, restart your modem at home, or move to a different physical location with a different ISP.

When you're on WiFi at home, your public IP address stays the same as long as you stay connected to your home internet. When you move to a coffee shop and connect to their WiFi, you get a new local address from their router, but your public address changes to the coffee shop's ISP's address range — because you're now using their internet connection to reach the outside world.

Why websites see a different location when you change networks

Websites and apps determine your location by looking up your public IP address in a geographic database. When you're on your home WiFi, your public IP is tied to your home address (or at least your city). When you connect to a different WiFi network — at work, a hotel, or a friend's house — your public IP changes to that location's ISP, so websites think you're somewhere else.

This is why streaming services sometimes ask you to sign in again when you switch networks, or why a map service might suddenly show you in a different city. The service sees a new public IP and treats it as a new location. It's also why a VPN (virtual private network) can make it appear that you're in a different country — a VPN routes your traffic through a server elsewhere and masks your real public IP.

What happens to your local address when you stay on the same network

If you stay connected to the same WiFi network all day, your local IP address usually stays the same. However, it can change if your router reassigns addresses — this happens most often if you disconnect and reconnect, or if your router restarts. Most home routers use DHCP (Dynamic Host Configuration Protocol), which means addresses are temporary and can be reassigned.

You can set a device to use a static IP address on your home network if you want it to stay the same. This is useful for printers, security cameras, or servers that other devices need to find reliably. But this is a setting you configure yourself on your router or device — it doesn't happen by default.

For most people and most devices, the local address changes only when you switch networks or disconnect and reconnect. The public address, on the other hand, stays the same as long as you're using the same internet connection (your home ISP, your office network, or that coffee shop's WiFi).

How to check your IP addresses

You can see both your local and public IP addresses on most devices. On Windows, open Command Prompt and type ipconfig — your local address is listed as "IPv4 Address" under your WiFi adapter. On Mac or Linux, open Terminal and type ifconfig and look for "inet" under your WiFi interface.

To see your public IP address, search "what is my IP" in any browser, or visit a site like whatismyipaddress.com. This is the address the outside world sees. When you switch to a different WiFi network and check again, your public IP will be different (unless you're using a VPN).

If you want to see what information websites can gather from your IP address, you can use a geolocation lookup tool. Search for "IP geolocation" and paste your public IP — you'll see what city and ISP the database associates with that address. This is roughly what websites see when you visit them.

Why this matters for security and privacy

Your public IP address is visible to every website you visit, every app you use, and every service you connect to. This is how your ISP knows what you're doing online, and how advertisers can build a profile of your browsing habits tied to your location. When you switch networks, you get a new public IP, which breaks that chain — but only temporarily. Once you're on the new network, a new chain starts.

Your local IP address is only visible to other devices on the same WiFi network. If you're on a public WiFi network at a coffee shop, other customers cannot see your local address unless they're actively scanning the network. However, they can see that a device is connected, and they could potentially intercept unencrypted traffic if they know what they're doing.

This is why using a VPN on public WiFi is a common recommendation — it encrypts your traffic and hides your public IP address, making it harder for others on the network to see what you're doing. It also prevents the coffee shop's WiFi from logging your activity directly.

Frequently Asked Questions

Does my IP address change if I turn WiFi off and back on?

If you turn WiFi off and back on while staying on the same network, your local IP address may or may not change — it depends on how quickly you reconnect and how your router's DHCP settings are configured. Your public IP address will not change as long as you're still using the same internet connection. If you switch to a different network entirely, both addresses will change.

Can someone track me by my IP address across different WiFi networks?

Your public IP address changes when you switch networks, so someone cannot follow you from your home WiFi to a coffee shop using IP address alone. However, if you're logged into accounts (email, social media, apps), those services can track your activity across networks. Your device's unique identifiers and cookies also persist across networks.

Why does my device sometimes get the same IP address on the same network?

Many routers use DHCP reservation, which assigns the same local IP address to the same device each time it connects. This happens automatically based on your device's MAC address (a unique hardware identifier). It's convenient because your device gets a predictable address, but it's not a static IP — the router is just remembering you.

If I use a VPN, does my IP address still change when I switch WiFi?

Your local IP address still changes because it's assigned by the new router. Your public IP address appears to come from the VPN server instead of your actual location, so websites see the VPN's IP rather than your ISP's IP. When you disconnect the VPN, your real public IP becomes visible again.

Does my phone get a different IP address than my laptop on the same WiFi?

Yes. Each device on the same network gets its own local IP address from the router. Your phone might be 192.168.1.10 while your laptop is 192.168.1.11. Both devices share the same public IP address because they're both using the same internet connection, but the router distinguishes between them using their local addresses.