IP Address Assignment: How are IP Addresses Assigned?

Click For Summary

Discussion Overview

The discussion revolves around the assignment of IP addresses, particularly in the context of using public Wi-Fi networks like those in coffee shops. Participants explore the dynamics of IP address assignment, including the roles of DHCP servers, static versus dynamic IP addresses, and potential issues with caching and proxies.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about receiving the same external IP address in a coffee shop as at home, questioning the dynamic assignment process of IP addresses.
  • Another participant suggests that IP addresses can be either static or dynamic, depending on the service provider, and references a Wikipedia article for further information.
  • Several replies propose troubleshooting steps, such as clearing the cache or performing a DNS flush, to resolve potential issues with IP address recognition.
  • A later reply explains that if the IP address is within the 192.168.x.x range, it is likely non-routable and can be the same across different networks, while also mentioning the possibility of proxy or VPN configurations affecting the displayed IP address.
  • One participant notes that many IP addresses are reserved for specific purposes and cannot be used on the Internet without translation by a router.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the reasons behind the same IP address being assigned in different locations. There are multiple competing views regarding the nature of IP address assignment and the potential impact of network configurations.

Contextual Notes

Some claims depend on specific configurations or definitions of IP addresses, and the discussion includes unresolved technical details regarding DHCP and proxy settings.

WWGD
Science Advisor
Homework Helper
Messages
7,795
Reaction score
13,095
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   Reactions: WWGD
This could happen if you are using a proxy browser.
 
  • Like
Likes   Reactions: WWGD
Or even try a DNS flush. Instructions can be found doing a quick google.
 
  • Like
Likes   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: WWGD and OCR

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
967
Replies
4
Views
1K
  • · Replies 27 ·
Replies
27
Views
4K
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