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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to