• folekaule@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    Excellent explanation. Just came here to add more context: This was before CIDR routing when networks were classful. Localhost is in the class A network range and was reserved in 1981 for loopback use in IPv4. In 1981 processors were much, much slower than today and every cycle counted. If you look at bit patterns for the various networks and netmasks, it will all start to make more sense.

    IPv6 Always had ::1 for loopback.