Android Question Forcing fixed IP address by code

Discussion in 'Android Questions' started by sorex, Feb 2, 2015.

  1. sorex

    sorex Expert Licensed User

    Hello,

    Is there a way to force a fixed IP address for the wifi connection by code?

    I need some Android devices to be in a wireless accesspoint only LAN and my monitoring app should be able to connect to them or connect the devices to the monitor.

    With both ways I need to know to where they need to connect unless I put a middleware web server in between where everything connects to to log their IP address and status of device or monitoring device.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    No. You can configure the router to assign static ip addresses to these devices.
     
  3. Peter Simpson

    Peter Simpson Expert Licensed User

    In the router you just set the static IP address. My devices IP addresses are always the same and my router lease time in minutes is set to 1440 (24 hours), my IP addresses are always the same no matter what, firmware DD-WRT.

    Or you could always manually set the IP address in the actual devices themselves :)
    Screenshot_2015-02-02-14-10-16.png
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice