Imagine a city.
Inside one building, people can find each other easily.
They know:
But what happens when someone needs to send a package to another city?
The local room number is not enough.
They need:
Networks work the same way.
Inside a LAN:
We use MAC addresses.
Between networks:
We use IP addresses.