this post was submitted on 15 Jan 2025
628 points (94.7% liked)
Programmer Humor
32880 readers
1487 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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?
@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.
It's actually a /8. 127.x.x.x
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.
@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 .
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.
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.
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.
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.
Those are non-routed IP blocks. 127.0.0.1 is the machine you’re on, the localhost.