a) have them stored in v4 format
b) convert them with a mathematical formula
c) convert them as required with a piece of software
d) convert them as required on a website
thanks
david
>I was previously informed that the IP logging (in MS-Access thru ODBC)
>stores IPs in the v6 format.
The IP number in the .dbo.FromDomain row is an ipv4 address stored as a 32
bit integer (same as "struct in_addr.s_addr" in C).
Jarle
--
Jarle Aase http://www.jgaa.com
mailto:jg...@jgaa.com http://www.fuck-the-law.org
<<< no need to argue - just kill'em all! >>>
>How do I convert it from 32 bit integer? (I'm not a programmer)
Well, the 32 bit integer contains 4 8 bit numbers, each corresponding to
one of the four number in a ipv4 address.
32 bit representation of 127.0.0.1: 16777343
If you view this as a hexadecimal number, 0100007F, you'll see that each of
the four numbers correspond to two hex dights, and that the order is
reversed (7f hex is 127 dec).
How you convert this number into a IP address will depend on the tool you
use :) If you can use "shift right" and "and", it's simple:
b1 = 16777343 & 255 = 127
b2 = (16777343 >> 8) & 255 = 0
b3 = (16777343 >> 16) & 255 = 0
b4 = (16777343 >> 24) & 255 = 1
>>How do I convert it from 32 bit integer? (I'm not a programmer)
>
>Well, the 32 bit integer contains 4 8 bit numbers, each corresponding to
>one of the four number in a ipv4 address.
If you want a quick and dirty end user solution, ping the 32bit integer
from the command prompt, and it will reply back with the correct IP and
proceed to ping.
--
The nice thing about standards, there is enough for everyone to have their own.