this post was submitted on 11 Jul 2025
333 points (97.7% liked)

linuxmemes

26399 readers
724 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    top 44 comments
    sorted by: hot top controversial new old
    [–] diemartin@sh.itjust.works 2 points 3 days ago

    127.4.20.69?

    [–] virku@lemmy.world 38 points 2 weeks ago (3 children)

    Wait. Is that last one really home?

    [–] Illecors@lemmy.cafe 46 points 2 weeks ago (1 children)

    It's a Class A address, reserved for loopback devices. While not any sort of default - yes, it could be used as home :)

    [–] possiblylinux127@lemmy.zip 14 points 2 weeks ago (1 children)

    Keep in mind the modern ipv4 internet uses classless subnets so it is better to think of it as a /8

    [–] rtxn@lemmy.world 7 points 2 weeks ago (1 children)

    Technically it fits inside the highest class-A subnet... but I've seen so many people (especially teachers) who think that class-A and /8 subnets are equivalent that I firmly believe that the idea of classful networking should be removed from technical literature altogether.

    [–] azertyfun@sh.itjust.works 15 points 1 week ago

    Classful IPv4 was obsoleted 32 years ago. Only 8 years left before it's literally older than a standard career.

    It's fascinating the sheer inertia that leads formally-trained IT professionals to use and perpetuate such profoundly useless and obsolete nomenclature. You'd think that having an incorrect use of the term "class A" and not having any use for classes B and C would tip off academia that they should cordon off classful networking to the "History of Computing" course next to ARPANET.

    Maybe next time someone refers to 10.0.0.0/8 as a Class A network I'll refer to it as the ARPANET Network. That's only very slightly more anachronistic (3 years).

    [–] Gyroplast@pawb.social 26 points 2 weeks ago (1 children)

    Yes. 127.0.0.0/8 is reserved IPv4 address space for Loopback. It is perfectly valid, and occasionally useful, to use other loopback addresses that are functionally identical, like 127.0.1.1 or 127.0.0.53, which carry semantic information for the initiated, like "53? Must be DNS-related, obviously!"

    [–] kn33@lemmy.world 6 points 2 weeks ago

    At the place I work, we use 10.127.0.0/16 for loopback addresses on networking equipment because it has that little familiarity from 127.0.0.0/8

    [–] b_tr3e@feddit.org 2 points 2 weeks ago* (last edited 2 weeks ago)

    Only with a /8 or 255.0.0.0 netmask. Which is not very common.

    [–] TootSweet@lemmy.world 25 points 2 weeks ago

    de:ad:be:ef:ca:fe

    [–] illusionist@lemmy.zip 24 points 2 weeks ago
    [–] Gyroplast@pawb.social 18 points 2 weeks ago

    This reminds me of the tale of the coder tasked to write an input validator for IPv4 addresses. Poor bastard.

    Another fun one: 0177.042.017.066

    PSA: Don't zero-pad your IPv4 octets. Decimal is for simpletons.

    [–] Gyroplast@pawb.social 15 points 2 weeks ago (1 children)
    [–] Karyoplasma@discuss.tchncs.de 5 points 2 weeks ago

    127.53.105.249

    [–] _cryptagion@lemmy.dbzer0.com 14 points 2 weeks ago (1 children)
    [–] albbi@piefed.ca 5 points 2 weeks ago

    127.nice.nice.nice

    [–] arcayne@lemmy.today 9 points 1 week ago* (last edited 1 week ago)
    127.13.37.69:420
    
    [–] ConstantPain@lemmy.world 7 points 1 week ago

    127.42.0.69

    [–] airbreather@lemmy.world 7 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

    127.69.420

    127.69420

    127.42069

    [–] Hupf@feddit.org 4 points 2 weeks ago
    [–] unknown1234_5@kbin.earth 6 points 2 weeks ago (1 children)

    hey I'm pretty new to stuff like this, can someone explain?

    [–] toynbee@lemmy.world 10 points 2 weeks ago (1 children)

    These are all network addresses that refer to localhost - how a computer addresses itself.

    [–] ohshit604@sh.itjust.works 14 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

    To add to this - localhost spans 127.0.0.1-127.254.254.254

    [–] hedgehog@ttrpg.network 4 points 1 week ago (2 children)

    Why is 255 off limits? What is 127.0.0.0 used for?

    [–] Incogni@lemmy.world 7 points 1 week ago (1 children)

    To my limited knowledge: If it ends in .0 it's the network identifier. If it ends in .255 it's the broadcast address.

    [–] hedgehog@ttrpg.network 2 points 1 week ago

    Thank you! That gives me a starting point that should be easy to look up!

    [–] ohshit604@sh.itjust.works 3 points 1 week ago* (last edited 1 week ago) (1 children)

    Why is 255 off limits? What is 127.0.0.0 used for?

    Hypothetically you’re working on an application but you don’t want that application exposed to the internet, you would use localhost to either expose it to 1 machine on your network or network wide by opening a port and telling the application to listen on the private IP assigned by your router.

    Advanced setup would include a reverse proxy to forward the requests from the applications port to the internet, the reverse proxy would use port 80:80 (http) & 443:433 (https), so the flow would look a little like this -

    Internet > Reverse Proxy listening on 80:80 & 443:443 > Application listening on 8080:8080

    —-

    Why does it span to .254? Well this is another advanced setup but if you wanted to segregate two application on different subnets you can. I’m not sure if there is a security benefit by adding the extra hop but the option is there.

    [–] hedgehog@ttrpg.network 1 points 1 week ago (1 children)

    Why is 255 off limits? What is 127.0.0.0 used for?

    To clarify, I meant that specific address - if the range starts at 127.0.0.1 for local, then surely 127.0.0.0 does something (or is reserved to sometimes do something, even if it never actually does in practice), too.

    Advanced setup would include a reverse proxy to forward the requests from the applications port to the internet

    I use Traefik as my reverse proxy, but I have everything on subdomains for simplicity’s sake (no path mapping except when necessary, which it generally isn’t). I know 127.0.0.53 has special meaning when it comes to how the machine directs particular requests, but I never thought to look into whether Traefik or any other reverse proxy supported routing rules based on the IP address. But unless there’s some way to specify that IP and the IP of the machine, it would be limited to same device communications. Makes me wonder if that’s used for any container system (vs the use of the 10, 172.16-31, and 192.168 blocks that I’ve seen used by Docker).

    Well this is another advanced setup but if you wanted to segregate two application on different subnets you can. I’m not sure if there is a security benefit by adding the extra hop

    Is there an extra hop when you’re still on the same machine? Like an extra resolution step?

    I still don’t understand why .255 specifically is prohibited. 8 bits can go up to 255, so it seems weird to prohibit one specific value. I’ve seen router subnet configurations that explicitly cap the top of the range at .254, though - I feel like I’ve also seen some that capped at .255 but I don’t have that hardware available to check. So my assumption is that it’s implementation specific, but I can’t think of an implementation that would need to reserve all the .255 values. If it was just the last one, that would make sense - e.g., as a convention for where the DHCP server lives on each network.

    [–] freeman@sh.itjust.works 1 points 1 week ago

    The highest (all 1s in binary) host address in a network (last octet in /24) is the broadcast address, it is send to all host in the network.

    [–] Natanox@discuss.tchncs.de 2 points 1 week ago (2 children)
    [–] MisterD@lemmy.ca 3 points 1 week ago

    Let's say you want to test a network service like a webserver (https://www.mywebserver.com/) on the same computer as the browser.

    [–] _g_be@lemmy.world 2 points 1 week ago

    It was designed that way. This span of addresses should not be used for anything other than localhost-ery.

    May seem like a wide span, but at the time that it was designed they didn't anticipate needing every single address

    [–] Popper2142@lemmy.world 6 points 2 weeks ago
    [–] possiblylinux127@lemmy.zip 5 points 2 weeks ago (1 children)
    [–] sharpratchet@lemmy.world 0 points 1 day ago (1 children)
    [–] possiblylinux127@lemmy.zip 1 points 1 day ago (1 children)

    Care to explain?

    NAT adds latency plus it makes end to end connections very hard to do. IPv6 on the other hand makes thing much simpler since you don't need to guess the ports.

    [–] sharpratchet@lemmy.world 1 points 22 hours ago (1 children)

    I do a lot of networking and I like being able to remember IPs and subnetting is a lot easier. I haven't really realized any issues with latency. Haven't really had to guess ports either as NAT handles that. I think IPv6 is a good idea and works great for computers, but as I human I prefer IPv4.

    [–] possiblylinux127@lemmy.zip 1 points 16 hours ago

    IPv6 doesn't need to be hard. For one you can use DNS since it is probably Tue best in terms of readability.

    For addressing you can do a few different things. If you are just looking for simple addresses you can do something like:

    2001:ab6f:c5::5 2001:ab6f:c5::6

    If you have multiple areas or vlans you also can separate them with site info in the address. Something like:

    Site one: 2001:ab6f:1:1::1

    Site two: 2001:ab6f:2:1::1

    Site two vlan 666: 2001:ab6f:2:666::1

    You also can use words like beef and cafe to make it more memorable.

    Ipv6 is also nice since subnetting is much simpler. All subnets are /64 so it is very easy to know if an address is in a subnet. No more /19 and other crazy subnetting madness.

    [–] db2@lemmy.world 5 points 1 week ago

    127.420.69.531:8008

    [–] h3ll3rsh4nks@ani.social 4 points 2 weeks ago

    192.168.0.69

    [–] palordrolap@fedia.io 3 points 1 week ago

    2140000000 for decimal round number enjoyers

    0x7FEEDBAC for hexadecimal pun enjoyers

    [–] talou@jlai.lu 3 points 2 weeks ago
    [–] kaidezee@lemmy.ml 3 points 1 week ago
    [–] loomy@lemy.lol 1 points 1 week ago