I have 2 computer(A n B) which connected same wifi. If i want to access my localhost(127.0.0.1) from computer A to B i just enter LAN IP(example http://192.168.99.5) on computer B. But how to access 127.0.0.2 or 127.0.0.3 etc to other computer?
I have 2 computer(A n B) which connected same wifi. If i want to access my localhost(127.0.0.1) from computer A to B i just enter LAN IP(example http://192.168.99.5) on computer B. But how to access 127.0.0.2 or 127.0.0.3 etc to other computer?
Any packets with an address in the
127.0.0.0/8
range can never appear on any network anywhere. Traffic sent to an address in that range will immediately loop back inside the host.Start with RFC 1700, Assigned Numbers:
There are other RFCs in that vein, including the one mentioned by @joeqwerty in the comment, RFC 3330, Special-Use IPv4 Addresses:
If you need to connect to a local loopback
127.0.0.0/8
network on another computer, the connection must originate from the same machine. You may need to do so for example if a service is only bind to127.0.0.1
; therefore, it cannot be connected using LAN/public IP. This can be achieved several ways, but using an SSH tunnel is the easiest to set up.