title: Broadcasting own IP across entire network
body: <p>I am wondering if there is a simpler way to broadcast my own IP to all devices on my network on a specific port using C or C++</p>
  
  <p>I don't know too much about socket programming just cause most of my applications don't need a network.  I looked into it and <a href="http://www.splinter.com.au/sending-a-udp-broadcast-packet-in-c-objective/" rel="nofollow">I found one piece of code</a> that looks promising although it doesn't exactly <em>broadcast</em> since it sends to specific IP addresses.   </p>
  
  <p>Is there a way to broadcast to addresses say between 192.168.1.0/255 in one fell swoop or do I need to go through loop through the addresses and then send a packet to them myself? </p>
  
  <p>EDIT: I'm asking about c++ implementation, not network infrastructure.  That is why I linked the above link.</p>