I understand that private IP is invisible to the internet and only my router can know about it (correct me if I'm wrong), and that my public IP is the one everyone uses to talk to me.
I also understand that we use this method because there simply isn't enough IP addresses to satisfy everyone, so this way two different computers in two different LANs could share the same private IP, the router(for example) knows the private IP addresses of everyone and can use it to communicate with them.
What I don't understand is that we still need to give each computer an individual IP address, so I tested with my two computers that are connected the same wifi and to my surprise they have exactly the same public IP !of course the private IPs are different
so my question is this :
how do we uniquely identify each of the computers if they share the same Public IP and their private IP is unknown to anyone outside of the local LAN