On my local host, there is a loopback address 127.0.0.1, and a wifi interface with private address 192.168.1.97
assigned by the local wifi network.
Do both the loop back and private IP addresses work at packet level in the same "loopback" way?
When a process sends a packet to lo
127.0.0.1
, is it correct that loopback means that the packet doesn't leave the local host, but reach 127.0.0.1 on the same host?When a process sends a packet to
192.168.1.97
, will the packet have to leave the local host, reach the router of the local wifi network and the router then sends the packet back to the wifi interface at the same local host?
If in both cases, the packets don't leave the local host, what is the difference between private address and loopback address then?
Thanks.