[107134] in North American Network Operators' Group
RE: interger to I P address
daemon@ATHENA.MIT.EDU (Matlock, Kenneth L)
Wed Aug 27 08:19:11 2008
Date: Wed, 27 Aug 2008 06:18:48 -0600
From: "Matlock, Kenneth L" <MatlockK@exempla.org>
To: "Colin Alston" <karnaugh@karnaugh.za.net>, "kcc" <peterkcc2001@gmail.com>
Cc: nanog@nanog.org
Errors-To: nanog-bounces@nanog.org
Easiest way.
=20
Take the integer, plug it into windows 'calc'.
=20
Go to 'View: Scientific'.
=20
Hit 'Hex'. That will show you the hex representation of the integer. =
Notice that it's either 7 or 8 characters long.=20
=20
If it's 7, prepend it with a 0.
=20
Break that into 4 groups of 2. Those are the hex values for the four =
dotted quads.=20
=20
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.
=20
For example, you have 1089055123 for an integer.
=20
In Hex thats 40E9A993.=20
=20
40 Hex =3D 64
E9 Hex =3D 233
A9 Hex =3D 169
94 Hex =3D 147
=20
So your IP is 64.233.169.147
=20
Ken
=20
________________________________
From: Colin Alston [mailto:karnaugh@karnaugh.za.net]
Sent: Wed 8/27/2008 5:21 AM
To: kcc
Cc: nanog@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