0

What're the relations between 127.0.0.0/8 and 127.0.0.1?

As per this post, it seems that they are the same thing. I am a newbie at the network, could somebody shed some light on this question?

ADDED: Does it mean the data send to 127.0.0.1:502 could be received with the program which listens on 127.255.255.254:502?

8
  • @Zac67 Does it mean the data send to 127.0.0.1:502 could be received with the program which listens on 127.255.255.254:502?
    – John
    Commented Jun 8, 2021 at 9:06
  • No - 127.0.01 and 127.255.255.254 share the same loopback interface but they're not a single IP address. But you could send a udp datagram from 127.0.0.1:502 to 127.255.255.254:502 without a problem.
    – Zac67
    Commented Jun 8, 2021 at 9:16
  • @Zac67 What about TCP?
    – John
    Commented Jun 8, 2021 at 11:34
  • Absolutely the same - replace "send UDP datagram" with "connect TCP socket".
    – Zac67
    Commented Jun 8, 2021 at 15:38
  • @Zac67 It seems that you are wrong after I did a test on Ubuntu. "sudo nc -l 127.0.0.1 502" starts a TCP server. And "sudo nc 127.0.0.1 502" could successfully establish the connection whereas "sudo nc 127.255.255.254 502" couldn't.
    – John
    Commented Jun 9, 2021 at 1:24

0

Browse other questions tagged or ask your own question.