logoalt Hacker News

Jtsummers11/07/20242 repliesview on HN

127.1 is the same as 127.0.0.1. 0 bytes are inserted based on the following:

  x     -> 0.0.0.x
  x.y   -> x.0.0.y
  x.y.z -> x.y.0.z

Replies

bryanlarsen11/07/2024

But sometimes 127.1 means 127.1.0.0/16. For example in the output of `netstat -rn` on MacOS.

show 1 reply
elcritch11/07/2024

Similar rules apply to ipv6 addresses as well.

show 1 reply