I need an elegant way using VB.Net to iterate through a range of IP addresses when the input will come to my app as a string in this format:
192.168.100.8-10
This range would include 3 addresses:
192.168.100.8, 192.168.100.9, 192.168.100.10.
I found a solution in C# that uses the IP Address class that I could probably convert to VB but it seemed to be way too much code for what I need to do. I could definitely use a bunch of string parsing functions but I was hoping someone already had a simple way of doing this.
Here is a solution. It would be even easier using generic lists…