DOWNLOAD

Get our toolbar!

Wednesday, 18 May 2011

IP Address to a IP Number


How TO convert an IP Address to a IP Number?
IP address (IPV4) is divided into 4 sub-blocks. Each sub-block has a different weight number.

To calculate IP Number the formula is given below
IP Number = 16777216*a + 65536*b + 256*c + d

where
IP Address = a.b.c.d


For example, if IP address is “127.4.5.13“, then its IP Number would be

IP Number = 16777216*127 + 65536*4 + 256*5 + 13
= 2130706432 + 262144 + 1280 + 13
= 2130969869

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More