Everywhere I search some people say 'a computer has a permanent IP address' and some people say 'it doesn't but has only when it is connected to the internet through a router'.
So my understanding is that a computer, since it doesn't have any SIM card, doesn't have any IP address but when it is connected to a router it is assigned a local IP address which changes every time we connect to the router but the IP address of the router/modem is the public IP and doesn't change. We have MAC address which is used only for communicating with other computers through wire and isn't used in the process of getting data packets from the internet through a router.
Pls correct me if I'm wrong.