Does .NET have the notion of IP Address Ranges?
I need to test if a given IP address is within a range of addresses.
I could write some API that would give me something like
IPRange ipRange = IPRange.Parse("127.0.0.1-127.0.0.15");
ipRange.Contains(someAddress);
but I don't want to reinvent the wheel if there is already similar functionality built in.
No, but here is how it can be done (VB since code tag not included in OP)
Here just a quick translation of dbasnett's answer to C#:
Here is a full working .NET Fiddle with an example.
Hope this doesn't count as an off-topic answer.