Ritesh’s Technical Blog

IP Address to a IP Number

Posted on: September 19, 2008

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

Advertisements

1 Response to "IP Address to a IP Number"

I am looking for my IP number for my wordpress site, so my domain can point to it, while having my mail servers point to a different place. Can you tell me how to get my IP number? Thanks.
Jolene jo@funspecialist.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives

Blog Stats

  • 54,702 hits
%d bloggers like this: