If I have a subnet mask e.g. 255.255.255.0
and an ip address 192.168.1.5
, is there an easy way to determine all the possible ip addresses within this subnet?
In this case:
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
...
...
192.168.1.252
192.168.1.253
192.168.1.254
192.168.1.255
All I found until now are heavy overloaded .net libraries. Isn't there any native way to solve this with the default namespaces?
Best Answer
10 minutes of coding, and NOT fully tested:
Usage: