title: Calculate IP Range from IP String equal to x.x.x.x/x
body: <p>How could or would I calculate the range of IP given an IP string like <code>x.x.x.x/x</code> most common cases could be <code>198.162.1.1/24</code> but could be anything, in that anything that's legally allowed. </p>
  
  <p>I want to take <code>198.162.1.1/24</code> and convert it to 
  198.162.1.1 - 198.162.1.124 or whatever the equivilant would be legitimately. So trying to figure out how to mathematically and dynamically figure that out with javascript.</p>