title: c# get the ip adress of the subnet network
body: <p>how can i get the subnet range of a network ? for example my ip is <code>192.168.1.23</code> inside the network subnet range network is <code>192.168.1.0 - 255</code> is there any method that provide you with this using c# or any other libraries that can help ? 
  <br>- i tried to make some swich to some common local ip adress but its still cannot be used in a production since there is an uncountable cases depends on how its been structed .
  <br> - i tried to search for some helpful solutions but i couldn't find any helpful topic about it </p>
  
  <p>thanks in advance .</p>