Use the
IPAddress Class[
^]
IPAddress.Parse( "fe80::21c:42ff:fe00:8%vnic0" );
IPAddress.Parse( "127.0.0.1" );
if( IPAddress.Parse("127.0.0.1").AddressFamily == AddressFamily.InterNetwork )
{
}
The
IPAddress.Address Property[
^] is a long property, a 64 bit integer - so comparing whether an address is in a range is as easy as comparing integer values.
Best regards
Espen Harlinn