interger to I P address
Matlock, Kenneth L
MatlockK at exempla.org
Wed Aug 27 12:18:48 UTC 2008
Easiest way.
Take the integer, plug it into windows 'calc'.
Go to 'View: Scientific'.
Hit 'Hex'. That will show you the hex representation of the integer. Notice that it's either 7 or 8 characters long.
If it's 7, prepend it with a 0.
Break that into 4 groups of 2. Those are the hex values for the four dotted quads.
Make sure 'Hex' is still selected, and put in the first 2 characters, then hit 'binary'. That's your first part of the IP. Repeat for the other 3.
For example, you have 1089055123 for an integer.
In Hex thats 40E9A993.
40 Hex = 64
E9 Hex = 233
A9 Hex = 169
94 Hex = 147
So your IP is 64.233.169.147
Ken
________________________________
From: Colin Alston [mailto:karnaugh at karnaugh.za.net]
Sent: Wed 8/27/2008 5:21 AM
To: kcc
Cc: nanog at nanog.org
Subject: Re: interger to I P address
kcc wrote:
> I search google but couldn't get any solution
>
> Can you send me information?
Sure!
http://www.catb.org/~esr/faqs/smart-questions.html
More information about the NANOG
mailing list