this post was submitted on 24 Nov 2026
62 points (98.4% liked)

Programmer Humor

34266 readers
821 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] KaninchenSpeed@lemmy.blahaj.zone 6 points 24 minutes ago* (last edited 22 minutes ago) (1 children)

its not only this ip. In ipv4 the whole 127.0.0.0/8 subnet is the current computer / localhost, so every 127.x.x.x points to localhost (i know its a bit silly, but so is a lot of legacy ip). 127.0.0.1 is just the first address in this subnet that can be used for devices. I would assume 127 was chosen because its the largest 7 bit number so its 01111111 in 8 bit which is easy to detect in hardware.

In ipv6 its much more sensible, only ::1 is localhost.

Sorry for wasting your time (but please use ipv6 anyways >:3)

[–] supersquirrel@lemmy.ca 2 points 21 minutes ago* (last edited 18 minutes ago) (3 children)

I super appreciate the explanation and I figured that it makes sense when you look at the context... but still did this really have to be the home ip? I can never remember the sequence of numbers, I know it is only a handful of them but it is just so damn unintuitive that I almost always have to look it up because my memory recall is trash... and I don't think I should have to it should be so obvious that anybody can remember it.

Even if this "had" to be the home ip grammar... couldn't they have at least created a commonly accepted shortcut/alternate name you could type in that normal people could remember?

[–] MnemonicBump@lemmy.dbzer0.com 4 points 18 minutes ago

You can usually just type localhost://

[–] Starchildjohn@leminal.space 4 points 14 minutes ago* (last edited 13 minutes ago)

Easy, just remember 01111111 and convert back when you need it 🙃

For real tho just use ipv6 ::1 or localhost if you can't remember

[–] truthfultemporarily@feddit.org 1 points 1 minute ago

I'm curious, what IPv4 address space reads like "home"?