Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

IP Address Assignment

  1. Apr 2, 2017 #1


    User Avatar
    Science Advisor
    Gold Member

    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 ?
    Last edited: Apr 2, 2017
  2. jcsd
  3. Apr 2, 2017 #2


    Staff: Mentor

  4. Apr 3, 2017 #3
    Perhaps try again, but before doing so clear your cache.
  5. Apr 3, 2017 #4

    Fervent Freyja

    User Avatar
    Gold Member

    This could happen if you are using a proxy browser.
  6. Apr 4, 2017 #5
    Or even try a DNS flush. Instructions can be found doing a quick google.
  7. Apr 5, 2017 #6
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted