I am trying to understand how the internet works. After a bit of research, I believe that every device in my network has a private or unique or local IP, something like 192.168.1.4 or 192.168.1.9 and so on that is chosen by the router. This is not the IP you use to surf the web. That is a leased IP from a DHCP server - something like 22.214.171.124 etc. Is this done with the help of NET? Those have to be leased due to the limited number of IPv4. Is this right? But then how does your traffic get to your computer and not your phone for example since the IP is the same on all of them? Also, after this lease expires, do you get the same IP or another one?
The router may assign IP Addresses to all the devices connected to it but it won’t be the exact IP as the router itself.
A single number might be the only difference there is, but it won’t be exactly the same as the router’s.
Every device connected to the Internet has its own unique address.
Yes, you are right, but when I check my IP on a website like https://whatismyipaddress.com/ I have the same IP on all my devices connected to my router.
That’s your public IP, that is going to be the same. Your router then directs traffic around it’s subnet
Now I understand, thank you!