XPost: comp.mobile.android, alt.os.linux, alt.comp.os.windows-10   
   From: k.nuyt@nospam.demon.nl   
      
   On Tue, 11 Apr 2017 22:10:39 -0000 (UTC), Tomos Davies   
    wrote:   
      
   > How does setting a static IP on a linux Android mobile device prevent the   
   > linux router from assigning that IP address to another device?   
      
   If you did it correctly, you assigned a static IP address   
   _outside_ the so-called DHCP range.   
   Any DHCP server, like in your router is set up to hand out   
   addresses in a specific range. Example:   
      
   network 192.168.1.0   
   netmask 255.255.255.0   
   gateway 192.168.1.1 (the address of the router on the LAN)   
   DHCP range 192.168.1.16 - 192.168.1.63   
      
   Now, if you decide to assign static addresses to any device, those   
   addresses have to be outside the DHCP range.   
      
   192.168.1.0 invalid, it is the address of the network as a whole   
   192.168.1.1 invalid, used by the router   
   192.168.1.2 valid, outside DHCP range   
   192.168.1.25 invalid, in the DHCP range   
   192.168.1.102 valid, outside DHCP range   
   192.168.1.255 invalid, broadcast address for this network   
      
      
   > On any mobile device (iOS, Android, whatever), you can set up an FTP server   
   > (eg ES File Explorer on Android) with a static IP address so that Windows   
   > "My Network Places" has a permanent "shortcut" to the entire mobile device   
   > file system (eg ftp://192.158.1.15:3721).   
      
   You probably mean 192.168.1.15 .   
      
   > This is very useful, and I've been using it for a couple of weeks ever   
   > since it was discussed here - because it effectively mounts the mobile   
   > device as a network drive on Windows without adding any new software on   
   > either Android or Windows.   
   >   
   > The Android linux mobile device seems to retain the static IP address even   
   > after multiple boots of the linux Android phone or of the Linux SOHO router   
   > which is set up to serve DHCP addresses.   
   >   
   > How does that work?   
   > Why doesn't the linux router give another linux device the IP address   
   > "192.168.1.15"?   
   >   
   > It seems as if it works by "magic" but there must be some logic here.   
   >   
   > How does setting the IP address to be static on the Android phone cause the   
   > linux router to *accept* that static address permanently?   
   >   
   >   
   > which can be set up in the mobile device connection settings   
   > Android: Settings > WiFi > AP > Modify network config > IP settings >   
   >static (IP address = 192.158.1.15)   
      
   HTH   
   --   
   Regards,   
   Kees Nuyt   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|