667
top 50 comments
sorted by: hot top new old
[-] ItsMeForRealNow@lemmy.world 2 points 1 day ago

It doesn't have to be http tho

[-] Bananskal@nord.pub 59 points 3 days ago

The http:// part bothers me a little. I would've personally put just 127.0.0.1, or maybe ::1 😁

[-] undefined@lemmy.hogru.ch 9 points 3 days ago

::1 for me, this is an IPv6 mostly network

[-] Taldan@lemmy.world 3 points 3 days ago

::ffff:127.0.0.1

(I know, I'm a heathen)

[-] kalpol@lemmy.ca 10 points 3 days ago

Came to say the same thing. Its like saying home can only be accessed by the ladder to the 80th-story window

load more comments (2 replies)
[-] ClassyHatter@sopuli.xyz 6 points 3 days ago

They have a lock on their door, but they keep it unlocked. Thus http instead of https.

[-] MonkeMischief@lemmy.today 2 points 3 days ago

Hope they don't have knocking enabled. =\

[-] rockSlayer@lemmy.blahaj.zone 112 points 4 days ago

Everyone has a localhost, the place you really want to be is ~

[-] BurntWits@sh.itjust.works 47 points 4 days ago

This has been my desktop wallpaper for the last year or so.

[-] sockenklaus@sh.itjust.works 5 points 3 days ago

I really like the idea of the wallpaper (especially with earth as the background) but the shape of the tilde sign bothers me. It looks more like a violins f-hole...

[-] BurntWits@sh.itjust.works 4 points 3 days ago

It’s a Euler spiral map projection. It just so happens to look a lot like a tilde, hence the joke. But it’s not just a tilde with an earth design, it’s an actual map shape.

[-] sockenklaus@sh.itjust.works 2 points 2 days ago

Uuuh now I see it. That's very smart!

[-] db2@lemmy.world 71 points 4 days ago

Your localhost isn't https? Amateur.

[-] dumnezero@piefed.social 31 points 4 days ago

https on localhost sounds like a fetish

[-] Kojichan@lemmy.world 9 points 4 days ago

Do you print your own SSL certificates?

[-] boonhet@sopuli.xyz 8 points 3 days ago

Yes, I print them on my wall, every 47 days

[-] SwooshBakery624@programming.dev 3 points 3 days ago* (last edited 3 days ago)

Yup, I put them right on my front door.

EDIT: I replied to the wrong comment, oh well.

[-] Kojichan@lemmy.world 3 points 3 days ago

Still got a chuckle from me. (:

[-] otacon239@lemmy.world 9 points 4 days ago

Yeah, this is leaving their place pretty insecure.

[-] xia@lemmy.ca 27 points 3 days ago

"There is no place like localhost"

[-] JonEFive@piefed.social 12 points 3 days ago

I always had this problem too. There's no place like localhost? or maybe loopback? It's like a joke created by someone who has only the the most basic understanding of what they're trying to joke about.

If you wanted to be a little loose with it, I could even see it being "here", but even that doesn't fit with "there's no place like..."

"There's no place like ᱻ/" Would make more sense.

load more comments (1 replies)
[-] jcr@jlai.lu 7 points 3 days ago

There is no place like LOCALHOST

[-] nonentity@sh.itjust.works 15 points 3 days ago

Localhost is wherever you are, ~ is home.

[-] rizzothesmall@sh.itjust.works 13 points 3 days ago* (last edited 3 days ago)

I got similar for a friend when he got a new house. Not http, just the localhost ip.

I agree it would be better as "there's no place like ~/"

[-] Psythik@lemmy.world 6 points 3 days ago

This meme is so old I saw it on dialup.

[-] some_guy@lemmy.sdf.org 3 points 2 days ago

I saw it on carrier pigeon, n00b.

[-] Schemen110676@lemmy.ml 2 points 2 days ago

Do not cite the deep magic to me, I was there when when RFC 1149 was written

[-] heartSagan5@lemmy.zip 3 points 2 days ago

I can't tell if you like living on just port 80.

[-] pigup@lemmy.world 8 points 3 days ago

Your mom's house: http://0.0.0.0/

load more comments (2 replies)
[-] alstocras@lemmy.dbzer0.com 29 points 4 days ago

*no place like http://[::1]

[-] 4am@lemmy.zip 14 points 4 days ago

No place like ::1

load more comments (1 replies)
[-] SparroHawc@piefed.world 25 points 4 days ago

I got this doormat from Thinkgeek back when it still existed. I miss that store.

load more comments (4 replies)
[-] Avicenna@programming.dev 7 points 3 days ago
[-] samus12345@sh.itjust.works 18 points 4 days ago
[-] supersquirrel@lemmy.ca 16 points 4 days ago

Side note, why the hell did programmers make this as the home ip? Why couldn't it have been something intuitive that said to normal people "home" in some way?

I will never not be grumpy about this, it is such a trivial, random choice that only makes sense once you understand everything about it already.

[-] wheezy@lemmy.ml 72 points 4 days ago* (last edited 4 days ago)

Most satisfying answer I could find.

The designers of the Internet really knew how the hardware worked, and they designed with low level implementation in mind.

The values 0, 127 and 255 are special in 8 bit assembly and machine language programming because there are "tricks" you can use to test for these values and branch to different code using smaller instructions that execute faster than for other integers. 127 is the highest signed 8 bit integer, so incrementing it by 1 will cause a signed overflow. Similarly, incrementing 255 will cause unsigned overflow. Merely loading the value 0 into a register will usually set a zero flag on the chip. Imagine the networking program looks like this in pseudocode:

if (value == 0) doLocal();

if (value == 127) doLoopback();

if (value == 255) doNetwork();

Although it depends on the chip, in those days most chips could encode these tests with 2 words, 3 words and 3 words respectively (total 8 words) and further those particular tests were all likely to execute in 1 clock cycle each. Using any other value would probably require 4 words each (total 12 words), a 50% increase in code size and likely a 50% increase in execution time as well.

https://superuser.com/questions/31824/why-is-localhost-ip-127-0-0-1

[-] artwork@lemmy.world 25 points 4 days ago* (last edited 4 days ago)

Thank you... Thank you heartfelt... for not referencing/using sorrowful empty LLM for it, but referencing an actually accountable answer with an author to appreciate and learn from, with a direct link to the source.

I upvoted the answers I found supportive, the question, read more to recall it all again, and bookmarked.

[-] wheezy@lemmy.ml 10 points 4 days ago

Thanks. It's hard to find good answers anymore but a good "before:2022" still helps a bit in Google. And removing the AI overview.

load more comments (4 replies)
[-] folekaule@lemmy.world 14 points 4 days 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.

load more comments (2 replies)
[-] KaninchenSpeed@lemmy.blahaj.zone 26 points 4 days ago* (last edited 4 days ago)

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)

load more comments (11 replies)
[-] Ooops@feddit.org 14 points 4 days ago

Why so formal? Just call it 127.1

[-] slazer2au@lemmy.world 22 points 4 days ago

::1 to be hip with the youth.

load more comments (3 replies)
load more comments (1 replies)
[-] lena@gregtech.eu 12 points 4 days ago

There's no landlord like lo

[-] Sir_Premiumhengst@lemmy.world 10 points 4 days ago
[-] Obeca@pawb.social 6 points 3 days ago

I don’t know, 127.1.2.3 seems quite similar.

Something it took me a while to realize is that each and every one of these addresses have a complete set of ports available for usage, so you can use port 80 on 127.0.1.0 and port 80 on 127.0.0.2 for different services.

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 24 Nov 2026
667 points (96.8% liked)

Programmer Humor

34316 readers
1656 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