[Tutor] Re: Fwd: Create list of IPs

Roel Schroeven rschroev_nospam_ml at fastmail.fm
Sun Feb 20 20:59:39 CET 2005


R. Alan Monroe wrote:
>>>Liam Clarke wrote:
> 
> 
>>[ snip ]
> 
> 
>>>- increment an IP. This is the hardest part. 
> 
> 
>>Why? An ip (V4) is just an 32bit integer :-)
> 
> 
> Indeed. Some early versions of MacTCP for MacOS made you input the
> address as a single large decimal number :^)

And you can use it in URLs too (at least in Mozilla): python.org's IP
address is 194.109.137.226, which is 3261958626 when represented as an
integer. Typing http://3261958626/ in the browsers address bar takes you
to the homepage :)

-- 
"Codito ergo sum"
Roel Schroeven



More information about the Tutor mailing list