title: Java - Wait until a new device connects to your local network
body: <p>I'd like to write a simple server-side program that waits until a new device connects to my local network (respectively WIFI).</p>
  
  <p>Basically what I want to achieve is a Java program running on my computer (which is connected to the WIFI) waiting for my phone to connect to the WIFI whenever I come home and running some code afterwards. There's no seperate app running on the phone, the only thing the program is looking at is the network.</p>
  
  <p>Any ideas how this is possible? Thanks for your time!</p>