Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I do know that ~ are the loopback IP addresses for most modern operating systems and we could use these IP addresses to refer to our own computer. But isn't enough?!?! why a wide range? why from to

share|improve this question

The 127/8 network can be used for a number of things.

1) Simulating a large number of different computers in a fast network (simply bring up more interfaces and bind services to them) without using virtual machines. This might be helpful if you wanted to have a number of different web servers running locally on port 80 for some reason.

2) Permitting more locally running services than the 64k TCP would permit (though it seems unlikely that you would hit that limit rationally)

3) Playing games with people who aren't familiar with this factoid; "Hey, you're a loser hacker, I bet you can't even hack me. Go ahead and try; I'm at"

Probably other things too.

share|improve this answer
I can attest to have found #1 useful in something I'm currently working on where I make other private servers appear to be on localhost via SSH tunneling. – jeteon Nov 21 '15 at 21:40

Back in the day, IP addresses were considered as plentiful, with entire /8 and /16 blocks being given to whoever asked for them.

Mind you, even though 127/8 is reserved, the RFC states that only should be used (

share|improve this answer
so.. there is no use of other IP addresses in this range except 127/32???? – kiana Jul 5 '10 at 5:36
it's used for traceroute in MPLS but they could have choose another range of IP. – radius Jul 5 '10 at 5:53
@Farseeker - 127/32 ? Did you mean ? – Steve Folly Jul 5 '10 at 7:37
@steve, yeah I did... My mistake – Mark Henderson Jul 5 '10 at 23:17
RFC 3330 does not state that only should be used. It makes an observation that it is ordinarily implemented using only The entire block is still reserved for loopback. – Juliano Jul 6 '10 at 0:24

Back when this standard was designed, it probably made sense to have as many bits in the loopback subnet as the largest classful subnet possible, which is 24 bits. Of course we don't care about classful subnets much anymore. This is why IPv6 merely allocates one address to this purpose.

share|improve this answer
It goes deeper than that; since 127/8 is a network address that starts with a 0-bit and has all 1-bits in the rest of the first octect, that is ALL an RFC-compliant network stack needs to look at to determine where to route traffic. The fact that this does not occur in any other address was used as an optimization, not because they thought it made sense to reserve 16 million loopback addresses (it didn't, and still doesn't). – adaptr Dec 21 '11 at 15:14
Not following @TomTom - would evaluate to 0111 1111 0000 0000 0000 0000 0000 0001 binary, which is still positive (it's the MSB that is the "sign" bit) - now, (1000 0000 0000 0000 0000 0000 0000 0001) is negative. – LawrenceC Oct 15 '12 at 13:41
ouch, you are correct. Deleted my comment. – TomTom Oct 15 '12 at 14:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.