home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.internet.wireless      Fun with wireless Internet access      55,960 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 54,189 of 55,960   
   Dan Purgert to Pat   
   Re: How does setting a static IP on a mo   
   15 Apr 17 00:03:11   
   
   XPost: comp.mobile.android, alt.os.linux, alt.comp.os.windows-10   
   From: dan@djph.net   
      
   Pat wrote:   
   > On Fri, 14 Apr 2017 16:35:16 -0000 (UTC), Tomos Davies   
   > wrote:   
   >   
   >>I agree with all of you that it's more elegant to assigned a fixed IP at   
   >>the DHCP configuration of the access point.   
   >>   
   >>One open question I have is what happens under the current circumstances   
   >>when the Android device requests an IP address of 192.168.1.15 of the   
   >>access point ... if ... if the access point has already handed out that IP   
   >>address to another device?   
   >   
   > I'm jumping in here without having read the whole thread, but I want   
   > to comment on your "open" question:   
   >   
   > Devices do NOT request a certain IP address.  [...]   
      
   Actually, they can and do.  The caveat is that they MUST[1] have already   
   received an IP address from somewhere. In addition, I believe the   
   address also has to have some lease time remaining (although, this may   
   not be a hard requirement).   
      
   For example, you take your phone to work every day.  When you get home,   
   and the phone re-connects to your home's wifi, the DHCP DISCOVER packet   
   will (typically) include the last known IP address as part of the   
   request -- essentially "I had 10.11.12.13 before, can I have it again?"   
      
   The DHCP OFFER (server response to the client's discover) will either   
   confirm the client can use its requested IP address, or tell it to use   
   something else (e.g. 192.168.1.144).   
      
   To wrap up, the client sends the DHCP REQUEST and server sends DHCP ACK   
   packets.   
      
   Same thing happens if you reboot your computer (though with a higher   
   chance of the DHCP server allowing re-use of the requested IP address).   
      
      
   [1] as per RFC2119 -- https://tools.ietf.org/rfc/rfc2119.txt   
      
   --   
   |_|O|_| Registered Linux user #585947   
   |_|_|O| Github: https://github.com/dpurgert   
   |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca