title: How to scan network for devices, using C Obj C or Swift
body: <p>I have a server running on a Raspberry Pi and a client running on my Mac and iPhone (soon Apple Watch). I would like to connect to my server automatically without finding the Raspberry pi's Ip-address.</p>
  
  <p>Is there a way to lookup all the devices on the network, and select by Mac-address, name or something else? I know that the first 3 bytes of the mac-address is the same for all Pies. (B8:27:EB) Maby i can use that information.</p>
  
  <p>I have been looking for a solution for this issue a while but i can't seem to find one.</p>