How to sort by IP in ASP.net?
Posted by vijay | Posted in Asp.net | Posted on 16-09-2009
0
Yesterday i have come across an interesting task of sorting an IP Address, which i need to use in my program. I thought it would be useful to share with you. First let us understand the format of IP Address before i begin.
An IP address is made up of four bytes of information (totaling 32 bits) expressed as four numbers between 0 and 255 shown separated by periods. For example, your computer’s IP address might be 238.17.159.4, which is shown below in human-readable decimal form and in the binary form used on the Internet.