this post was submitted on 15 Jan 2025
566 points (94.5% liked)

Programmer Humor

32877 readers
1601 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] SchmidtGenetics@lemmy.world 2 points 11 hours ago (5 children)

Does each provider have their own? Most of the ones I’ve had your local network was 192.168.0.1, but my recent one is 10.0.0.1.

It’s all just modem access I’m guessing in the end and they can choose mostly what they want?

[–] __nobodynowhere@startrek.website 8 points 8 hours ago* (last edited 8 hours ago)

Loopback Addresses, Always your computer
127.x.x.x

Private IP Addresses, Computers on your local network
10.x.x.x
172.16.0.0 -172.31.255.255
192.168.x.x
169.254.x.x (link local, used if your network has no DHCP server)

Multicast, Addresses multiple computers on your local network
224.0.0.0 - 239.255.255.255

Broadcast, Addresses all computers on your local network
255.255.255.255

CGNAT Addresses, Computers on your same ISP/carrier
100.64.0.0 - 100.127.255.255
(Only applicable if your ISP/carrier uses CGNAT)

Public Internet Addresses
Most other IP addresses

Which block of private IPs your local network uses depends on how your router/DHCP server is configured. If you're using the standard router your ISP provided then whatever default settings on that will determine your local subnet.

[–] shalien@mastodon.projetretro.io 31 points 11 hours ago (2 children)

@SchmidtGenetics @HiddenLayer555 No. 127.0.0.x will always be localhost / local machine in any network. What you're referring to 192.168.x.x and 10.x.x.x are normalized local network addressing, 192.168 widely used by ISP on their router for home client and 10 being used by companies IT.

[–] Zagorath@aussie.zone 6 points 9 hours ago

127.0.0.x

It's actually a /8. 127.x.x.x

[–] SchmidtGenetics@lemmy.world 2 points 11 hours ago (1 children)

Ah on my end, both are the same companies IP provider and they are different modem manufacturers. Both were used to log into the modem to change settings.

[–] shalien@mastodon.projetretro.io 5 points 11 hours ago (1 children)

@SchmidtGenetics There's a lot of way of doing in things in network and all of them are "good" given a specific context or need. As long it work the way you want, that the point .

[–] SchmidtGenetics@lemmy.world 2 points 11 hours ago

That’s good to know, I just didn’t know the context of the 127, and it’s not the same, so that good to know.

Cheers mate.

[–] running_ragged@lemmy.world 26 points 11 hours ago

No, 127.0.0.1 is the loop back, so it doesn't even leave the machine and doesn't need to be connected to any network.

[–] Technofrood 17 points 11 hours ago

127.0.0.1 is a special IP address that loops back to the device itself.

For local area networks there are 3 groups of private IPv4 address spaces

192.168.0.0 - 192.168.255.255 172.16.0.0 - 172.31.255.255 10.0.0.0 - 10.255.255.255

Basically you can use any address range in any of those 3 ranges, ones in the 192.168.x.y block have been pretty common for home routers for a while.

Normally you can change the address ranges set in the router if there's a particular range you want to use.

[–] Floon@lemmy.ml 8 points 11 hours ago

Those are non-routed IP blocks. 127.0.0.1 is the machine you’re on, the localhost.