title: How to detect IP of a device connected to the same network
body: <p>I am trying to detect the IP of a device (ESP8266), which is acting as a server and is connected to the same network. So that I can send some GET requests to it, but every time my router restarts the device get assigned a different address, so every time I have to lookup its IP from the router and put it in the app to let it start to work again.</p>
  
  <p>I have found something that does my job <a href="https://github.com/rorist/android-network-discovery" rel="nofollow">rorist/android-network-discovery</a> but it will be hard for me to implement it in my app (lack of documentation), secondly my antivirus detects it as a virus.</p>
  
  <p>I am trying to do something like the Belking WeMo app.</p>
  
  <p>What are my options now?</p>