I am developing a program in Visual Basic.NET for a class that I am taking and I would like to see if I can get some guidance. What I am doing is developing a program where I can take a class A,B, or C IP address and Subnet form that address. I will need to verify subnet masks, and develop the formula to Subnet. I am new to this and have reached a barrier here on this portion of the program. Any help would be greatly appreciated.
You can use the IPAddress.Parse() method to accept a standard x.x.x.x IP address format, and then use GetAddressBytes() to get the IP address' four bytes for binary processing.
This was first published in April 2004