IP Address Assignment: How are IP Addresses Assigned?

Click For Summary
When using a public Wi-Fi network, such as in a coffee shop, it's possible to see the same external IP address as one assigned at home due to the use of non-routable private IP addresses, typically starting with 192.168.x.x. This situation arises because these addresses are local to the network and can be reused across different networks without conflict. If the external IP address is not in this range, it may indicate the presence of a proxy or VPN, which can assign a persistent IP address that differs from the local network's assignment. Additionally, issues with IP address recognition can stem from caching problems, suggesting that clearing the DNS cache or using a different browser may resolve discrepancies in IP address reporting.
WWGD
Science Advisor
Homework Helper
Messages
7,772
Reaction score
12,994
Hi All,
I am just curious. I am in a coffee shop using the internet. My (external) IP address in this coffee shop ( given by whatismyip.com) is the same as the IP address assigned to me at home by my ISP. I thought IP addresses are assigned dynamically when one logs into a network and the network used by the coffee shop is not the same as that of my ISP. How is that so? Doesn't a DHCP server assign an address dynamically when I log in and then remove it from circulation when I log of ?
Thanks.
 
Last edited:
Computer science news on Phys.org
Perhaps try again, but before doing so clear your cache.
 
  • Like
Likes WWGD
This could happen if you are using a proxy browser.
 
  • Like
Likes WWGD
Or even try a DNS flush. Instructions can be found doing a quick google.
 
  • Like
Likes WWGD
WWGD said:
Hi All,
I am just curious. I am in a coffee shop using the internet. My (external) IP address in this coffee shop ( given by whatismyip.com) is the same as the IP address assigned to me at home by my ISP. I thought IP addresses are assigned dynamically when one logs into a network and the network used by the coffee shop is not the same as that of my ISP. How is that so? Doesn't a DHCP server assign an address dynamically when I log in and then remove it from circulation when I log of ?
Thanks.

Specific answer to your questions:
IP addresses can be set static, but if you had set your IP address static, you'd probably know. And, if you'd set it static, you wouldn't be able to connect at the coffee shop. Your IP address is most likely assigned via DHCP. Those are assigned when requested by your device, and made available again when your device is no longer connected. As a general rule, no two networks should hand out the same IP address. There is however, an exception.

Most small private networks use a non-routable subnet starting with 192.168.x.x for connected devices. You didn't mention what your IP address was, but I would be willing to bet its 192.168.x.x - if that is the case, then it's entirely possible that you got the same address at home and at the coffee shop - but because the address is non-routable, only the network you are communicating with can route to you. In that case, it is perfectly reasonable (although maybe lucky) that you got the same address at home and at the coffee shop.

If the IP address you have isn't 192.168.x.x then you most likely have a Proxy configured (Fervent Freyja's answer) or a VPN configured. In both these cases, the IP address you are seeing was handed out by a different source than your home or coffee shop, and the lease might persist longer.
 
  • Like
  • Informative
Likes Wrichik Basu, MikeeMiracle, jedishrfu and 1 other person
StevieTNZ said:
Perhaps try again, but before doing so clear your cache.
Thank you, this has worked a few times. In case anyone else using Windows has trouble accessing the web, go to the
CMD line and type :
ipconfig/flushdns
 
Wow, you had to clear your DNS cache after more than 3 years?!
 
  • Haha
  • Love
Likes Wrichik Basu and Vanadium 50
pbuk said:
Wow, you had to clear your DNS cache after more than 3 years?!
No, just did a search and ended up in this post.
 
  • #11
WWGD said:
Thank you, this has worked a few times. In case anyone else using Windows has trouble accessing the web, go to the
CMD line and type :
ipconfig/flushdns
Don't forget to put a space before the '/', else it won't work!
 
  • Like
Likes WWGD and OCR

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
439
Replies
4
Views
1K
  • · Replies 27 ·
Replies
27
Views
3K
Replies
16
Views
5K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
3
Views
3K
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K