2006-12-19

IP addresses

Posted in Computers, PlanetDebian at 16:11 CET (+0100) by sven

Wouter and Russel:

Wouter is right that 0.0.0.0 (or 0 in short) is not an alias to 127.0.0.1 (aka localhost). There are interesting things about specifying IP addresses though. As Matt said in a comment to Russel’s entry, 0.0.0.0 can be shortened to just 0. That’s right and also, 127.0.0.1 can be shortened to 127.1 with any software which implements parsing of IP addresses correctly. Actually, 2130706433 (127*256³+0*256²+0*256+1) would be an alternate alias to 127.0.0.1. A different example would be http://1426782553/ or http://85.719193/, which should take you to my blog at http://blog.incase.de/ (at IP:85.10.249.89) – Except that my Apache doesn’t seem to be able to handle the request with that hostname.
Update: a working example is http://1208933736/ or http://72.974184/ which takes you to google.